Category Archives: security

Iptables examples

1. Close all ports except 5130 and 21

IPTABLES='/sbin/iptables'
$IPTABLES -A FORWARD -s 192.168.10.164 -p tcp -m tcp --dport 5190 -j ACCEPT
$IPTABLES -A FORWARD -s 192.168.10.164 -p tcp -m tcp --dport 21 -j ACCEPT
$IPTABLES -A FORWARD -s 192.168.10.164 -j DROP

Continue reading