From 6ce94605b55b782b295e2cebde952fe3dbb0cf98 Mon Sep 17 00:00:00 2001 From: coolneng Date: Mon, 6 Jun 2022 19:03:18 +0200 Subject: [PATCH] Change Wireguard port --- modules/networking.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/networking.nix b/modules/networking.nix index e579d3b..bdcb24e 100644 --- a/modules/networking.nix +++ b/modules/networking.nix @@ -1,6 +1,8 @@ { config, pkgs, lib, ... }: -{ +let wireguard_port = 443; + +in { # Assign a static IP networking = { hostName = "zion"; @@ -51,7 +53,7 @@ 8448 # Matrix ]; allowedUDPPorts = [ - 1194 # Wireguard + wireguard_port # Wireguard 53 # DNS ]; extraCommands = '' @@ -70,7 +72,7 @@ networking.wireguard.interfaces = { wg0 = { ips = [ "10.8.0.1/24" ]; - listenPort = 1194; + listenPort = wireguard_port; privateKeyFile = "/home/coolneng/.wg/keys/privatekey"; peers = [ # panacea