Block Port : In/Out
Incoming :
iptables -A INPUT -p tcp --destination-port 80 -j DROP
In Specific interface :
iptables -A INPUT -i eth1 -p tcp --dport 80 -j DROP
Exception IP :
iptables -A INPUT -p tcp -i eth1 -s ! 122.222.80.xx --dport 80 -j DROP
Outgoing :
/sbin/iptables -A OUTPUT -p tcp --dport 25 -j DROP
No comments:
Post a Comment