Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

iptables-restore(8) [opendarwin man page]

IPTABLES-RESTORE(8)						  iptables 1.6.1					       IPTABLES-RESTORE(8)

iptables-restore -- Restore IP Tables ip6tables-restore -- Restore IPv6 Tables SYNOPSIS
iptables-restore [-chntv] [-M modprobe] [-T name] [file] ip6tables-restore [-chntv] [-M modprobe] [-T name] [file] DESCRIPTION
iptables-restore and ip6tables-restore are used to restore IP and IPv6 Tables from data specified on STDIN or in file. Use I/O redirection provided by your shell to read from a file or specify file as an argument. -c, --counters restore the values of all packet and byte counters -h, --help Print a short option summary. -n, --noflush don't flush the previous contents of the table. If not specified, both commands flush (delete) all previous contents of the respec- tive table. -t, --test Only parse and construct the ruleset, but do not commit it. -v, --verbose Print additional debug info during ruleset processing. -M, --modprobe modprobe_program Specify the path to the modprobe program. By default, iptables-restore will inspect /proc/sys/kernel/modprobe to determine the exe- cutable's path. -T, --table name Restore only the named table even if the input stream contains other ones. BUGS
None known as of iptables-1.2.1 release AUTHORS
Harald Welte <> wrote iptables-restore based on code from Rusty Russell. Andras Kis-Szabo <> contributed ip6tables-restore. SEE ALSO
iptables-apply(8),iptables-save(8), iptables(8) The iptables-HOWTO, which details more iptables usage, the NAT-HOWTO, which details NAT, and the netfilter-hacking-HOWTO which details the internals. iptables 1.6.1 IPTABLES-RESTORE(8)

Check Out this Related Man Page

IPTABLES-APPLY(8)                                                 iptables 1.6.1                                                 IPTABLES-APPLY(8)

iptables-apply - a safer way to update iptables remotely SYNOPSIS
iptables-apply [-hV] [-t timeout] [-w savefile] {[rulesfile]|-c [runcmd]} DESCRIPTION
iptables-apply will try to apply a new rulesfile (as output by iptables-save, read by iptables-restore) or run a command to configure iptables and then prompt the user whether the changes are okay. If the new iptables rules cut the existing connection, the user will not be able to answer affirmatively. In this case, the script rolls back to the previous working iptables rules after the timeout expires. Successfully applied rules can also be written to savefile and later used to roll back to this state. This can be used to implement a store last good configuration mechanism when experimenting with an iptables setup script: iptables-apply -w /etc/network/iptables.up.rules -c /etc/network/ When called as ip6tables-apply, the script will use ip6tables-save/-restore and IPv6 default values instead. Default value for rulesfile is '/etc/network/iptables.up.rules'. OPTIONS
-t seconds, --timeout seconds Sets the timeout in seconds after which the script will roll back to the previous ruleset (default: 10). -w savefile, --write savefile Specify the savefile where successfully applied rules will be written to (default if empty string is given: /etc/network/iptables.up.rules). -c runcmd, --command runcmd Run command runcmd to configure iptables instead of applying a rulesfile (default: /etc/network/ -h, --help Display usage information. -V, --version Display version information. SEE ALSO
iptables-restore(8), iptables-save(8), iptables(8). LEGALESE
Original iptables-apply - Copyright 2006 Martin F. Krafft <>. Version 1.1 - Copyright 2010 GW < or>. This manual page was written by Martin F. Krafft <> and extended by GW < or>. Permission is granted to copy, distribute and/or modify this document under the terms of the Artistic License 2.0. iptables 1.6.1 IPTABLES-APPLY(8)
Man Page