firewall centos

when the httpd server not accesible from outside then you just


Notice that in some versions of CentOS, a firewall is installed by default which will block access to port 80, on which Apache runs. The following command will open this port:

sudo iptables -I INPUT -p tcp --dport 80 -j ACCEPT

Remember to save your firewall rules after adding that instruction so your web server will be accessible the next time you reboot:

sudo service iptables save

Leave a Reply

© 2019 IT & Photography blog | ScrollMe by AccessPress Themes