[plug] NAT on a linux box

Mike Holland myk at plug.linux.org.au
Mon Feb 17 15:13:32 WST 2003


On Mon, 17 Feb 2003, Anthony J. Breeds-Taurima wrote:

> On Mon, 17 Feb 2003, Daniel Pearson wrote:
> 
> > From all the scripts i've tried, I haven't been able to put any into
> > /etc/init.d/ (i'm running debian) -- because I want to be able to
> > stop/start/restart it. Is what i'm trying to achieve unachievable, or is
> > there in fact a simple solution to this?
> 
> I'm not sure I understand the problem.

Nor I. Do you need to control it by the init/rc.d/ mechanism?
 
> or in /etc/network/inerfaces you can add:
> ---
> pre-up   /etc/init.d/firewall start
> pre-down /etc/init.d/firewall stop
> ---
> 
> And any time you restart your ethernet interfaces the ipchains script will
> rerun.

Is there any important reason why that should be done, rather than just 
set it up once at boot? 
 



More information about the plug mailing list