On Sunday 27 January 2008, Michael Quick wrote: > If you type netstat -ntlp you'll see what ports are listening.
Most things use TCP but a small number use UDP. To see UDP ports that are listening, change the -t option to a -u. I usually use -tlp to see the ports by service name rather than by number. And on a somehwat unrelated note, for some reason the 'route' command on Mac OSX doesn't show the routes, so it's necessary to use 'netstat -nr' for that instead. > The command /sbin/iptables -L illustrates what traffic (ACKs) is > actually allowed through to the system 'unsolicited'. I assume ACKs = 'ACCEPT' rules. I now commonly use iptables -nvL which shows the rules [L], a count of how many packets each rule matched [v], and without doing DNS lookups on all the IP addresses in the rules [n]. I didn't know the -v part until someone at Nylug pointed it out. -- Chris -- Chris Knadle [EMAIL PROTECTED]
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Mid-Hudson Valley Linux Users Group http://mhvlug.org http://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug Upcoming Meetings (6pm - 8pm) MHVLS Auditorium Feb 6 - DBUS Mar 5 - Setting up a platform-independent home/small office network using Linux
