Re: ipchain and init.d
Hi!
My recommendation:
log in as root and
1. cd /etc/init.d
2. vi ipchains (to create this new file)
3. put your ip_forward code into it, and you have place here for your
firewall rules.
4. exit vi
5. chmod u=rwx ipchains
6. chmod g=rx ipchains
7. chmod o=rx ipchains
Now at boot time your firewall will be started.
Cu
Timo
> A short question:
>
> where could I put these commands, to be run at the boot time:
>
> ipchain -A forward -s 192.168.0.0/24 -j MASQ
> echo 1 > /proc/sys/net/ipv4/ip_forward
>
> Thanks,
> Jack
>
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
>
--
Sent through GMX FreeMail - http://www.gmx.net
Reply to: