Centos 7 enable port 80
firewall
firewall-cmd --zone=public --add-port=80/tcp --permanent
systemctl stop firewalld.service systemctl start firewalld.service systemctl restart firewalld.service
Ipatbles
iptables -A INPUT -p tcp --dport 80 -j ACCEPT iptables -A OUTPUT -p tcp --sport 80 -j ACCEPT
systemctl save iptables.service systemctl restart iptables.service