Re: automatic Firewall start/stop
On Fri, Aug 02, 2002 at 11:31:08AM -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? Most
>documentation I've seen seems Redhat oriented, which I
>don't think is relevant in this case.
>
>I'm running testing w/ a 2.4 kernel, all the necessary
>firewall modules compiled, and using iptables. My
>firewall works fine, I just manually start and stop
>it.
>
>Any help would be greatly appreciated. Thanks.
>
>Richard
/etc/init.d/iptables save active
will save the current ruleset, to be loaded on startup
if you want to use the init.d script to unload your firewall, flush
all your rules, then
/etc/init.d/iptables save inactive
HTH
--
Peter Hicks
GnuPG public key: http://jah.net/~petong/public_key.txt
Key Fingerprint: 4E24 3C78 A165 537C 729C 8D25 3547 3CE9 9E7D 42B6
You will be singled out for promotion in your work.
Reply to: