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

Re: Firewalling



Hi Wade,

> I'm fairly sure that this is "debian-illegal" way to do it, but I created
> a "firewall" script in /etc/init.d, and then the correct symlinks to that
> script from the RC directories.  The files are:
> -rwxr-xr-x    387 Nov  7 22:43 init.d/firewall*
> lrwxrwxrwx     18 Oct  7 23:36 rc2.d/S21firewall -> ../init.d/firewall*
> lrwxrwxrwx     18 Oct  7 23:36 rc6.d/K21firewall -> ../init.d/firewall*

...yes - you are right its "debian-illegal" :-)
the proper way is add the script to /etc/init.d/ and then:

update-rc.d SCRIPTNAME defaults

then it adds the script to all /etc/rc*.d/ in the right way with S* for
starting and K* for shutting down. for further information have a look
at the manpage. just a hint for the future :-)
regards
joris

-- 
Joris Mocka, Leiter Abt. IuK
SBF Gruppe		Tel: +49 211 20 99 51 31
Steinhof 51		Fax: +49 211 20 99 51 88
D-40699 Erkrath		http://www.sbf.de



Reply to: