By default, iptables
blocks access to the ports used by the web server.
To configure iptables
to allow port 80 traffic, one must edit
/etc/sysconfig/iptables
and
/etc/sysconfig/ip6tables
(if IPv6 is in use).
Add the following line, ensuring that it appears before the final LOG and DROP lines for the INPUT chain:
-A INPUT -m state --state NEW -p tcp --dport 80 -j ACCEPT
To configure iptables
to allow port 443 traffic, one must edit
/etc/sysconfig/iptables
and
/etc/sysconfig/ip6tables
(if IPv6 is in use).
Add the following line, ensuring that it appears before the final LOG and DROP lines for the INPUT chain:
-A INPUT -m state --state NEW -p tcp --dport 443 -j ACCEPT