How To Open Port 80 on Iptables on Centos | H...

来源:百度文库 编辑:神马文学网 时间:2024/04/29 18:09:43

How To Open Port 80 on Iptables on Centos

March 18th, 2009 Leave a comment Go to comments

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