From 2cce17991a796589af76b94fd4cec77b87d57907 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Thu, 16 Jun 2022 19:46:03 +0200 Subject: [PATCH] Remove keepalive --- arch-config/scripts/pieces/wireguard-lan-routes.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch-config/scripts/pieces/wireguard-lan-routes.sh b/arch-config/scripts/pieces/wireguard-lan-routes.sh index 9fab11fb..5b1dd64f 100755 --- a/arch-config/scripts/pieces/wireguard-lan-routes.sh +++ b/arch-config/scripts/pieces/wireguard-lan-routes.sh @@ -29,10 +29,6 @@ for file in "${conffiles[@]}"; do echo "Skipping $file" else echo "Patching $file" - # persistent keepalive - awk 'NR==9{print "PersistentKeepalive = 20"}1' "$file" > "${file}.tmp" - mv "${file}.tmp" "$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.7.1 metric 10"}NR==5{print "PreDown = ip route del 192.168.1.0/24"}1' "$file" > "${file}.tmp" mv "${file}.tmp" "$file"