Re: Preferred way of preserving firewall rules on system reboots?

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

 



On May 13, 2004 10:58 am, Cedric Blancher wrote:
> Le jeu 13/05/2004 à 16:48, Aleksandar Milivojevic a écrit :
> > What is your preferred way of preserving firewall configuration on
> > firewall reboots?  I know this is probably distribution specific.
>
> Every time I need to save the ruleset :
>
> 	iptables-save > /etc/firewall
>
> Then, in a startup script (/etc/init.d/networking on my Debian), I add :
>
> 	iptables-restore < /etc/firewall

	I've modified my scripts, in the 'shutdown' routines it rotates the last 7 
saved files and then saves the current with iptables-save, 
	startup calls the most recent file by default ... If I manually modify the
	firewall I can call the save function with init.d script, and it DOESN'T 
overwrite the current config, it rotates the files.

	Just *my* two cents worth


	Alistair



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux