OSDN Git Service

iptables: Update original to 1.4.21
[linuxjm/iptables.git] / original / man8 / iptables-save.8
1 .TH IPTABLES-SAVE 8 "" "iptables 1.4.21" "iptables 1.4.21"
2 .\"
3 .\" Man page written by Harald Welte <laforge@gnumonks.org>
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 to stdout
23 .P
24 ip6tables-save \(em dump iptables rules to stdout
25 .SH SYNOPSIS
26 \fBiptables\-save\fP [\fB\-M\fP \fImodprobe\fP] [\fB\-c\fP]
27 [\fB\-t\fP \fItable\fP]
28 .P
29 \fBip6tables\-save\fP [\fB\-M\fP \fImodprobe\fP] [\fB\-c\fP]
30 [\fB\-t\fP \fItable\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 to STDOUT. Use I/O-redirection provided by your shell to write to a file.
38 .TP
39 \fB\-M\fP \fImodprobe_program\fP
40 Specify the path to the modprobe program. By default, iptables-save will
41 inspect /proc/sys/kernel/modprobe to determine the executable's path.
42 .TP
43 \fB\-c\fR, \fB\-\-counters\fR
44 include the current values of all packet and byte counters in the output
45 .TP
46 \fB\-t\fR, \fB\-\-table\fR \fItablename\fP
47 restrict output to only one table. If not specified, output includes all
48 available tables.
49 .SH BUGS
50 None known as of iptables-1.2.1 release
51 .SH AUTHORS
52 Harald Welte <laforge@gnumonks.org>
53 .br
54 Rusty Russell <rusty@rustcorp.com.au>
55 .br
56 Andras Kis-Szabo <kisza@sch.bme.hu> contributed ip6tables-save.
57 .SH SEE ALSO
58 \fBiptables\-restore\fP(8), \fBiptables\fP(8)
59 .PP
60 The iptables-HOWTO, which details more iptables usage, the NAT-HOWTO,
61 which details NAT, and the netfilter-hacking-HOWTO which details the
62 internals.