From 4527a038fd3d2f250dcae38ef88d82cc8ac735ea Mon Sep 17 00:00:00 2001 From: leon Date: Sun, 25 Sep 2022 17:11:45 +0100 Subject: [PATCH] fix-wireguard --- hosts/leoncloud/default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/hosts/leoncloud/default.nix b/hosts/leoncloud/default.nix index 9dc4906a..ccf850fc 100644 --- a/hosts/leoncloud/default.nix +++ b/hosts/leoncloud/default.nix @@ -59,7 +59,7 @@ in networking.firewall = { allowedTCPPorts = [ 80 443 22 ]; - allowedUDPPorts = [ 51820 ]; + allowedUDPPorts = [ 18800 ]; }; #------------------DOCKER---------------------------- @@ -73,14 +73,13 @@ in networking.wireguard.interfaces = { wg0 = { ips = [ "10.10.11.4/24" ]; - listenPort = 51820; privateKeyFile = "/etc/nixos/wireguard-keys/private-key"; peers = [ { publicKey = "w3qegSSuqFTFrGk4XJaWBSwGDOiqbnnAIR9MzwjYVA8="; - allowedIPs = [ "10.10.11.0" ]; - endpoint = "81.201.149.152:18800"; + allowedIPs = [ "10.10.11.0/24" ]; + endpoint = "45.158.40.162:18800"; persistentKeepalive = 25; } ];