Skip to contentSkip to conversation

/etc/sysconfig/iptables does not load on reboot

DISCUSSION David Leangen 2 participants 3 messages Jul 2, 2005

lore
Share & tools
lore
#0 lore raw

Hello!

On FC3, my file /etc/sysconfig/iptables is not being loaded on reboot. For some reason, my iptables is being loaded with some kind of default values.

I thought that the file /etc/sysconfig/iptables was supposed to be loaded via iptables-restore (and indeed this appears to be so according to the startup script in /etc/rc.d/init.d/iptables). Is there something that I am not understanding correctly?

Thank you!

#1 lore raw

hello David,

after u configure iptables - directly or via a script issue

iptables-save > /etc/sysconfig/iptables

then ur conf will be saved in the mentioned file & be available while restarting the service or reboot.

else the system will use the default conf that have been set up during the installation of the system.
and

"iptables-restore" :: resets the conf to the system default which means u lost the conf u just did.

thanks.

Quoted 16 lines · David Leangen

Hello!

On FC3, my file /etc/sysconfig/iptables is not being loaded on reboot. For some reason, my iptables is being loaded with some kind of default values.

I thought that the file /etc/sysconfig/iptables was supposed to be loaded via iptables-restore (and indeed this appears to be so according to the startup script in /etc/rc.d/init.d/iptables). Is there something that I am not understanding correctly?

Thank you!

Signature · 1 line
Happy! If not now never
#2 lore raw

Dear Tahmeed,

Thank you. But that's exactly what I'm doing.

I am absolutely positive that the correct script is saved to /etc/sysconfig/iptables. I tried with all of the following:

- iptables-save
- service iptables save

If I use 'iptables-restore /etc/sysconfic/iptables' after reboot, then the correct script gets loaded (which also shows that the correct values are in /etc/sysconfig/iptables).

My init script IS indeed getting run at system startup.

So, what I can't figure out is why the script in /etc/sysconfig/iptables is not being loaded at system startup.

Any ideas?

Thank you!!

Quoted 51 lines

-----Original Message-----
From: tahmeed [mailto:[email protected]]
Sent: 2 July 2005 14:44
To: [email protected]
Cc: [email protected]
Subject: Re: /etc/sysconfig/iptables does not load on reboot

hello David,

after u configure iptables - directly or via a script issue

iptables-save > /etc/sysconfig/iptables

then ur conf will be saved in the mentioned file & be available while restarting the service or reboot.

else the system will use the default conf that have been set up during the installation of the system.
and

"iptables-restore" :: resets the conf to the system default which means u lost the conf u just did.

thanks.

Quoted 4 lines · David Leangen

Hello!

On FC3, my file /etc/sysconfig/iptables is not being loaded on

reboot. For

Quoted 1 line

some reason, my iptables is being loaded with some kind of

default values.

Quoted 2 lines

I thought that the file /etc/sysconfig/iptables was supposed to

be loaded

Quoted 2 lines

via iptables-restore (and indeed this appears to be so according to the startup script in /etc/rc.d/init.d/iptables). Is there

something that I am

Quoted 7 lines

not understanding correctly?

Thank you!

--
Happy! If not now never