[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: how to config 80 port for apache in iptables



Around 03:18pm on Sunday, April 12, 2009 (UK time), Nathan Huang scrawled:

> First step:
> echo '-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport
> 80 -j ACCEPT' >> /etc/sysconfig/iptables

This seems OK to me.
> 
> Second step:
> /sbin/service iptables restart
> 
> error:
> iptables: Flushing firewall rules:                         [  OK  ]
> iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
> iptables: Unloading modules:                               [  OK  ]
> iptables: Applying firewall rules: iptables-restore: line 15 failed
>                                                            [FAILED]

Are you sure this is exactly what you entered, and that it is line 15 om
iptables.  Can you post the whole of your iptables file.

Steve

-- 
 
(o<     www.stevesearle.com
//\     Powered by Fedora
V_/_    No MS products were used in the creation of this message

 16:49:09 up 6 days,  4:11,  1 user,  load average: 0.11, 0.03, 0.01

Attachment: pgpjwU3GLsrp1.pgp
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]