iptables

CentOS 6.4 iptables

iptables -P INPUT ACCEPT
iptables -F
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -p tcp --dport 111 -j ACCEPT
iptables -A INPUT -p tcp --dport 3390 -j ACCEPT
iptables -A INPUT -p tcp --dport 21879 -j ACCEPT
iptables -A INPUT -p tcp --dport 21880 -j ACCEPT
iptables -A INPUT -p tcp --dport 24007 -j ACCEPT
iptables -A INPUT -p tcp --dport 24008 -j ACCEPT
iptables -A INPUT -p tcp --dport 24009 -j ACCEPT
iptables -A INPUT -p tcp --dport 24010 -j ACCEPT
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT ACCEPT
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -L -v