]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
libxt_HMARK: fix ct case example
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 16 Jul 2012 12:04:10 +0000 (14:04 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 16 Jul 2012 12:04:10 +0000 (14:04 +0200)
... -j HMARK --hmark-tuple ct,src,dst --hmark-offset 10000 ...

Note `ct' requires also the tuples.

Reported-by: Hans Schillstrom <hans@schillstrom.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
extensions/libxt_HMARK.man

index 2b004b5a2b2a17c2976fdaa67a24e1e876adb341..0b4188422073d7b93d07e9996eb2ea279684e94b 100644 (file)
@@ -53,8 +53,8 @@ A 32 bit random custom value to feed hash calculation.
 \fIExamples:\fP
 .PP
 iptables \-t mangle \-A PREROUTING \-m state \-\-state NEW
- \-j HMARK \-\-hmark-tuple ct \-\-hmark-offset 10000 \-\-hmark\-mod 10
-\-\-hmark\-rnd 0xfeedcafe
+ \-j HMARK \-\-hmark-tuple ct,src,dst,proto \-\-hmark-offset 10000
+\-\-hmark\-mod 10 \-\-hmark\-rnd 0xfeedcafe
 .PP
 iptables \-t mangle \-A PREROUTING -j HMARK \-\-hmark\-offset 10000
 \-\-hmark-tuple src,dst,proto \-\-hmark-mod 10 \-\-hmark\-rnd 0xdeafbeef