netstat -an | sort | less

yes, but ethereal will produce summaries that are more intelligible

Jim Tarvid

On Tuesday 25 June 2002 10:27 pm, you wrote:
> Dumb question:
>
> Is there a command that will list all currently open (or listening) ports?
> I'm thinking that this might be one way of checking to see if a system has
> been compromised...  (i.e. listening on a known trojan port is probably a
> dead give-away.)
>
> On a related note, is there an easy way of getting iptables to log all port
> (open/close/listen(?)) activity?
>
> Thanks,
> -Jason  // slightly paranoid...
>
> =========================
> If the laws of action and reaction had anything to do with it, it should
> have flopped to the ground a few feet away. But no-one was listening to
> them. (The Light Fantastic)

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to