mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
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 <colby.whitney@luxul.com>
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit 6d99b602fd)
This commit is contained in:
@@ -53,7 +53,6 @@ case "$ACTION" in
|
|||||||
;;
|
;;
|
||||||
ifdown)
|
ifdown)
|
||||||
mwan3_delete_iface_rules $INTERFACE
|
mwan3_delete_iface_rules $INTERFACE
|
||||||
mwan3_delete_iface_iptables $INTERFACE
|
|
||||||
mwan3_delete_iface_route $INTERFACE
|
mwan3_delete_iface_route $INTERFACE
|
||||||
mwan3_delete_iface_ipset_entries $INTERFACE
|
mwan3_delete_iface_ipset_entries $INTERFACE
|
||||||
mwan3_set_policies_iptables
|
mwan3_set_policies_iptables
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ ifdown()
|
|||||||
kill $(cat /var/run/mwan3track-$1.pid)
|
kill $(cat /var/run/mwan3track-$1.pid)
|
||||||
rm /var/run/mwan3track-$1.pid
|
rm /var/run/mwan3track-$1.pid
|
||||||
fi
|
fi
|
||||||
|
mwan3_delete_iface_iptables $1
|
||||||
}
|
}
|
||||||
|
|
||||||
ifup()
|
ifup()
|
||||||
|
|||||||
Reference in New Issue
Block a user