Firewall on boot [message #3011] |
Sat, 06 May 2006 20:59 |
ferp2
Messages: 29 Registered: May 2006
|
Junior Member |
|
|
Hello,
I've set up a vps running debian 3.1 minimal. I have a firewall I want brought up on boot. Debian no longer has an init script for booting iptables; instead you have to add "pre-up /etc/rc.firewall" in /etc/network/interfaces to get the firewall running at boot time. The problem is /etc/network/interfaces is created dynamically, so it's recommended to edit /etc/network/interfaces.template. So what I did is copy interfaces to interfaces.template, added "pre-up /etc/rc.firewall" and rebooted the vps. It doesn't work. Does someone know how to add the pre-up command to interfaces.template so that the system reboots with the firewall turned on.
Thanks
|
|
|