How to check all open ports on linux machine and block unused ports?

netstat -t
#nmap -v localhost for tcp
#nmap -sU localhost for udp

#netstat -tulp
or
#netstat -tulpn

to verfy the open ports

No comments: