Iptables setup

Daniel Carrera daniel.carrera at zmsl.com
Sun Jun 18 14:21:12 UTC 2006

Chris Peterman wrote:
> "iptables-save > /etc/somefile 
> Then in /etc/network/interfaces, below the eth0 (or whatever your interface 
> is) I put "pre-up iptables-restore < /etc/somefile"

That sounds good, I'll use that. Thanks!

> Also its important to use > and not >>. We want to clobber the file this time, 
> NOT append to it! :D

I wonder if using >> would make the file grow exponentially. That would 
be funny. :)

Thanks for the help.

   "The reasonable man adapts himself to the world; the
   unreasonable man tries to adapt the world to himself.
   Therefore all progress depends on unreasonable men."
         -- George Bernard Shaw

More information about the ubuntu-users mailing list