1IPTABLES-RESTORE(8) iptables 1.4.21 IPTABLES-RESTORE(8)
2
3
4
6 iptables-restore — Restore IP Tables
7
8 ip6tables-restore — Restore IPv6 Tables
9
11 iptables-restore [-chntvV] [-w secs] +[-W usecs] [-M modprobe]
12
13 ip6tables-restore [-chntvV] [-w secs] +[-W usecs] [-M modprobe] [-T
14 name]
15
17 iptables-restore and ip6tables-restore are used to restore IP and IPv6
18 Tables from data specified on STDIN. Use I/O redirection provided by
19 your shell to read from a file
20
21 -c, --counters
22 restore the values of all packet and byte counters
23
24 -h, --help
25 Print a short option summary.
26
27 -n, --noflush
28 don't flush the previous contents of the table. If not speci‐
29 fied, both commands flush (delete) all previous contents of the
30 respective table.
31
32 -t, --test
33 Only parse and construct the ruleset, but do not commit it.
34
35 -v, --verbose
36 Print additional debug info during ruleset processing.
37
38 -V, --version
39 Print the program version number.
40
41 -w, --wait [seconds]
42 Wait for the xtables lock. To prevent multiple instances of the
43 program from running concurrently, an attempt will be made to
44 obtain an exclusive lock at launch. By default, the program
45 will exit if the lock cannot be obtained. This option will make
46 the program wait (indefinitely or for optional seconds) until
47 the exclusive lock can be obtained.
48
49 -W, --wait-interval microseconds
50 Interval to wait per each iteration. When running latency sen‐
51 sitive applications, waiting for the xtables lock for extended
52 durations may not be acceptable. This option will make each
53 iteration take the amount of time specified. The default inter‐
54 val is 1 second. This option only works with -w.
55
56 -M, --modprobe modprobe_program
57 Specify the path to the modprobe program. By default, iptables-
58 restore will inspect /proc/sys/kernel/modprobe to determine the
59 executable's path.
60
61 -T, --table name
62 Restore only the named table even if the input stream contains
63 other ones.
64
66 None known as of iptables-1.2.1 release
67
69 Harald Welte <laforge@gnumonks.org> wrote iptables-restore based on
70 code from Rusty Russell.
71 Andras Kis-Szabo <kisza@sch.bme.hu> contributed ip6tables-restore.
72
74 iptables-save(8), iptables(8)
75
76 The iptables-HOWTO, which details more iptables usage, the NAT-HOWTO,
77 which details NAT, and the netfilter-hacking-HOWTO which details the
78 internals.
79
80
81
82iptables 1.4.21 IPTABLES-RESTORE(8)