Edit /etc/sysconfig/iptables:
vi /etc/sysconfig/iptables
Add the following line
-A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 80 -j ACCEPT
Save and restart iptables.
service iptables restart
How To Open Port 80 on Iptables on CentosEdit /etc/sysconfig/iptables:
Add the following line
Save and restart iptables.
|
|