[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-security] netstat parms



----- Original Message -----
From: "Dan Keller" <dan@xxxxxxxxxx>
To: <cobalt-security@xxxxxxxxxxxxxxx>
Cc: "Dan Keller" <dan@xxxxxxxxxx>
Sent: Sunday, April 22, 2001 2:26 PM
Subject: Re: [cobalt-security] netstat parms


> At 10:42 PM 4/21/01 -0700, you wrote:
> >On Sun, 22 Apr 2001, Carrie Bartkowiak wrote:
> >
> >Use netstat -pl [as root] - you'll see what programs listen on all the
> >ports - unlike a netstat without parms, which only givens you the *active*
> >connections (your machine can listen on ALL ports and it won't show it!)
>
> Hi CarrieB --
>
> My netstat doesn't appear to have the -p or the -l parms.
> What you describe sounds way cool, though.
>
> Here's what I get:
>
> # netstat -pl
> netstat: invalid option -- p
> usage: netstat [-veenNcCF] [<Af>] -r         netstat {-V|--version|-h|--help}
>        netstat [-vnNcaeo] [<Socket>]
>        netstat { [-veenNac] -i | [-cnNe] -M }
>
>         -r, --route              display routing table
>         -i, --interfaces         display interface table
>         -s, --statistics         display networking statistics
>         -M, --masquerade         display masqueraded connections
>
>         -v, --verbose            be verbose
>         -n, --numeric            dont resolve names
>         -e, --extend             display other/more informations
>         -c, --continuous         continuous listing
>
>         -a, --all, --listening   display all
>         -o, --timers             display timers
>
> <Socket>={-t|--tcp} {-u|--udp} {-w|--raw} {-x|--unix} --ax25 --ipx --netrom
> <Af>= -A {inet|ipx|netrom|ddp|ax25},... --inet --ipx --netrom --ddp --ax25
> #
>
> Are you using a special version of netstat?
> Where did you get it?
>
> Thanks mucho,

On a RaQ2
[admin admin]$ netstat -V
Linux NET-3 Base Utilities
Source: net-tools 1.33 net-tools@xxxxxxxxxxxx (Bernd Eckenfels)
Kernelsource: 2.0.30
netstat 1.23 (1997-05-19)
Fred Baumgarten <dc6iq@xxxxxxxxxxxxxxxxxxxxxxxxxxx> and Alan Cox.
+NEW_ADDRT +RTF_IRTT +RTF_REJECT +FW_IPMASQUERADE -NLS
AF:(inet) +UNIX +INET +IPX -AX25 -NETROM -ATALK
HW: +ETHER +ARC +SLIP +PPP +TUNNEL +TR -AX25 -NETROM -FR

On a RaQ4
[admin admin]$ netstat -V
net-tools 1.57
netstat 1.39 (2000-05-21)
Fred Baumgarten, Alan Cox, Bernd Eckenfels, Phil Blundell, Tuan Hoang and others
+NEW_ADDRT +RTF_IRTT +RTF_REJECT +FW_MASQUERADE +I18N
AF: (inet) +UNIX +INET +INET6 +IPX +AX25 +NETROM -X25 +ATALK +ECONET +ROSE
HW:  +ETHER +ARC +SLIP +PPP +TUNNEL +TR +AX25 +NETROM -X25 +FR +ROSE +ASH +SIT +
FDDI +HIPPI +HDLC/LAPB

http://rpmfind.net/linux/RPM/PLD/people/baggins/Rescue-CD/RPMS/net-tools-1.57-4.
i386.html

I could only find for i386, again mips users may  be SOL.
Anyone??
Gerald