OSDN Git Service

iptables: Update original to 1.4.21
[linuxjm/iptables.git] / original / man8 / iptables-restore.8
1 .TH IPTABLES-RESTORE 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-restore \(em Restore IP Tables
23 .P
24 ip6tables-restore \(em Restore IPv6 Tables
25 .SH SYNOPSIS
26 \fBiptables\-restore\fP [\fB\-chntv\fP] [\fB\-M\fP \fImodprobe\fP]
27 .P
28 \fBip6tables\-restore\fP [\fB\-chntv\fP] [\fB\-M\fP \fImodprobe\fP]
29 [\fB\-T\fP \fIname\fP]
30 .SH DESCRIPTION
31 .PP
32 .B iptables-restore
33 and
34 .B ip6tables-restore
35 are used to restore IP and IPv6 Tables from data specified on STDIN. Use
36 I/O redirection provided by your shell to read from a file
37 .TP
38 \fB\-c\fR, \fB\-\-counters\fR
39 restore the values of all packet and byte counters
40 .TP
41 \fB\-h\fP, \fB\-\-help\fP
42 Print a short option summary.
43 .TP
44 \fB\-n\fR, \fB\-\-noflush\fR
45 don't flush the previous contents of the table. If not specified,
46 both commands flush (delete) all previous contents of the respective table.
47 .TP
48 \fB\-t\fP, \fB\-\-test\fP
49 Only parse and construct the ruleset, but do not commit it.
50 .TP
51 \fB\-v\fP, \fB\-\-verbose\fP
52 Print additional debug info during ruleset processing.
53 .TP
54 \fB\-M\fP, \fB\-\-modprobe\fP \fImodprobe_program\fP
55 Specify the path to the modprobe program. By default, iptables-restore will
56 inspect /proc/sys/kernel/modprobe to determine the executable's path.
57 .TP
58 \fB\-T\fP, \fB\-\-table\fP \fIname\fP
59 Restore only the named table even if the input stream contains other ones.
60 .SH BUGS
61 None known as of iptables-1.2.1 release
62 .SH AUTHORS
63 Harald Welte <laforge@gnumonks.org> wrote iptables-restore based on code
64 from Rusty Russell.
65 .br
66 Andras Kis-Szabo <kisza@sch.bme.hu> contributed ip6tables-restore.
67 .SH SEE ALSO
68 \fBiptables\-save\fP(8), \fBiptables\fP(8)
69 .PP
70 The iptables-HOWTO, which details more iptables usage, the NAT-HOWTO,
71 which details NAT, and the netfilter-hacking-HOWTO which details the
72 internals.