Re: [CEntOS] - problem with iptables

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



sorry, but now if I modify /etc/sysconfig/iptables and I add two strings,
per example:

output omitted
-----
-A INPUT -s ddns.no-ip.org -p icmp -j ACCEPT
-A INPUT -j DROP
------
output omitted

and I do:

service iptables save
and
restart my iptables firewall, output iptables -L is:

-A INPUT -j DROP
-A INPUT -s ddns.no-ip.org -p icmp -j ACCEPT


why?


2013/10/10 Paolo De Michele <paolo@xxxxxxxxxxxxxxxxx>

> ChriG, thank you for your help
> I solved the problem but until now it had never happened with the VPS.
> iptables first started out and then edit the file /etc/sysconfig/iptables
> and chkconfig iptables on
>
> good to know
> many thanks
>
>
>
>
>
> 2013/10/10 Chris Geldenhuis <chris.gelden@xxxxxxxxxxx>
>
>> On 10/10/2013 10:09 AM, Eero Volotinen wrote:
>> > chkconfig iptables on
>> > fixes the problem..
>> > On Oct 10, 2013 10:51 AM, "Paolo De Michele" <paolo@xxxxxxxxxxxxxxxxx>
>> > wrote:
>> >
>> >> hi all,
>> >>
>> >> I have a problem with iptables on CentOS 6.2.
>> >> I configured:
>> >>
>> >> chkconfig iptables on
>> >> and the file /etc/sysconfig/iptables
>> >>
>> >> if you reboot the machine configurations are not loaded.
>> >> iptables-L gives me the default configurations (not assigned)
>> >> if I (a machine booted): service iptables start then then it works.
>> >>
>> >> how can I fix?
>> >> thanks in advance
>> >> _______________________________________________
>> >> CentOS mailing list
>> >> CentOS@xxxxxxxxxx
>> >> http://lists.centos.org/mailman/listinfo/centos
>> >>
>> > _______________________________________________
>> > CentOS mailing list
>> > CentOS@xxxxxxxxxx
>> > http://lists.centos.org/mailman/listinfo/centos
>> >
>> After service iptables start do:
>>
>> service iptables save
>>
>> This saves your configuration for the next restart / reboot
>>
>> ChrisG
>> _______________________________________________
>> CentOS mailing list
>> CentOS@xxxxxxxxxx
>> http://lists.centos.org/mailman/listinfo/centos
>>
>
>
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux