From 7b9bfc900c18c16e0abbb67edd956357ea172237 Mon Sep 17 00:00:00 2001 From: natto1784 Date: Wed, 23 Nov 2022 00:11:53 +0530 Subject: [PATCH] hosts/remilia: regular networking update --- hosts/remilia/networking.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/hosts/remilia/networking.nix b/hosts/remilia/networking.nix index 34c64e1..99c7de7 100755 --- a/hosts/remilia/networking.nix +++ b/hosts/remilia/networking.nix @@ -2,13 +2,12 @@ { networking = { useDHCP = false; - hostName = "Remilia"; + hostName = "remilia"; firewall = { interfaces = { ens3 = { allowedTCPPorts = [ - 22 80 81 443 @@ -19,10 +18,10 @@ 25 22001 22002 - 6600 9898 8999 - ]; + 99 + ] ++ (map (x: x.sourcePort) config.networking.nat.forwardPorts); allowedUDPPorts = [ 17840 ]; }; }; @@ -47,9 +46,13 @@ internalInterfaces = [ "wg0" ]; forwardPorts = [ { - destination = "10.55.0.2:222"; + destination = "10.55.0.2:2002"; sourcePort = 22; } + { + destination = "10.55.0.2:22"; + sourcePort = 23; + } { destination = "10.55.0.3:6600"; sourcePort = 6600;