Firewalled Port after each restart on Centos

If You have Experienced problems connecting to your port 80 after restarting a Centos Lniux server that needs the firewall to be stopped don’t worry and don’t feel that it is normal to have iptables or firewalls stopped after Each restart

The Apache webserver is listening on port 80.
port 80 is by default firewalled by CentOs Linux Operating System, So normaly you should always stop the firewall; But this is not the normal way.
You just need to provide the iptables firewall a line of rule to allow this port so even the system(operating system) is restarted you do not need to do this crazy thing.
In the Following I have instructed how to Allow connections on port 80 on Centos Linux Iptables Firewall

login as root to ssh terminal

nano /etc/

and add this line, second from the bottom:

-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT


Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.