1IPTABLES-APPLY(8) iptables 1.8.5 IPTABLES-APPLY(8)
2
3
4
6 iptables-apply - a safer way to update iptables remotely
7
9 iptables-apply [-hV] [-t timeout] [-w savefile] {[rulesfile]|-c
10 [runcmd]}
11
13 iptables-apply will try to apply a new rulesfile (as output by
14 iptables-save, read by iptables-restore) or run a command to configure
15 iptables and then prompt the user whether the changes are okay. If the
16 new iptables rules cut the existing connection, the user will not be
17 able to answer affirmatively. In this case, the script rolls back to
18 the previous working iptables rules after the timeout expires.
19
20 Successfully applied rules can also be written to savefile and later
21 used to roll back to this state. This can be used to implement a store
22 last good configuration mechanism when experimenting with an iptables
23 setup script: iptables-apply -w /etc/network/iptables.up.rules -c
24 /etc/network/iptables.up.run
25
26 When called as ip6tables-apply, the script will use
27 ip6tables-save/-restore and IPv6 default values instead. Default value
28 for rulesfile is '/etc/network/iptables.up.rules'.
29
31 -t seconds, --timeout seconds
32 Sets the timeout in seconds after which the script will roll
33 back to the previous ruleset (default: 10).
34
35 -w savefile, --write savefile
36 Specify the savefile where successfully applied rules will be
37 written to (default if empty string is given:
38 /etc/network/iptables.up.rules).
39
40 -c runcmd, --command runcmd
41 Run command runcmd to configure iptables instead of applying a
42 rulesfile (default: /etc/network/iptables.up.run).
43
44 -h, --help
45 Display usage information.
46
47 -V, --version
48 Display version information.
49
51 iptables-restore(8), iptables-save(8), iptables(8).
52
54 Original iptables-apply - Copyright 2006 Martin F. Krafft
55 <madduck@madduck.net>. Version 1.1 - Copyright 2010 GW
56 <gw.2010@tnode.com or http://gw.tnode.com/>.
57
58 This manual page was written by Martin F. Krafft <madduck@madduck.net>
59 and extended by GW <gw.2010@tnode.com or http://gw.tnode.com/>.
60
61 Permission is granted to copy, distribute and/or modify this document
62 under the terms of the Artistic License 2.0.
63
64
65
66iptables 1.8.5 IPTABLES-APPLY(8)