net/mwan3: fix ping issue if last interface recovers from failure
authorFlorian Eckert <fe@dev.tdt.de>
Mon, 31 Jul 2017 10:04:18 +0000 (12:04 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Thu, 17 Aug 2017 09:51:15 +0000 (11:51 +0200)
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 <colby.whitney@luxul.com>
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit 6d99b602fd3425df7b9a3f8d583a2092bb5e1b94)

net/mwan3/files/etc/hotplug.d/iface/15-mwan3
net/mwan3/files/usr/sbin/mwan3

index 6be154ca94e366787510c8d9c9ea408ba74aa8f8..0e4c8ee388f1824cb9e76e3c608544f35e569f73 100644 (file)
@@ -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
index 405cd43f3fdf5c019c802c31691a1dfac5474a62..b13067a04dda968b959eb6214e38268d7eaabdc2 100755 (executable)
@@ -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()