Login as root

[code]
# vi /etc/sysconfig/iptables
[/code]
Add these lines
[code]
-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
[/code]

Restart iptables

[code]
# /etc/init.d/iptables restart
[/code]
Related:
http://www.cyberciti.biz/faq/linux-iptables-firewall-open-port-80/

To become a Slicehost customer please go to: slicehost.com

Referral Note: When you purchase through an referral link (if any) on our site, we earn a commission.