| 1 |
.TH IPTABLES-RESTORE 8 "" "iptables 1.8.13" "iptables 1.8.13" |
| 2 |
.\" |
| 3 |
.\" Man page written by Harald Welte <[email protected]> |
| 4 |
.\" It is based on the iptables man page. |
| 5 |
.\" |
| 6 |
.\" This program is free software; you can redistribute it and/or modify |
| 7 |
.\" it under the terms of the GNU General Public License as published by |
| 8 |
.\" the Free Software Foundation; either version 2 of the License, or |
| 9 |
.\" (at your option) any later version. |
| 10 |
.\" |
| 11 |
.\" This program is distributed in the hope that it will be useful, |
| 12 |
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 |
.\" GNU General Public License for more details. |
| 15 |
.\" |
| 16 |
.\" You should have received a copy of the GNU General Public License |
| 17 |
.\" along with this program; if not, write to the Free Software |
| 18 |
.\" Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 19 |
.\" |
| 20 |
.\" |
| 21 |
.SH NAME |
| 22 |
iptables-restore \(em Restore IP Tables |
| 23 |
.P |
| 24 |
ip6tables-restore \(em Restore IPv6 Tables |
| 25 |
.SH SYNOPSIS |
| 26 |
\fBiptables\-restore\fP [\fB\-chntvV\fP] [\fB\-w\fP \fIseconds\fP] |
| 27 |
[\fB\-M\fP \fImodprobe\fP] [\fB\-T\fP \fIname\fP] |
| 28 |
[\fIfile\fP] |
| 29 |
.P |
| 30 |
\fBip6tables\-restore\fP [\fB\-chntvV\fP] [\fB\-w\fP \fIseconds\fP] |
| 31 |
[\fB\-M\fP \fImodprobe\fP] [\fB\-T\fP \fIname\fP] |
| 32 |
[\fIfile\fP] |
| 33 |
.SH DESCRIPTION |
| 34 |
.PP |
| 35 |
.B iptables-restore |
| 36 |
and |
| 37 |
.B ip6tables-restore |
| 38 |
are used to restore IP and IPv6 Tables from data specified on STDIN or in |
| 39 |
\fIfile\fP. Use I/O redirection provided by your shell to read from a file or |
| 40 |
specify \fIfile\fP as an argument. |
| 41 |
.TP |
| 42 |
\fB\-c\fR, \fB\-\-counters\fR |
| 43 |
Restore the values of all packet and byte counters. |
| 44 |
.TP |
| 45 |
\fB\-h\fP, \fB\-\-help\fP |
| 46 |
Print a short option summary. |
| 47 |
.TP |
| 48 |
\fB\-n\fR, \fB\-\-noflush\fR |
| 49 |
Don't flush the previous contents of the table. If not specified, |
| 50 |
both commands flush (delete) all previous contents of the respective table. |
| 51 |
Note that this option will flush user-defined chains if they are declared. |
| 52 |
Example: |
| 53 |
.P |
| 54 |
.in +4n |
| 55 |
.EX |
| 56 |
*filter |
| 57 |
:FILTERS - [0:0] |
| 58 |
-A FILTERS ... |
| 59 |
.EE |
| 60 |
|
| 61 |
will flush and re-build the FILTERS chain from scratch, |
| 62 |
while retaining the content of all other chains in the table. |
| 63 |
.in |
| 64 |
.P |
| 65 |
.TP |
| 66 |
\fB\-t\fP, \fB\-\-test\fP |
| 67 |
Only parse and construct the ruleset, but do not commit it. |
| 68 |
.TP |
| 69 |
\fB\-v\fP, \fB\-\-verbose\fP |
| 70 |
Print additional debug info during ruleset processing. |
| 71 |
Specify multiple times to increase debug level. |
| 72 |
.TP |
| 73 |
\fB\-V\fP, \fB\-\-version\fP |
| 74 |
Print the program version number. |
| 75 |
.TP |
| 76 |
\fB\-w\fP, \fB\-\-wait\fP [\fIseconds\fP] |
| 77 |
Wait for the xtables lock. |
| 78 |
To prevent multiple instances of the program from running concurrently, |
| 79 |
an attempt will be made to obtain an exclusive lock at launch. By default, |
| 80 |
the program will exit if the lock cannot be obtained. This option will |
| 81 |
make the program wait (indefinitely or for optional \fIseconds\fP) until |
| 82 |
the exclusive lock can be obtained. |
| 83 |
.TP |
| 84 |
\fB\-M\fP, \fB\-\-modprobe\fP \fImodprobe\fP |
| 85 |
Specify the path to the modprobe(8) program. By default, |
| 86 |
iptables-restore will inspect \fI/proc/sys/kernel/modprobe\fP to |
| 87 |
determine the executable's path. |
| 88 |
.TP |
| 89 |
\fB\-T\fP, \fB\-\-table\fP \fIname\fP |
| 90 |
Restore only the named table even if the input stream contains other ones. |
| 91 |
.SH BUGS |
| 92 |
None known as of iptables-1.2.1 release |
| 93 |
.SH AUTHORS |
| 94 |
Harald Welte <[email protected]> wrote iptables-restore based on code |
| 95 |
from Rusty Russell. |
| 96 |
.br |
| 97 |
Andras Kis-Szabo <[email protected]> contributed ip6tables-restore. |
| 98 |
.SH SEE ALSO |
| 99 |
\fBiptables\-apply\fP(8), \fBiptables\-save\fP(8), \fBiptables\fP(8) |
| 100 |
.PP |
| 101 |
The iptables-HOWTO, which details more iptables usage, the NAT-HOWTO, |
| 102 |
which details NAT, and the netfilter-hacking-HOWTO which details the |
| 103 |
internals. |