[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: automatic firewall start/stop



On Fri, Aug 02, 2002 at 10:40:27AM -0700, Richard Weil wrote:

> Could someone send me an example, or provide a
> detailed explanation, of how to integrate a firewall
> start/stop script into the appropriate networking
> scripts, so that the firewall is automatically started
> and stopped on (re)boot and shutdown?
> 
> I'm running testing w/ a 2.4 kernel, all the necessary
> firewall modules compiled, and using iptables.
> 
> Any help would be greatly appreciated. Thanks.

You can use the up, down, etc. parameters in the interfaces
configuration file. Read the interfaces(5) man page.

if-down.d, if-pre-up.d, if-post-down.d, and if-up.d directories
are also available under /etc/network/. I don't know where
they are explicitly documented, but run-parts(8) should give
you an idea of how to use them.



Reply to: