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 a referral link (if any) on this page, we may earn a commission.
If you're feeling thankful, you can buy me a coffee or a beer