|
Packit |
7b22a4 |
.TH IPTABLES-SAVE 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-save \(em dump iptables rules
|
|
Packit |
7b22a4 |
.P
|
|
Packit |
7b22a4 |
ip6tables-save \(em dump iptables rules
|
|
Packit |
7b22a4 |
.SH SYNOPSIS
|
|
Packit |
7b22a4 |
\fBiptables\-save\fP [\fB\-M\fP \fImodprobe\fP] [\fB\-c\fP]
|
|
Packit |
7b22a4 |
[\fB\-t\fP \fItable\fP] [\fB\-f\fP \fIfilename\fP]
|
|
Packit |
7b22a4 |
.P
|
|
Packit |
7b22a4 |
\fBip6tables\-save\fP [\fB\-M\fP \fImodprobe\fP] [\fB\-c\fP]
|
|
Packit |
7b22a4 |
[\fB\-t\fP \fItable\fP] [\fB\-f\fP \fIfilename\fP]
|
|
Packit |
7b22a4 |
.SH DESCRIPTION
|
|
Packit |
7b22a4 |
.PP
|
|
Packit |
7b22a4 |
.B iptables-save
|
|
Packit |
7b22a4 |
and
|
|
Packit |
7b22a4 |
.B ip6tables-save
|
|
Packit |
7b22a4 |
are used to dump the contents of IP or IPv6 Table in easily parseable format
|
|
Packit |
7b22a4 |
either to STDOUT or to a specified file.
|
|
Packit |
7b22a4 |
.TP
|
|
Packit |
7b22a4 |
\fB\-M\fR, \fB\-\-modprobe\fR \fImodprobe_program\fP
|
|
Packit |
7b22a4 |
Specify the path to the modprobe program. By default, iptables-save will
|
|
Packit |
7b22a4 |
inspect /proc/sys/kernel/modprobe to determine the executable's path.
|
|
Packit |
7b22a4 |
.TP
|
|
Packit |
7b22a4 |
\fB\-f\fR, \fB\-\-file\fR \fIfilename\fP
|
|
Packit |
7b22a4 |
Specify a filename to log the output to. If not specified, iptables-save
|
|
Packit |
7b22a4 |
will log to STDOUT.
|
|
Packit |
7b22a4 |
.TP
|
|
Packit |
7b22a4 |
\fB\-c\fR, \fB\-\-counters\fR
|
|
Packit |
7b22a4 |
include the current values of all packet and byte counters in the output
|
|
Packit |
7b22a4 |
.TP
|
|
Packit |
7b22a4 |
\fB\-t\fR, \fB\-\-table\fR \fItablename\fP
|
|
Packit |
7b22a4 |
restrict output to only one table. If the kernel is configured with automatic
|
|
Packit |
7b22a4 |
module loading, an attempt will be made to load the appropriate module for
|
|
Packit |
7b22a4 |
that table if it is not already there.
|
|
Packit |
7b22a4 |
.br
|
|
Packit |
7b22a4 |
If not specified, output includes all available tables.
|
|
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>
|
|
Packit |
7b22a4 |
.br
|
|
Packit |
7b22a4 |
Rusty Russell <rusty@rustcorp.com.au>
|
|
Packit |
7b22a4 |
.br
|
|
Packit |
7b22a4 |
Andras Kis-Szabo <kisza@sch.bme.hu> contributed ip6tables-save.
|
|
Packit |
7b22a4 |
.SH SEE ALSO
|
|
Packit |
7b22a4 |
\fBiptables\-restore\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.
|