From 69a0b5814a59ec4d921725f6960e75b8a27964bb Mon Sep 17 00:00:00 2001 From: Adze1502 Date: Thu, 14 Aug 2014 13:58:41 +0200 Subject: [PATCH] mwan3: update to version 1.5-3 Better way of fixing the "icmp unreachable exits wrong interface" problem Signed-off-by: Jeroen Louwes --- net/mwan3/Makefile | 2 +- net/mwan3/files/etc/hotplug.d/iface/15-mwan3 | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/net/mwan3/Makefile b/net/mwan3/Makefile index 71b59e62e7..9c3f064c10 100644 --- a/net/mwan3/Makefile +++ b/net/mwan3/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=mwan3 PKG_VERSION:=1.5 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_MAINTAINER:=Jeroen Louwes PKG_LICENSE:=GPLv2 diff --git a/net/mwan3/files/etc/hotplug.d/iface/15-mwan3 b/net/mwan3/files/etc/hotplug.d/iface/15-mwan3 index d425b6c441..ab2cd745ba 100644 --- a/net/mwan3/files/etc/hotplug.d/iface/15-mwan3 +++ b/net/mwan3/files/etc/hotplug.d/iface/15-mwan3 @@ -27,11 +27,11 @@ mwan3_set_general_iptables() $IPT -A mwan3_hook -m mark --mark 0x0/0xff00 -j mwan3_connected $IPT -A mwan3_hook -m mark --mark 0x0/0xff00 -j mwan3_rules $IPT -A mwan3_hook -j CONNMARK --save-mark --nfmask 0xff00 --ctmask 0xff00 + $IPT -A mwan3_hook -m mark ! --mark 0xff00/0xff00 -j mwan3_connected fi if ! $IPT -S mwan3_output_hook &> /dev/null; then $IPT -N mwan3_output_hook - $IPT -A mwan3_output_hook -p icmp -m icmp --icmp-type 3 -j MARK --set-xmark 0xff00/0xff00 fi if ! $IPT -S PREROUTING | grep mwan3_hook &> /dev/null; then @@ -57,11 +57,11 @@ mwan3_set_connected_iptables() $IPT -F mwan3_connected for connected_networks in $($IP route | awk '{print $1}' | egrep '[0-9]{1,3}(\.[0-9]{1,3}){3}'); do - $IPT -A mwan3_connected -d $connected_networks -m mark --mark 0x0/0xff00 -j MARK --set-xmark 0xff00/0xff00 + $IPT -A mwan3_connected -d $connected_networks -j MARK --set-xmark 0xff00/0xff00 done - $IPT -I mwan3_connected -d 224.0.0.0/3 -m mark --mark 0x0/0xff00 -j MARK --set-xmark 0xff00/0xff00 - $IPT -I mwan3_connected -d 127.0.0.0/8 -m mark --mark 0x0/0xff00 -j MARK --set-xmark 0xff00/0xff00 + $IPT -I mwan3_connected -d 224.0.0.0/3 -j MARK --set-xmark 0xff00/0xff00 + $IPT -I mwan3_connected -d 127.0.0.0/8 -j MARK --set-xmark 0xff00/0xff00 fi } -- 2.30.2