Configure iptables on CentOS 6

Enable TCP Port 80 and 443

iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT

Activate above rules

service iptables save
service iptables restart
Last updated on by Yasitha Bogamuwa