Open/Close Port in Centos
1. Show status
/etc/init.d/iptables status
2.Set Port
iptables -I INPUT -p tcp --dport 80 -j ACCEPT iptables -I INPUT -p tcp --dport 443 -j ACCEPT
3.Save change
/etc/init.d/iptables save
4.Restart
/etc/init.d/iptables restart