netstat options

Luke Kearney lukek at meibin.net
Thu Sep 18 20:31:43 PDT 2003


man netstat is your friend.

try netstart -na |grep LISTEN   or netstart -na |grep
ESTABLISHED

HTH

----- Original Message -----
From: "dick hoogendijk" <dick at nagual.st>
To: <freebsd-questions at freebsd.org>
Sent: Thursday, September 18, 2003 10:24 PM
Subject: Re: netstat options


> On Thu, 18 Sep 2003 07:10:24 -0500
> Peter Elsner <peter at sri-software.com> wrote:
>
> > You're probably getting the connection refused because
you didn't
> > enable telnet in /etc/inetd.conf.
> >
> > It's turned off by default.  Has nothing to do with
netstat.
> >
> > Peter Elsner
> >
> >
> > At 01:01 PM 9/18/2003 +0200, you wrote:
> > >I want a kind of list you get with (linux)
"netstat -atun"
> > >
> > >Active Internet connections (servers and established)
> > >Proto Recv-Q Send-Q Local Address    Foreign Address
State
> > >tcp   0   0 0.0.0.0:32768      0.0.0.0:*
LISTEN
> > >tcp   0   0 0.0.0.0:32769      0.0.0.0:*
LISTEN
> > >tcp   0   0 0.0.0.0:993        0.0.0.0:*
LISTEN
> > >tcp   0   0 0.0.0.0:515        0.0.0.0:*
LISTEN
> > >tcp   0   0 0.0.0.0:995        0.0.0.0:*
LISTEN
> > >tcp   0   0 0.0.0.0:37         0.0.0.0:*
LISTEN
> > >
> > >I'm trying to find out why my courier mta gives me a "
connection
> > >refused" on a 'telnet localhost 25' Courier is running;
mail is
> > >received and delivered. Still I get these 'refused'
messages..
> > >
> > >So, if anybody knwo how to get a list like above in
FreeBSD-4.8?
>
> I'm getting the connection refused *not* because telnet is
not running.
> I'm not that stupid you know ;-))
>
> What I wanted to know is the equivalent for the LINUX
"netstat -atun"
> which gives the output above (on the LINUX server). I want
to test my
> FreeBSD machine the same way but "netstat -atun" gives me
an output I
> don't want (on fbsd).
>
> --
> dick -- http://www.nagual.st/ -- PGP/GnuPG key: F86289CE
> ++ Running FreeBSD 4.8 ++ Debian GNU/Linux (Woody)
> + Nai tiruvantel ar vayuvantel i Valar tielyanna nu vilja
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
>
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"freebsd-questions-unsubscribe at freebsd.org"
>




More information about the freebsd-questions mailing list