From 408b2b3eddbc514226f372cc3c30b21e68081cbd Mon Sep 17 00:00:00 2001 From: leon Date: Sun, 25 Sep 2022 22:44:07 +0100 Subject: [PATCH 1/2] update port --- hosts/leoncloud/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hosts/leoncloud/default.nix b/hosts/leoncloud/default.nix index eebd171b..f6faa710 100644 --- a/hosts/leoncloud/default.nix +++ b/hosts/leoncloud/default.nix @@ -51,7 +51,7 @@ networking.firewall = { allowedTCPPorts = [ 80 443 22 ]; - allowedUDPPorts = [ 18800 ]; + allowedUDPPorts = [ 18900 ]; }; #------------------DOCKER---------------------------- @@ -65,6 +65,7 @@ networking.wireguard.interfaces = { vpn = { ips = [ "10.10.11.4/24" ]; + privateKeyFile = "/etc/nixos/wireguard-keys/private-key"; peers = [ { -- 2.42.0 From 6c6859d414959d20b7b996db9066539ca9939f1d Mon Sep 17 00:00:00 2001 From: leon Date: Mon, 26 Sep 2022 00:34:52 +0100 Subject: [PATCH 2/2] add new ports --- hosts/leoncloud/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hosts/leoncloud/default.nix b/hosts/leoncloud/default.nix index f6faa710..f9920e4f 100644 --- a/hosts/leoncloud/default.nix +++ b/hosts/leoncloud/default.nix @@ -39,7 +39,7 @@ wget vim python3Full python310Packages.pip nmap htop wireguard-tools docker-compose ]; - users.users.leoncloud = { + users.users.leon-docker = { isNormalUser = true; extraGroups = [ "wheel" "docker" ]; createHome = true; @@ -50,7 +50,7 @@ }; networking.firewall = { - allowedTCPPorts = [ 80 443 22 ]; + allowedTCPPorts = [ 80 443 22 53 14000 14500 15000 ]; allowedUDPPorts = [ 18900 ]; }; #------------------DOCKER---------------------------- -- 2.42.0