networking: open firewall ports for grim dawn

This commit is contained in:
Youwen Wu 2024-08-23 23:47:22 -07:00
parent 4516685bb9
commit dc86e970e7
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -1,6 +1,19 @@
{
let
universalAllowedPorts = [27016 42805];
universalAllowedRanges = [
{
from = 42852;
to = 42872;
}
];
in {
services.openssh.enable = true;
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
networking.firewall = {
allowedTCPPorts = universalAllowedPorts;
allowedUDPPorts = universalAllowedPorts;
allowedUDPPortRanges = universalAllowedRanges;
allowedTCPPortRanges = universalAllowedRanges;
};
networking.firewall.enable = true;
networking.nameservers = ["1.1.1.1" "1.0.0.1"];
}