path: root/iptables/
diff options
authorJan Engelhardt <>2012-12-25 13:11:28 +0000
committerPablo Neira Ayuso <>2013-01-07 02:26:16 +0100
commit983196ceb4d3bb7b6d3cf6da18bb6d5a5eafb347 (patch)
treebdd5e03acf485af9e0e052848f7679c268d27f82 /iptables/
parentdb1414ece88a798ac3f8878875ec3393a917871f (diff)
doc: document the -4 and -6 options
Signed-off-by: Jan Engelhardt <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'iptables/')
1 files changed, 9 insertions, 0 deletions
diff --git a/iptables/ b/iptables/
index 8d657647..013ac77a 100644
--- a/iptables/
+++ b/iptables/
@@ -243,6 +243,15 @@ Give a (currently very brief) description of the command syntax.
The following parameters make up a rule specification (as used in the
add, delete, insert, replace and append commands).
+\fB\-4\fP, \fB\-\-ipv4\fP
+This option has no effect in iptables and iptables-restore.
+\fB\-6\fP, \fB\-\-ipv6\fP
+If a rule using the \fB\-6\fP option is inserted with (and only with)
+iptables-restore, it will be silently ignored. Any other uses will throw an
+error. This option allows to put both IPv4 and IPv6 rules in a single rule file
+for use with both iptables-restore and ip6tables-restore.
[\fB!\fP] \fB\-p\fP, \fB\-\-protocol\fP \fIprotocol\fP
The protocol of the rule or of the packet to check.
The specified protocol can be one of \fBtcp\fP, \fBudp\fP, \fBudplite\fP,