koppcha
asked on
Open ports on UNIX
Hi,
I would like to know which command to use to know the port information on a UNIX Box and I would like to know about the open ports and closed ports.
Thanks
Koppcha
I would like to know which command to use to know the port information on a UNIX Box and I would like to know about the open ports and closed ports.
Thanks
Koppcha
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Try:
netstat -ab
or
netstat -a
if your unix distribution's netstat does not support the -b option.
netstat -ab
or
netstat -a
if your unix distribution's netstat does not support the -b option.
iptables --list
shows you which rules are setup
shows you which rules are setup
iptables -A INPUT -s <source-ip/wildcard> -p tcp -m tcp --dport <port-number> -j ACCEPT
http://unixhelp.ed.ac.uk/CGI/man-cgi?iptables