PDA

View Full Version : Checking for open ports


asc
30th November 2004, 02:28 PM
Hello!

I have two questions regarding open ports:
(1) How can I check which ports are open on my machine?
(2) Are there any log-files that log connections to open ports?

Quella
30th November 2004, 02:36 PM
typing 'netstat -an' will show you the listening and open ports. I would be more concerned with ports listening on 0.0.0.0 (all interfaces) than those on 127.0.0.1 (localhost). Here you will see all open and listening ports from the box.

Quella

ghaefb
30th November 2004, 02:55 PM

Nmap is a great tool for this.
Run in terminal: nmap -sS -v -p- 127.0.0.1

If you have FedoraCore3 you can use NetworkTools -> Port scan. Use 127.0.0.1

moronbros
30th November 2004, 03:46 PM
I use:


netstat -tuapen | grep LISTEN


That's a pretty granular way of getting what you want. I think I found that on another thread here..just search more before you post =P

pigpen
30th November 2004, 04:19 PM
Also try[root@pc50511 root]# lsof -i

sej7278
30th November 2004, 05:41 PM
Buy a $30 router. All you ports are now closed to the outside world, yay!

Jman
1st December 2004, 04:04 AM
There are a variety of port scanners on the web that scan common ports.

One of these is the security risks checker from Symantec (http://securityresponse.symantec.com/).

asc
2nd December 2004, 05:19 PM
Hello,

Thank's for all the answers!

@Jman
The security checker from Symantec seems to work only for Windows systems.

Tashiro
2nd December 2004, 05:34 PM
Also check the securtiy site www.grc.com

And do the Shields up test (http://www.grc.com/default.htm).

Tashiro