Fix Satisfactory server, ports issue
This commit is contained in:
parent
111d630d18
commit
119b106b9b
|
@ -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";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue