Re: script init
* Little-John (f.carone@tiscali.it) ha scritto:
> * sim ton (firewall38@lycos.com) ha scritto:
> > hi,
> > so my firewall is almost good :)
> > but i want to init it at any reboot ...
> > ...
> once your firewall is setup, just do:
> $ iptables-save > /etc/init.d/myfirewallrules
>
> and in the init.d directory the firewall.sh is:
>
> echo -ne "Starting Firewall... "
> echo 1 > /proc/sys/net/ipv4/ip_forward
> /usr/sbin/iptables-restore < /etc/init.d/firwal2
^^^^^^^
this *has* to be myfirewallrules, or it won't work.
> echo -ne "done\n"
--
littlejohn -- dynebolic developer -- dynebolic.dyne.org
latest iso: http://mufhd0.dyne.org/dynebolic-0.4.iso.gz
--
To UNSUBSCRIBE, email to debian-firewall-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: