Fix Satisfactory server, ports issue

This commit is contained in:
Evie Litherland-Smith 2024-09-14 19:06:46 +01:00
parent 111d630d18
commit 119b106b9b
2 changed files with 13 additions and 8 deletions

View file

@ -4,6 +4,6 @@
services.satisfactory-server = { services.satisfactory-server = {
enable = true; enable = true;
openFirewall = true; openFirewall = true;
launchOptions = "-multihome=0.0.0.0"; # launchOptions = "-multihome=0.0.0.0";
}; };
} }

View file

@ -76,12 +76,17 @@ in
}; };
users.groups.satisfactory = { }; users.groups.satisfactory = { };
networking.firewall = lib.mkIf cfg.openFirewall { networking.firewall =
allowedUDPPorts = [ let
15777 ports = [
7777 7777
15000 15000
]; 15777
}; ];
in
lib.mkIf cfg.openFirewall {
allowedTCPPorts = ports;
allowedUDPPorts = ports;
};
}; };
} }