From 5c173d07f50ea2bdf13d87dd5a5ed4dce6702ac6 Mon Sep 17 00:00:00 2001 From: Bengt <32734566+bengtfredh@users.noreply.github.com> Date: Sun, 1 May 2022 12:51:26 +0200 Subject: Add ip route for allowed ips --- action.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/action.yml b/action.yml index f8b2982..b51a2ee 100644 --- a/action.yml +++ b/action.yml @@ -146,6 +146,9 @@ runs: fi sudo ip link set "$ifname" up + + # Add routes for allowed_ips + for i in ${allowed_ips//,/ }; do sudo ip route replace "$i" dev "$ifname"; done } # systemd-networkd greets me with 'Temporary failure in name -- cgit v1.2.3