man: update the manpage for cluster match
PATCH 1/1 man: update the manpage for cluster match
--h-length,--mangle-mac-s,--mangle-mac-d,--destination-mac are not supported by arptables now,and the chain name is IN/OUT.
--- extensions/libxt_cluster.man | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-)
extensions/libxt_cluster.man +10 -10
@@ -41,19 +41,19 @@ ip maddr add 01:00:5e:00:01:01 dev eth1 .IP ip maddr add 01:00:5e:00:01:02 dev eth2 .IP -arptables \-A OUTPUT \-o eth1 \-\-h\-length 6 -\-j mangle \-\-mangle-mac-s 01:00:5e:00:01:01 +arptables \-A OUT \-o eth1 \-arhln 6 +\-j mangle \-\-mangle-hw-s 01:00:5e:00:01:01 .IP -arptables \-A INPUT \-i eth1 \-\-h-length 6 -\-\-destination-mac 01:00:5e:00:01:01 -\-j mangle \-\-mangle\-mac\-d 00:zz:yy:xx:5a:27 +arptables \-A IN \-i eth1 \-arhln 6 +\-\-target-hw 01:00:5e:00:01:01 +\-j mangle \-\-mangle\-hw\-d 00:zz:yy:xx:5a:27 .IP -arptables \-A OUTPUT \-o eth2 \-\-h\-length 6 -\-j mangle \-\-mangle\-mac\-s 01:00:5e:00:01:02 +arptables \-A OUT \-o eth2 \-arhln 6 +\-j mangle \-\-mangle\-hw\-s 01:00:5e:00:01:02 .IP -arptables \-A INPUT \-i eth2 \-\-h\-length 6 -\-\-destination\-mac 01:00:5e:00:01:02 -\-j mangle \-\-mangle\-mac\-d 00:zz:yy:xx:5a:27 +arptables \-A IN \-i eth2 \-arhln 6 +\-\-target\-hw 01:00:5e:00:01:02 +\-j mangle \-\-mangle\-hw\-d 00:zz:yy:xx:5a:27 .PP In the case of TCP connections, pickup facility has to be disabled to avoid marking TCP ACK packets coming in the reply direction as
Signature · 1 line
1.8.3.1
Pablo Neira Ayuso
maintainerQuoted 2 lines · Gao feng
--h-length,--mangle-mac-s,--mangle-mac-d,--destination-mac are not supported by arptables now,and the chain name is IN/OUT.
I guess you're using jf's arptables version. The syntax is correct for mainstream version.
I think it's worth to add a comment in the manpage, many people may be confused with this and believe that arptables is broken.
Quoted 46 lines
Signed-off-by Gao feng <[email protected]>--- extensions/libxt_cluster.man | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-)extensions/libxt_cluster.man +10
-10@@ -41,19 +41,19 @@ ip maddr add 01:00:5e:00:01:01 dev eth1 .IP ip maddr add 01:00:5e:00:01:02 dev eth2 .IP -arptables \-A OUTPUT \-o eth1 \-\-h\-length 6 -\-j mangle \-\-mangle-mac-s 01:00:5e:00:01:01 +arptables \-A OUT \-o eth1 \-arhln 6 +\-j mangle \-\-mangle-hw-s 01:00:5e:00:01:01 .IP -arptables \-A INPUT \-i eth1 \-\-h-length 6 -\-\-destination-mac 01:00:5e:00:01:01 -\-j mangle \-\-mangle\-mac\-d 00:zz:yy:xx:5a:27 +arptables \-A IN \-i eth1 \-arhln 6 +\-\-target-hw 01:00:5e:00:01:01 +\-j mangle \-\-mangle\-hw\-d 00:zz:yy:xx:5a:27 .IP -arptables \-A OUTPUT \-o eth2 \-\-h\-length 6 -\-j mangle \-\-mangle\-mac\-s 01:00:5e:00:01:02 +arptables \-A OUT \-o eth2 \-arhln 6 +\-j mangle \-\-mangle\-hw\-s 01:00:5e:00:01:02 .IP -arptables \-A INPUT \-i eth2 \-\-h\-length 6 -\-\-destination\-mac 01:00:5e:00:01:02 -\-j mangle \-\-mangle\-mac\-d 00:zz:yy:xx:5a:27 +arptables \-A IN \-i eth2 \-arhln 6 +\-\-target\-hw 01:00:5e:00:01:02 +\-j mangle \-\-mangle\-hw\-d 00:zz:yy:xx:5a:27 .PP In the case of TCP connections, pickup facility has to be disabled to avoid marking TCP ACK packets coming in the reply direction asSignature · 6 lines
1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 7 lines · Pablo Neira Ayuso
Quoted 2 lines · Gao feng
--h-length,--mangle-mac-s,--mangle-mac-d,--destination-mac are not supported by arptables now,and the chain name is IN/OUT.
I guess you're using jf's arptables version. The syntax is correct for mainstream version.
Yes, it comes from arptables_jf-0.0.8-32.fc19.x86_64.
Quoted 3 lines
I think it's worth to add a comment in the manpage, many people may be confused with this and believe that arptables is broken.
You can regard this patch as a notification.
I'm glad to see your patch. :)