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

Re: my iptables setting not loaded after reboot in fc5



> You should also change
>
> IPTABLES_SAVE_ON_RESTART="no"
>
> to
>
> IPTABLES_SAVE_ON_RESTART="yes"
>
> as well in /etc/sysconfig/iptables-config. Then make all the desired changes
> you
> want in iptables rules and save them (just in case) by
>
> iptables-save > /etc/sysconfig/iptables
>
> Then your rules should survive system reboots.
>
> Filippos
>
No, it gets even worse -- erased all of my settings and put something like:

# Generated by iptables-save v1.3.5 on Thu May 18 14:04:52 2006
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
COMMIT
# Completed on Thu May 18 14:04:52 2006
# Generated by iptables-save v1.3.5 on Thu May 18 14:04:52 2006
*mangle
:PREROUTING ACCEPT [5249:508453]
:INPUT ACCEPT [5249:508453]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [2607:420915]
:POSTROUTING ACCEPT [2608:421173]
COMMIT
# Completed on Thu May 18 14:04:52 2006
# Generated by iptables-save v1.3.5 on Thu May 18 14:04:52 2006
*nat
:PREROUTING ACCEPT [544:96419]
:POSTROUTING ACCEPT [119:9123]
:OUTPUT ACCEPT [119:9123]
COMMIT
# Completed on Thu May 18 14:04:52 2006

in the file /etc/sysconfig/iptables and no port (22, 80, etc.) is open after
reboot.

Hongwei


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