iptables -I INPUT -p tcp --dport 22 -m state --state NEW -j ACCEPT iptables -I INPUT -p tcp --dport 80 -m state --state NEW -j ACCEPT service iptables save iptables restart