From 119b106b9b69a601aba3bbe3f7384645174b4a68 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sat, 14 Sep 2024 19:06:46 +0100 Subject: [PATCH] Fix Satisfactory server, ports issue --- system/services/satisfactory/default.nix | 2 +- system/services/satisfactory/module.nix | 19 ++++++++++++------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/system/services/satisfactory/default.nix b/system/services/satisfactory/default.nix index 188311b6..ecb4cc2f 100644 --- a/system/services/satisfactory/default.nix +++ b/system/services/satisfactory/default.nix @@ -4,6 +4,6 @@ services.satisfactory-server = { enable = true; openFirewall = true; - launchOptions = "-multihome=0.0.0.0"; + # launchOptions = "-multihome=0.0.0.0"; }; } diff --git a/system/services/satisfactory/module.nix b/system/services/satisfactory/module.nix index bf445c8f..59caf8e3 100644 --- a/system/services/satisfactory/module.nix +++ b/system/services/satisfactory/module.nix @@ -76,12 +76,17 @@ in }; users.groups.satisfactory = { }; - networking.firewall = lib.mkIf cfg.openFirewall { - allowedUDPPorts = [ - 15777 - 7777 - 15000 - ]; - }; + networking.firewall = + let + ports = [ + 7777 + 15000 + 15777 + ]; + in + lib.mkIf cfg.openFirewall { + allowedTCPPorts = ports; + allowedUDPPorts = ports; + }; }; }