From e66c70855385d450531daa61588877d2561490a0 Mon Sep 17 00:00:00 2001 From: Frantisek Bohacek Date: Fri, 2 Aug 2024 23:03:38 +0200 Subject: [PATCH] feat: do not use routes for wireguard unnecessarily --- nixos/modules/profiles/vpn.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/profiles/vpn.nix b/nixos/modules/profiles/vpn.nix index d830167..e7714d1 100644 --- a/nixos/modules/profiles/vpn.nix +++ b/nixos/modules/profiles/vpn.nix @@ -42,7 +42,8 @@ networking.wireguard.interfaces = { wg0 = { - ips = [ "${config.profiles.vpn.lanIp}/32" ]; + ips = [ "${config.profiles.vpn.lanIp}/24" ]; + allowedIPsAsRoutes = false; listenPort = 51820; generatePrivateKeyFile = true; -- 2.48.1