Block Port 25 with IPTables

Block all port 25 except from localhost

-A INPUT -p tcp -s localhost –dport 25 -j ACCEPT

-A INPUT -p tcp –dport 25 -j DROP

This entry was posted in Linux How-To, Networking. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *