From 6d99b602fd3425df7b9a3f8d583a2092bb5e1b94 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Mon, 31 Jul 2017 12:04:18 +0200 Subject: [PATCH] net/mwan3: fix ping issue if last interface recovers from failure Even though error was fixed the interface checks still fails, if last_resort was set to blackhole or unreachable. To fix this issue do not remove failure interface from iptables change on down event. Reported-by: Colby Whitney Signed-off-by: Florian Eckert --- net/mwan3/files/etc/hotplug.d/iface/15-mwan3 | 1 - net/mwan3/files/usr/sbin/mwan3 | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mwan3/files/etc/hotplug.d/iface/15-mwan3 b/net/mwan3/files/etc/hotplug.d/iface/15-mwan3 index ec0b27289d..b09d80c212 100644 --- a/net/mwan3/files/etc/hotplug.d/iface/15-mwan3 +++ b/net/mwan3/files/etc/hotplug.d/iface/15-mwan3 @@ -59,7 +59,6 @@ case "$ACTION" in ;; ifdown) mwan3_delete_iface_rules $INTERFACE - mwan3_delete_iface_iptables $INTERFACE mwan3_delete_iface_route $INTERFACE mwan3_delete_iface_ipset_entries $INTERFACE mwan3_track_signal $INTERFACE $DEVICE diff --git a/net/mwan3/files/usr/sbin/mwan3 b/net/mwan3/files/usr/sbin/mwan3 index 41d78a3f2d..1168ba37c0 100755 --- a/net/mwan3/files/usr/sbin/mwan3 +++ b/net/mwan3/files/usr/sbin/mwan3 @@ -37,6 +37,7 @@ ifdown() ACTION=ifdown INTERFACE=$1 /sbin/hotplug-call iface kill $(pgrep -f "mwan3track $1 $2") &> /dev/null + mwan3_delete_iface_iptables $1 mwan3_track_clean $1 } -- 2.30.2