The way I do it...

Create a file /etc/network/if-up.d/firewall.sh , make sure it is executable.
In that file put all the iptables rules you want and since it is bash
scripting you can get pretty fancy. Then in /etc/network/interfaces add the
following line to one of the interface definitions, 'up
/etc/network/if-up.d/firewall.sh'. That is all you need.

On Thu, Jun 12, 2008 at 1:24 AM, Ding Honghui <[EMAIL PROTECTED]> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Is there a debian way to save and load iptables rule when system boot or
> interface active?
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFIULL4Jo9Njjkvy34RAhlnAJ9fC3dMDnCYTZbYpiuUgLsT0AqC6ACbB0sZ
> 4wpwOb6RYSRXFl+0jU8ie20=
> =PTJt
> -----END PGP SIGNATURE-----
>
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact
> [EMAIL PROTECTED]
>



-- 
Brian J. Schrock
Systems Engineer, IntegraLink
The Cobalt Group, Inc.
4635 Trueman Blvd, Suite 100
Hilliard, OH 43026
[EMAIL PROTECTED]
www.integralink.com
p. 614.324.7800 ext. 3295

Reply via email to