Fix Satisfactory server, ports issue
This commit is contained in:
parent
111d630d18
commit
119b106b9b
|
@ -4,6 +4,6 @@
|
|||
services.satisfactory-server = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
launchOptions = "-multihome=0.0.0.0";
|
||||
# launchOptions = "-multihome=0.0.0.0";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue