Saturday, 22 August 2009

Verify that port is open


Run following command:


(1)netstat -tulpn | less or


(2)netstat -lntp | grep :21 (put any port)
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 23054/vsftpd


(3)netstat -lnp | grep '0.0.0.0:80'


(4)netstat -lnp | grep 'exim'
tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN 22105/exim
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 22097/exim
tcp 0 0 0.0.0.0:26 0.0.0.0:* LISTEN 22091/exim

No comments:

Post a Comment