From 923d8a8697da173dcb71b244800ff444ecfd43ea Mon Sep 17 00:00:00 2001 From: Jonas Gaffke Date: Thu, 29 Aug 2024 07:59:46 +0200 Subject: [PATCH] minecraft: allow monitoring ip --- modules/minecraft/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/minecraft/default.nix b/modules/minecraft/default.nix index 2c9ec28..4f7e261 100644 --- a/modules/minecraft/default.nix +++ b/modules/minecraft/default.nix @@ -22,12 +22,13 @@ services.nginx.virtualHosts."map.mc.ifsr.de".extraConfig = '' allow 141.30.0.0/16; allow 141.76.0.0/16; + allow 217.160.244.15/32; # jonas uptime kuma deny all; ''; networking.firewall = { extraInputRules = '' - ip saddr { 141.30.0.0/16, 141.76.0.0/16} tcp dport 25565 accept comment "Allow minecraft access from office nets and podman" + ip saddr { 141.30.0.0/16, 141.76.0.0/16, 217.160.244.15/32 } tcp dport 25565 accept comment "Allow minecraft access from TU network and jonas monitoring" ''; }; users.users.minecraft = {