View Single Post
  #13  
Old 23rd July 2013, 01:57
Dote Dote is offline
Senior Member
 
Join Date: Jul 2013
P2P
Posts: 17
Default
Quote:
Originally Posted by firefly007 View Post
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
I get an error:
Quote:
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: nat mangle filter [ OK ]
Unloading iptables modules: [ OK ]
Applying iptables firewall rules: iptables-restore: line 2 failed
[FAILED]
Reply With Quote