23rd July 2013, 01:57
|
Senior Member
|
|
Join Date: Jul 2013
Posts: 17
|
|
Quote:
Originally Posted by firefly007
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]
|
|