From c188a30dc26d525fc96a94c99d330757fbacbb45 Mon Sep 17 00:00:00 2001 From: Jimbo Date: Sun, 20 Oct 2024 15:39:00 -0400 Subject: [PATCH] Small wireguard changes --- modules/system/devices/networking/wireguard/pc/default.nix | 4 ++++ .../system/devices/networking/wireguard/server/default.nix | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/system/devices/networking/wireguard/pc/default.nix b/modules/system/devices/networking/wireguard/pc/default.nix index 45d9308..a792486 100644 --- a/modules/system/devices/networking/wireguard/pc/default.nix +++ b/modules/system/devices/networking/wireguard/pc/default.nix @@ -1,5 +1,9 @@ { config, ... }: { + networking.firewall = { + allowedUDPPorts = [ 51820 ]; + }; + networking.wireguard.interfaces = { "${config.ips.wgInt}" = { # Define IP of client in per device config diff --git a/modules/system/devices/networking/wireguard/server/default.nix b/modules/system/devices/networking/wireguard/server/default.nix index e8d8a43..89ac746 100644 --- a/modules/system/devices/networking/wireguard/server/default.nix +++ b/modules/system/devices/networking/wireguard/server/default.nix @@ -21,10 +21,6 @@ publicKey = config.secrets.wgPixel9Pub; allowedIPs = [ "${config.ips.wgSpan}.2/32" ]; } - { # Oracle VM - publicKey = config.secrets.wgOraclePub; - allowedIPs = [ "${config.ips.wgSpan}.3/32" ]; - } { # General Nix publicKey = config.secrets.wgClientPub; allowedIPs = [ "${config.ips.wgSpan}.16/28" ];