From 4bdc98598cb827d8374570508ede353c9526ce1c Mon Sep 17 00:00:00 2001 From: clerie Date: Sat, 26 Dec 2020 01:49:13 +0100 Subject: [PATCH] Configure port forwards --- hosts/gatekeeper/configuration.nix | 20 ++++++++++++++++++++ hosts/porter/configuration.nix | 8 ++++++++ 2 files changed, 28 insertions(+) diff --git a/hosts/gatekeeper/configuration.nix b/hosts/gatekeeper/configuration.nix index 980fb1d..1a2118b 100644 --- a/hosts/gatekeeper/configuration.nix +++ b/hosts/gatekeeper/configuration.nix @@ -72,5 +72,25 @@ }; }; + clerie.nginx-port-forward = { + enable = true; + tcpPorts."443" = { + host = "localhost"; + port = 22; + }; + tcpPorts."2022" = { + host = "nonat.net.clerie.de"; + port = 22; + }; + tcpPorts."25567" = { + host = "minecraft-1.net.clerie.de"; + port = 25567; + }; + tcpPorts."25568" = { + host = "minecraft-1.net.clerie.de"; + port = 25568; + }; + }; + system.stateVersion = "21.03"; } diff --git a/hosts/porter/configuration.nix b/hosts/porter/configuration.nix index a454cc8..61b0826 100644 --- a/hosts/porter/configuration.nix +++ b/hosts/porter/configuration.nix @@ -56,6 +56,14 @@ }; }; + clerie.nginx-port-forward = { + enable = true; + tcpPorts."2022" = { + host = "nonat.net.clerie.de"; + port = 22; + }; + }; + networking.firewall.allowedUDPPorts = [ 50138 51337 ]; petabyte.policyrouting = {