From 282e90014e936ed1db527608e6ac4904a895b1ab 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 (cherry picked from commit 6d99b602fd3425df7b9a3f8d583a2092bb5e1b94) --- 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 6be154ca94..0e4c8ee388 100644 --- a/net/mwan3/files/etc/hotplug.d/iface/15-mwan3 +++ b/net/mwan3/files/etc/hotplug.d/iface/15-mwan3 @@ -53,7 +53,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_set_policies_iptables diff --git a/net/mwan3/files/usr/sbin/mwan3 b/net/mwan3/files/usr/sbin/mwan3 index 405cd43f3f..b13067a04d 100755 --- a/net/mwan3/files/usr/sbin/mwan3 +++ b/net/mwan3/files/usr/sbin/mwan3 @@ -46,6 +46,7 @@ ifdown() kill $(cat /var/run/mwan3track-$1.pid) rm /var/run/mwan3track-$1.pid fi + mwan3_delete_iface_iptables $1 } ifup() -- 2.30.2