FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 06-12-2008, 05:31 AM
Volkan YAZICI
 
Default Where debian save iptables rules?

On Thu, 12 Jun 2008, Ding Honghui <hhding.gnu@gmail.com> writes:
> Is there a debian way to save and load iptables rule when system boot or
> interface active?

See scripts under /etc/network/if-{up,down}.d directories. Also,
interfaces(5) manual would be helpful.


Regards.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 06-12-2008, 12:55 PM
"Brian Schrock"
 
Default Where debian save iptables rules?

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 <hhding.gnu@gmail.com> 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



iD8DBQFIULL4Jo9Njjkvy34RAhlnAJ9fC3dMDnCYTZbYpiuUgL sT0AqC6ACbB0sZ

4wpwOb6RYSRXFl+0jU8ie20=

=PTJt

-----END PGP SIGNATURE-----





--

To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org

with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



--
Brian J. Schrock
Systems Engineer, IntegraLink
The Cobalt Group, Inc.
4635 Trueman Blvd, Suite 100
Hilliard, OH 43026
bschrock@integralink.com

www.integralink.com
p. 614.324.7800 ext. 3295
 

Thread Tools




All times are GMT. The time now is 12:01 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org