Enable Remote Access to Apache Web Server on CentOS 7

In its out of the box configuration you may find that CentOS Linux has iptables configured to prevent inbound HTTP requests.

You can add access for inbound HTTP requests on port 80 with the following command:

iptables -I INPUT 4 -p tcp -m state --state NEW -m tcp -dport 80 -j ACCEPT

Line 4 of the iptables -L output now shows that http is allowed inbound from anywhere:

 

If you would like to know more about Linux configuration take a look at our Linux Training Courses: http://ptr.co.uk/linux-unix-courses.

Share this post