net/mwan3: fix NDP on ipv6 for ra services
authorFlorian Eckert <fe@dev.tdt.de>
Wed, 23 May 2018 08:51:52 +0000 (10:51 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Wed, 6 Jun 2018 08:41:38 +0000 (10:41 +0200)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
net/mwan3/Makefile
net/mwan3/files/lib/mwan3/mwan3.sh

index 83e514be72045b6ac2011111121b725dc180db92..adb54b24ae08cc29ca7b73a52022eac00d057bcc 100644 (file)
@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=mwan3
-PKG_VERSION:=2.6.17
+PKG_VERSION:=2.6.18
 PKG_RELEASE:=1
 PKG_MAINTAINER:=Florian Eckert <fe@dev.tdt.de>
 PKG_LICENSE:=GPLv2
index 74d5592eb7da22eec0059403ad85074519793d4a..2c5bbf3c126e9a10e5f7122dbc41916b46c30245 100644 (file)
@@ -198,6 +198,14 @@ mwan3_set_general_iptables()
 
                if ! $IPT -S mwan3_hook &> /dev/null; then
                        $IPT -N mwan3_hook
+                       # do not mangle ipv6 ra service
+                       if [ "$IPT" = "$IPT6" ]; then
+                               $IPT6 -A mwan3_hook -p ipv6-icmp -m icmp6 --icmpv6-type 133 -j RETURN
+                               $IPT6 -A mwan3_hook -p ipv6-icmp -m icmp6 --icmpv6-type 134 -j RETURN
+                               $IPT6 -A mwan3_hook -p ipv6-icmp -m icmp6 --icmpv6-type 135 -j RETURN
+                               $IPT6 -A mwan3_hook -p ipv6-icmp -m icmp6 --icmpv6-type 136 -j RETURN
+                               $IPT6 -A mwan3_hook -p ipv6-icmp -m icmp6 --icmpv6-type 137 -j RETURN
+                       fi
                        $IPT -A mwan3_hook -j CONNMARK --restore-mark --nfmask $MMX_MASK --ctmask $MMX_MASK
                        $IPT -A mwan3_hook -m mark --mark 0x0/$MMX_MASK -j mwan3_ifaces_in
                        $IPT -A mwan3_hook -m mark --mark 0x0/$MMX_MASK -j mwan3_connected