[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-security] netstat
- Subject: RE: [cobalt-security] netstat
- From: Graeme Fowler <graeme.fowler@xxxxxxxxxxxxxx>
- Date: Thu, 31 May 2001 09:52:48 +0100
- List-id: Mailing list for users to address network security on Cobalt products. <cobalt-security.list.cobalt.com>
Howdy folks
> >netstat -lnp
> >
> >which shows you listening ports and the process holding them open.
>
> Yes, this would be helpful indeed... if only it worked!
> On my RaQ2, this command gives the following result:
>
> # netstat -lnp
> netstat: invalid option -- l
Aha!
In that case you could always download a copy of lsof and compile it
locally.
lsof == (literally) LiSt Open Files
With the -i switch it doesn't just show open ports, it shows the files
opened by the processes which have those ports open. It's a *lot* more
verbose that netstat, but in some cases I find it a whole load more useful.
Especially when I suspect there's something Not Quite Right with a machine
and something's hiding from me...
Again though as mentioned by Steve Werby, it might be a little difficult to
find an RPM for this. Use the source :)
Graeme