* Maxim Veksler <[EMAIL PROTECTED]> [070702 03:32]: > On 7/2/07, Lior Kaplan <[EMAIL PROTECTED]> wrote: > >Maxim Veksler wrote: > > > >Use iptables-save to save your current rules as to the iptables rules > >files. It will be loaded on the next reboot using iptables-restore. > > > > Ha? > > I must be missing something, I would like the rules to load > _automatically_ on next boot. > Using iptables-restore is great, provided that someone/something > invokes it on system reboot, that is exactly what I'm doing in the > script attached to my previous email. > > Is there already something that will handle this automatically?
You can have up rules in your network configuration file /etc/network/interfaces, such an up rule can load the firewall ruleset. This can also be a pre-up rule to load the rules before the interface is up. Something like: iface eth0 inet dhcp pre-up iptables-restore < /root/iptables.rulez Cheers, Baruch ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]