1 2 3 4 5 6 7 | #!/bin/bash iptables -A INPUT -p tcp -m multiport --destination-ports 22,25,53,21,80,443,465,5222,5269,5280,6900,6121,5121 -j ACCEPT iptables -A INPUT -p udp -m multiport --destination-ports 53 -j ACCEPT iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT iptables -P INPUT DROP iptables -P FORWARD DROP |