I have a fairly simple iptables script.
I want to load it prior to network connection.
I've put it in /etc/init.d/iptables (+ exec bit set)
However, it seems I need to run update-rc.d on it.
After reading through the man pages of update-rc.d I came up with this command in a attempt to load iptables on run level 2 (which
as I understand is the runlevel before the network)
Code:
update-rc.d iptables start 2 .
It gives me this error
Code:
update-rc.d: warning: /etc/init.d/iptables missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
update-rc.d: error: expected runlevel [0-9S] (did you forget "." ?)
As I understand it, lsb info is for services.. since my script has no need to start or stop like a service, do I really need it?
Also, do I really need to run it on every run level? I don't understand the point of "stopping" a script at shutdown that does nothing but define a ruleset.