Tuesday, February 16, 2010

centos open port number 80 for apache in iptables

[root@localhost ~]# vim /etc/sysconfig/iptables
# add this line
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT

No comments:

Post a Comment