[Mimedefang] Firewalls and Mimedefang

Damrose, Mark mdamrose at elgin.edu
Tue Sep 15 16:13:50 EDT 2009


-----Original Message-----
From: David F. Skoll
Sent: Tue 9/15/2009 3:09 PM
To: mimedefang at lists.roaringpenguin.com
Subject: Re: [Mimedefang] Firewalls and Mimedefang
 
> Well, why don't you get a list of listening ports:
>
> TCP ports: netstat -a -t -n | grep LISTEN
> UDP ports: netstat -a -u -n | grep '0 0.0.0.0:'
>
> (The UDP line might only work on Linux.  It certainly assumes IPv4. :-))

Or you could do:
netstat -n -l -p

Which will show all (tcp/udp, IPv4/IPv6) listening ports and the associated pid/program.



More information about the MIMEDefang mailing list