From e1f254071884ae1fb02f15b2b6a6c98435c94ec0 Mon Sep 17 00:00:00 2001 From: Jermeiah S Date: Thu, 19 Jun 2025 19:05:35 -0400 Subject: [PATCH] enabled firewall --- configurations/nixos/observer-tofu/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/configurations/nixos/observer-tofu/default.nix b/configurations/nixos/observer-tofu/default.nix index 39811a0..02401c2 100644 --- a/configurations/nixos/observer-tofu/default.nix +++ b/configurations/nixos/observer-tofu/default.nix @@ -1,4 +1,5 @@ { + lib, flake, modulesPath, # config, @@ -23,13 +24,21 @@ in enable = true; settings = { DATA_DIR = "/var/lib/uptime-kuma/"; - UPTIME_KUMA_HOST = "127.0.0.1"; + UPTIME_KUMA_HOST = "0.0.0.0"; PORT = "3001"; }; }; }; networking = { hostName = "observer-tofu"; + firewall = { + # enable = lib.mkForce false; + interfaces = { + "eth0@if77" = { + allowedTCPPorts = [ 3001 ]; + }; + }; + }; }; environment.systemPackages = [ ];