Yup, avarus is right. Place your firewall script in /etc/init.d/rc.firewall-2.4. Then do (as root) 'update-rc.d rc.firewall-2.4 defaults'. This will create the default symlinks that will start your firewall when system is started and stop it when you reboot or halt the system.
Or, you can do something like 'update-rc.d rc.firewall-2.4 start 40 2 3 4 5 . stop 40 0 1 6 .', which will do the same thing, except you've now named the symlinks that start the firewall S40rc.firewall-2.4 (and those that stop the firewall K40rc.firewall-2.4).
Debian uses runlevels 2-5 for normal multi-user modes, runlevel 0 for halt, runlevel 1 for single-user mode, and runlevel 6 for reboot. Services for these runlevels are configured as symlinks in /etc/rc[0-6].d/. All these symlinks point to scripts in /etc/init.d/.
For more info, see 'man update-rc.d'.
Last edited by Dead Parrot; 04-17-2004 at 05:39 PM.