From c18989ece3ae1c362a6572da6d50978af6a46cc8 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Fri, 10 Jun 2022 20:35:29 +0200 Subject: [PATCH] Update ips --- arch-config/scripts/pieces/wireguard-lan-routes.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch-config/scripts/pieces/wireguard-lan-routes.sh b/arch-config/scripts/pieces/wireguard-lan-routes.sh index d8f32f50..20767e56 100755 --- a/arch-config/scripts/pieces/wireguard-lan-routes.sh +++ b/arch-config/scripts/pieces/wireguard-lan-routes.sh @@ -30,10 +30,10 @@ for file in "${conffiles[@]}"; do else echo "Patching $file" # NOTE route while being connected into my lan - awk 'NR==5{print "PostUp = ip route add 192.168.1.0/24 via 172.16.52.1 metric 10"}NR==5{print "PreDown = ip route del 192.168.1.0/24"}1' "$file" > "${file}.tmp" + awk 'NR==5{print "PostUp = ip route add 192.168.1.0/24 via 172.16.7.1 metric 10"}NR==5{print "PreDown = ip route del 192.168.1.0/24"}1' "$file" > "${file}.tmp" mv "${file}.tmp" "$file" # hetzner net - awk 'NR==5{print "PostUp = ip route add 172.18.50.0/24 via 172.16.52.1 metric 10"}NR==5{print "PreDown = ip route del 172.18.50.0/24"}1' "$file" > "${file}.tmp" + awk 'NR==5{print "PostUp = ip route add 172.18.50.0/24 via 172.16.7.1 metric 10"}NR==5{print "PreDown = ip route del 172.18.50.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