[plug] Show the running iptables

Andrew Furey andrew.furey at gmail.com
Wed Apr 13 11:00:58 WST 2005


On 4/13/05, Matthew Lambie <mlambie at thefrontiergroup.com.au> wrote:
> Is there a command that will export the *current* state of an iptables
> firewall back into the individual rules that you need to run to create
> that state?

/sbin/iptables-save should do a pretty good job (although the handling
of the separate tables (nat, etc) might need some hand-holding).

Andrew

-- 
Linux supports the notion of a command line or a shell for the same
reason that only children read books with only pictures in them.
Language, be it English or something else, is the only tool flexible
enough to accomplish a sufficiently broad range of tasks.
                          -- Bill Garrett



More information about the plug mailing list