Re: masq settings with /etc/init.d/networking script
On Wed, Sep 13, 2000 at 02:23:13PM -0700, C. R. Oldham wrote:
> I just setup my Linux box to use the new /etc/init.d/networking startup
> script. I was using the old /etc/init.d/network script from the
> sysvinit examples. Can someone tell me where I'm supposed to put calls
> to ipchains to setup my firewalling and masquerading?
This has been asked a few times before. I do it as follows:
/etc/init.d/fire.sh <- contains calls of the following
firewall scripts:
/etc/ppp/firewall_off.sh
/etc/ppp/firewall_on.sh
/etc/ppp/firewall_on.sh.bw
/etc/ppp/firewall_on.sh.sol
/etc/ppp/firewall_on.sh.sol.loose
I have so many scripts as I am currently in the transition
phase from ISDN dial-up to cable modem.
Use the program update-rc.d to create links for the various
runlevel-dirs if you use the SysV init.
(See /etc/init.d/README and /usr/doc/sysvinit/README.runlevels.gz
for more infos on this)
I've not experienced downsides with this approach so far.
HTH
Sven
--
L I N U X .~.
The Choice /V\
of a GNU /( )\
Generation ^^-^^
Reply to: