summarylogtreecommitdiffstats
path: root/wireguard_hook
diff options
context:
space:
mode:
Diffstat (limited to 'wireguard_hook')
-rw-r--r--wireguard_hook1
1 files changed, 1 insertions, 0 deletions
diff --git a/wireguard_hook b/wireguard_hook
index d82729134a6f..5d5becf1166a 100644
--- a/wireguard_hook
+++ b/wireguard_hook
@@ -80,6 +80,7 @@ run_hook()
allowed-ips $ALLOWED_IPS
ip addr add $INTERFACE_ADDR dev $INTERFACE
ip link set $INTERFACE up
+ ip route add $ALLOWED_IPS dev $INTERFACE
}
run_cleanuphook() {