From dd7a4d6dfe4e43d937532b8967880d99a0badb09 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Wed, 26 Mar 2025 19:20:34 -0700 Subject: [PATCH] feat(firewall): add terraria port rules --- modules/linux/networking/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/linux/networking/default.nix b/modules/linux/networking/default.nix index 40a00ef..0bc73f3 100755 --- a/modules/linux/networking/default.nix +++ b/modules/linux/networking/default.nix @@ -14,6 +14,9 @@ let ++ (lib.optionals cfg.firewallPresets.vite [ 5173 # vite test server 4173 # vite test server + ]) + ++ (lib.optionals cfg.firewallPresets.terraria [ + 7777 ]); universalAllowedRanges = [ ]; in @@ -29,6 +32,7 @@ in firewallPresets = { grimDawn = lib.mkEnableOption "firewall ports for Grim Dawn"; vite = lib.mkEnableOption "firewall ports for Vite"; + terraria = lib.mkEnableOption "firewall ports for Terraria"; }; cloudflareNameservers.enable = lib.mkEnableOption "Cloudflare DNS servers"; backend = lib.mkOption {