| 1 |
.TH IPTABLES-SAVE 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-save \(em dump iptables rules |
| 23 |
.P |
| 24 |
ip6tables-save \(em dump iptables rules |
| 25 |
.SH SYNOPSIS |
| 26 |
\fBiptables\-save\fP [\fB\-M\fP \fImodprobe\fP] [\fB\-c\fP] |
| 27 |
[\fB\-t\fP \fItable\fP] [\fB\-f\fP \fIfilename\fP] |
| 28 |
.P |
| 29 |
\fBip6tables\-save\fP [\fB\-M\fP \fImodprobe\fP] [\fB\-c\fP] |
| 30 |
[\fB\-t\fP \fItable\fP] [\fB\-f\fP \fIfilename\fP] |
| 31 |
.SH DESCRIPTION |
| 32 |
.PP |
| 33 |
.B iptables-save |
| 34 |
and |
| 35 |
.B ip6tables-save |
| 36 |
are used to dump the contents of IP or IPv6 Table in easily parseable format |
| 37 |
either to STDOUT or to a specified file. |
| 38 |
.TP |
| 39 |
\fB\-M\fR, \fB\-\-modprobe\fR \fImodprobe\fP |
| 40 |
Specify the path to the modprobe(8) program. By default, |
| 41 |
iptables-save will inspect \fI/proc/sys/kernel/modprobe\fP to determine |
| 42 |
the executable's path. |
| 43 |
.TP |
| 44 |
\fB\-f\fR, \fB\-\-file\fR \fIfilename\fP |
| 45 |
Specify a filename to log the output to. If not specified, iptables-save |
| 46 |
will log to STDOUT. |
| 47 |
.TP |
| 48 |
\fB\-c\fR, \fB\-\-counters\fR |
| 49 |
Include the current values of all packet and byte counters in the output. |
| 50 |
.TP |
| 51 |
\fB\-t\fR, \fB\-\-table\fR \fItablename\fP |
| 52 |
Restrict output to only one table. If the kernel is configured with automatic |
| 53 |
module loading, an attempt will be made to load the appropriate module for |
| 54 |
that table if it is not already there. |
| 55 |
.br |
| 56 |
If not specified, output includes all available tables. No module loading takes |
| 57 |
place, so in order to include a specific table in the output, the respective |
| 58 |
module (something like \fBiptable_mangle\fP or \fBip6table_raw\fP) must be |
| 59 |
loaded first. |
| 60 |
.SH BUGS |
| 61 |
None known as of iptables-1.2.1 release |
| 62 |
.SH AUTHORS |
| 63 |
Harald Welte <[email protected]> |
| 64 |
.br |
| 65 |
Rusty Russell <[email protected]> |
| 66 |
.br |
| 67 |
Andras Kis-Szabo <[email protected]> contributed ip6tables-save. |
| 68 |
.SH SEE ALSO |
| 69 |
\fBiptables\-apply\fP(8), \fBiptables\-restore\fP(8), \fBiptables\fP(8) |
| 70 |
.PP |
| 71 |
The iptables-HOWTO, which details more iptables usage, the NAT-HOWTO, |
| 72 |
which details NAT, and the netfilter-hacking-HOWTO which details the |
| 73 |
internals. |