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 = {
enable = 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 = { };
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;
};
};
}