You might cruise google for netstat(8) tutorials. (I find netstat's manpages to be slightly obtuse.)
Also check out lsof(8). For example, to view IPv4 listening ports and connections:
# lsof -i4
"Closing" ports is another matter. The best approach is to shut down the service associated with the listening port (if it's not legitimately needed). Another approach is to set up packet filtering rules to block or otherwise manage connections.
Last edited by anomie; 05-27-2009 at 02:32 PM.
|