[ale] iptables

Paul Cartwright ale at pcartwright.com
Fri Jan 16 16:31:50 EST 2009


On Fri January 16 2009, Jeff Lightner wrote:
> On those you can run "iptables-save >/etc/sysconfig/iptables" to create
> the file from what you have in memory.   On next boot it will read this
> to load the same values back.

I googled and found this. it... seems.. weird to put it here:

http://linux.derkeiler.com/Mailing-Lists/Debian/2008-06/msg00758.html
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.



-- 
Paul Cartwright
Registered Linux user # 367800
Registered Ubuntu User #12459



More information about the Ale mailing list