From 60bcc208d029bf21f7d9a510edef64d3099e6e26 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Thu, 16 Jun 2022 19:46:07 +0200 Subject: [PATCH] Add route to lan1dmz --- arch-config/scripts/pieces/wireguard-road-routes.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch-config/scripts/pieces/wireguard-road-routes.sh b/arch-config/scripts/pieces/wireguard-road-routes.sh index a1d08ec8..1eda0047 100755 --- a/arch-config/scripts/pieces/wireguard-road-routes.sh +++ b/arch-config/scripts/pieces/wireguard-road-routes.sh @@ -32,6 +32,9 @@ for file in "${conffiles[@]}"; do # hetzner net awk 'NR==5{print "PostUp = ip route add 172.18.50.0/24 dev vladilena-road"}NR==5{print "PreDown = ip route del 172.18.50.0/24"}1' "$file" > "${file}.tmp" mv "${file}.tmp" "$file" + # lan1dmz net + awk 'NR==5{print "PostUp = ip route add 172.16.11.0/24 dev vladilena-road"}NR==5{print "PreDown = ip route del 172.16.11.0/24"}1' "$file" > "${file}.tmp" + mv "${file}.tmp" "$file" # NOTE only one PreDown line is required as we are using a specific table for this # TODO tables do not work as intended #awk 'NR==5{print "PostUp = ip route add 192.168.1.0/24 via 192.168.86.1 metric 10 table 7"}NR==5{print "PreDown = ip route flush table 7"}1' "$file" > "${file}.tmp"