feat: allow more ports in firewall for grim dawn

This commit is contained in:
Youwen Wu 2024-09-07 02:40:34 -07:00
parent 1b5dadfee5
commit d69e5e7cab
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -2,25 +2,32 @@ let
universalAllowedPorts = [
27016 # grim dawn
42805 # grim dawn
42852 # grim dawn
42872 # grim dawn
27015 # grim dawn
27036 # grim dawn
5173 # vite test server
4173 # vite test server
];
universalAllowedRanges = [
{
from = 42852;
to = 42872;
}
];
universalAllowedRanges = [ ];
in
{
services.openssh.enable = true;
networking.firewall = {
enable = true;
allowedTCPPorts = universalAllowedPorts;
allowedUDPPorts = universalAllowedPorts;
allowedUDPPortRanges = universalAllowedRanges;
allowedUDPPortRanges = universalAllowedRanges ++ [
{
from = 27031;
to = 27036;
}
];
allowedTCPPortRanges = universalAllowedRanges;
};
networking.firewall.enable = true;
networking.nameservers = [
"1.1.1.1"
"1.0.0.1"