Blame iptables/iptables-restore.8.in

Packit 7b22a4
.TH IPTABLES-RESTORE 8 "" "@PACKAGE_STRING@" "@PACKAGE_STRING@"
Packit 7b22a4
.\"
Packit 7b22a4
.\" Man page written by Harald Welte <laforge@gnumonks.org>
Packit 7b22a4
.\" It is based on the iptables man page.
Packit 7b22a4
.\"
Packit 7b22a4
.\"	This program is free software; you can redistribute it and/or modify
Packit 7b22a4
.\"	it under the terms of the GNU General Public License as published by
Packit 7b22a4
.\"	the Free Software Foundation; either version 2 of the License, or
Packit 7b22a4
.\"	(at your option) any later version.
Packit 7b22a4
.\"
Packit 7b22a4
.\"	This program is distributed in the hope that it will be useful,
Packit 7b22a4
.\"	but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 7b22a4
.\"	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 7b22a4
.\"	GNU General Public License for more details.
Packit 7b22a4
.\"
Packit 7b22a4
.\"	You should have received a copy of the GNU General Public License
Packit 7b22a4
.\"	along with this program; if not, write to the Free Software
Packit 7b22a4
.\"	Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Packit 7b22a4
.\"
Packit 7b22a4
.\"
Packit 7b22a4
.SH NAME
Packit 7b22a4
iptables-restore \(em Restore IP Tables
Packit 7b22a4
.P
Packit 7b22a4
ip6tables-restore \(em Restore IPv6 Tables
Packit 7b22a4
.SH SYNOPSIS
Packit 7b22a4
\fBiptables\-restore\fP [\fB\-chntvV\fP] [\fB\-w\fP \fIsecs\fP]
Packit 7b22a4
[\fB\-W\fP \fIusecs\fP] [\fB\-M\fP \fImodprobe\fP] [\fB\-T\fP \fIname\fP]
Packit 7b22a4
[\fBfile\fP]
Packit 7b22a4
.P
Packit 7b22a4
\fBip6tables\-restore\fP [\fB\-chntvV\fP] [\fB\-w\fP \fIsecs\fP]
Packit 7b22a4
[\fB\-W\fP \fIusecs\fP] [\fB\-M\fP \fImodprobe\fP] [\fB\-T\fP \fIname\fP]
Packit 7b22a4
[\fBfile\fP]
Packit 7b22a4
.SH DESCRIPTION
Packit 7b22a4
.PP
Packit 7b22a4
.B iptables-restore
Packit 7b22a4
and
Packit 7b22a4
.B ip6tables-restore
Packit 7b22a4
are used to restore IP and IPv6 Tables from data specified on STDIN or in
Packit 7b22a4
\fIfile\fP. Use I/O redirection provided by your shell to read from a file or
Packit 7b22a4
specify \fIfile\fP as an argument.
Packit 7b22a4
.TP
Packit 7b22a4
\fB\-c\fR, \fB\-\-counters\fR
Packit 7b22a4
restore the values of all packet and byte counters
Packit 7b22a4
.TP
Packit 7b22a4
\fB\-h\fP, \fB\-\-help\fP
Packit 7b22a4
Print a short option summary.
Packit 7b22a4
.TP
Packit 7b22a4
\fB\-n\fR, \fB\-\-noflush\fR
Packit 7b22a4
don't flush the previous contents of the table. If not specified,
Packit 7b22a4
both commands flush (delete) all previous contents of the respective table.
Packit 7b22a4
.TP
Packit 7b22a4
\fB\-t\fP, \fB\-\-test\fP
Packit 7b22a4
Only parse and construct the ruleset, but do not commit it.
Packit 7b22a4
.TP
Packit 7b22a4
\fB\-v\fP, \fB\-\-verbose\fP
Packit 7b22a4
Print additional debug info during ruleset processing.
Packit 7b22a4
.TP
Packit 7b22a4
\fB\-V\fP, \fB\-\-version\fP
Packit 7b22a4
Print the program version number.
Packit 7b22a4
.TP
Packit 7b22a4
\fB\-w\fP, \fB\-\-wait\fP [\fIseconds\fP]
Packit 7b22a4
Wait for the xtables lock.
Packit 7b22a4
To prevent multiple instances of the program from running concurrently,
Packit 7b22a4
an attempt will be made to obtain an exclusive lock at launch.  By default,
Packit 7b22a4
the program will exit if the lock cannot be obtained.  This option will
Packit 7b22a4
make the program wait (indefinitely or for optional \fIseconds\fP) until
Packit 7b22a4
the exclusive lock can be obtained.
Packit 7b22a4
.TP
Packit 7b22a4
\fB\-W\fP, \fB\-\-wait-interval\fP \fImicroseconds\fP
Packit 7b22a4
Interval to wait per each iteration.
Packit 7b22a4
When running latency sensitive applications, waiting for the xtables lock
Packit 7b22a4
for extended durations may not be acceptable. This option will make each
Packit 7b22a4
iteration take the amount of time specified. The default interval is
Packit 7b22a4
1 second. This option only works with \fB\-w\fP.
Packit 7b22a4
.TP
Packit 7b22a4
\fB\-M\fP, \fB\-\-modprobe\fP \fImodprobe_program\fP
Packit 7b22a4
Specify the path to the modprobe program. By default, iptables-restore will
Packit 7b22a4
inspect /proc/sys/kernel/modprobe to determine the executable's path.
Packit 7b22a4
.TP
Packit 7b22a4
\fB\-T\fP, \fB\-\-table\fP \fIname\fP
Packit 7b22a4
Restore only the named table even if the input stream contains other ones.
Packit 7b22a4
.SH BUGS
Packit 7b22a4
None known as of iptables-1.2.1 release
Packit 7b22a4
.SH AUTHORS
Packit 7b22a4
Harald Welte <laforge@gnumonks.org> wrote iptables-restore based on code
Packit 7b22a4
from Rusty Russell.
Packit 7b22a4
.br
Packit 7b22a4
Andras Kis-Szabo <kisza@sch.bme.hu> contributed ip6tables-restore.
Packit 7b22a4
.SH SEE ALSO
Packit 7b22a4
\fBiptables\-save\fP(8), \fBiptables\fP(8)
Packit 7b22a4
.PP
Packit 7b22a4
The iptables-HOWTO, which details more iptables usage, the NAT-HOWTO,
Packit 7b22a4
which details NAT, and the netfilter-hacking-HOWTO which details the
Packit 7b22a4
internals.