Sunday, 19 July 2009

How to BLock Port IN iptables

Just Fire the command below from Ssh.

iptables -A FORWARD -p tcp –dport 25 -j DROP

Just Change the value of 25 in order to block another port, for example if you want to block port 456 then just fire
iptables -A FORWARD -p tcp –dport 456 -j DROP

No comments:

Post a Comment