diff options
author | Aaron Goodman <aaronjg@stanford.edu> | 2020-11-04 22:06:17 -0500 |
---|---|---|
committer | Florian Eckert <fe@dev.tdt.de> | 2020-11-06 10:40:54 +0100 |
commit | bec7a1086f3f94a88875e11e99d80009b58c58f2 (patch) | |
tree | ed7e65736c0d5b4272c3710e12bc8324150f9f24 /net/mwan3 | |
parent | 26fb7129ade594fc4ede869069dec07ee2508149 (diff) |
mwan3: reload unreachable/blackhole rules on hotplug
when the network procd service restarts, it flushes the ip rules. We
need to add these rules back. Since hotplug events are triggered when
the networks come back online, adding this call to the hotplug script
is the most convenient place to refresh the rules.
Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
Diffstat (limited to 'net/mwan3')
-rw-r--r-- | net/mwan3/files/etc/hotplug.d/iface/15-mwan3 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mwan3/files/etc/hotplug.d/iface/15-mwan3 b/net/mwan3/files/etc/hotplug.d/iface/15-mwan3 index 20fee845a..5c60128d4 100644 --- a/net/mwan3/files/etc/hotplug.d/iface/15-mwan3 +++ b/net/mwan3/files/etc/hotplug.d/iface/15-mwan3 @@ -74,6 +74,7 @@ case "$ACTION" in mwan3_set_iface_hotplug_state $INTERFACE "$status" if [ "$MWAN3_STARTUP" != 1 ]; then mwan3_create_iface_route $INTERFACE $DEVICE + mwan3_set_general_rules [ "$status" = "online" ] && mwan3_set_policies_iptables fi [ "$ACTION" = ifup ] && procd_running mwan3 "track_$INTERFACE" && procd_send_signal mwan3 "track_$INTERFACE" USR2 |