ah
in Centos
edit
vi /etc/sysconfig/iptables
and
Add the following lines, ensuring that they appear before the final LOG and DROP lines for INPUT chain:
Code:
## allow everyone to access port 80 and 443 (IPv4 Only)##
-A INPUT -m state --state NEW -p tcp --dport 80 -j ACCEPT -A INPUT -m state --state NEW -p tcp --dport 443 -j ACCEPT
Then save and exit, you can find how to use VI editor here:
http://www.cyberciti.biz/faq/save-fi...acos-unix-bsd/
Then restart IPtables with:
service iptables start