- A guide to securing your home computer system with a Linux firewall
- Is your home system at risk?
- What's safe?
- Is your home system a server?
- Are broadband connections more vulnerable?
- What ports are open?
- Using netstat to list ports
- Is Windows file sharing a risk?
- Using a port scan to test your system
- Checking for Windows NetBIOS risks
Your system probably has many ports open and active right now. The netstat utility can be used to see a current list of all listening ports and active connections.
To use the netstat utility on a computer running Windows 95/98/NT/2000, open a DOS window. If you just type in the command, the results will scroll right off the screen. A simple solution is to port the results into a text file that can then be viewed with a text editor. Enter the command netstat -a > netstat.txt.
Then use an editor like Notepad or simply use the command edit netstat.txt to view the results.
Look at the ports that are shown to be "listening." These are ports that a server on your system is "listening" to for a connection from another computer. Commonly you might see one or more ports in the 137-139 range listening. These are the ports used on Windows NetBIOS networks for file sharing.
On a Linux system, open a terminal window and enter the command
netstat -a | less.
You'll see the range of ports that are either listening or have active connections.
After looking at the results of netstat, you'll get a better idea of what is happening on your system. Just because you see a port is open, however, does not mean that your system is vulnerable to an attack. To find out, you need to take further steps.