On Mon, 13 Mar 2000, Kenton Barkey wrote about, Keeping IP Masquerading:
> Setting up a small network using a Linux box to connect users to the
> internet via IP masquerading. Everything works ok, but since I'm new to
> this I have not found out how to make the change hold after a reboot.
> As it stands now I have to type the ipchain commands each time I boot.
> The article I got it from makes reference to entering the lines into a
> shell, but I'm not sure what they mean. Any help on how to make a shell
> to initiate the ipchain commands after a reboot would be appreciated.
> Also, if this shell needs to be compiled, please provide instructions on
> how to do that too. Thanks.
You dont say what distro you have, this makes all the differance, different
distro's do this sort of thing in different ways.
However there is a way it can be done on all systems.
Create a file called rc.firewall place it in /etc/rc.d
Place on the first line
#!/bin/sh
add all the lines to this file you would add on the command line, one
command per line.
close the file and do;
chmod a+x rc.firewall
edit /etc/rc.d/rc.local and place the following at the bottom.
if [ -x /etc/rc.d/rc.firewall ]; then
. /etc/rc.d/rc.firewall
else
echo "rc.firewall is not execacutable"
fi
If you dont want to apply firewalling at boottime simply do;
chmod a-x /etc/rc.d/rc.firewall
--
Regards Richard
[EMAIL PROTECTED]
http://people.zeelandnet.nl/pa3gcu/
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs