Friday, September 25, 2009

How to open port 80/http and 443/https on Fedora Core 10

Login as root


# vi /etc/sysconfig/iptables

Add these lines

-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT

Restart iptables


# /etc/init.d/iptables restart


No comments: