iptables block unused port

<img src="http://i212.photobucket.com/albums/cc195/rajamalingjagung/noemet/iptables.png" width="75%"

Very simple. Go to terminal in your any of your Linux and do these in root privileged :
iptables -A INPUT -p tcp –dport 444:53999 -j DROP
iptables -A INPUT -p tcp –dport 54001:60000 -j DROP

If we do these in server, at least our server will be alright.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.