Skip to contentSkip to conversation

iptables doesn't keep chain list after reboot

DISCUSSION TheNokia 3 participants 3 messages May 17, 2007

lore
Share & tools
lore

TheNokia

author
#0 lore raw

Hi,

iptables doesn't keep chan list after rebooting. I need to recreate all of them.

Is there something to do?

Thanks.

#1 lore raw

This is to keep you from making a mistake and not being able to get back into your server. One reboot, and everything is back to the way it was before the change. Of course, you can take other measures to regain access without having to take your server down, but this is a last-ditch method in case you didn't take any other precautions.

Once you have a rule set that you are confident with, you have to make it a part of your server's startup sequence, much like a personal firewall automatically makes itself a part of your Windows startup.

You will find all this and more here: http://www.iptablesrocks.org

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Paul Blondé

Quoted 17 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of TheNokia
Sent: Thursday, May 17, 2007 7:41 AM
To: [email protected]
Subject: iptables doesn't keep chain list after reboot

Hi,

iptables doesn't keep chan list after rebooting. I need to recreate all of them.

Is there something to do?

Thanks.

#2 lore raw
In reply to TheNokia
Quoted 2 lines

Is there something to do?

Hi.

You can use iptables-save to save your iptables configuration , and use iptables-restore to restore it.

You can add this command to your /etc/rc.local to see them restored at every boot.

++
Ben