liminalOS/modules/linux/networking/default.nix

36 lines
674 B
Nix
Raw Normal View History

let
2024-08-28 02:19:49 -07:00
universalAllowedPorts = [
27016 # grim dawn
42805 # grim dawn
42852 # grim dawn
42872 # grim dawn
27015 # grim dawn
27036 # grim dawn
2024-08-28 02:19:49 -07:00
5173 # vite test server
4173 # vite test server
];
universalAllowedRanges = [ ];
2024-09-02 18:16:22 -07:00
in
{
services.openssh.enable = true;
networking.firewall = {
enable = true;
allowedTCPPorts = universalAllowedPorts;
allowedUDPPorts = universalAllowedPorts;
allowedUDPPortRanges = universalAllowedRanges ++ [
{
from = 27031;
to = 27036;
}
];
allowedTCPPortRanges = universalAllowedRanges;
};
2024-09-02 18:16:22 -07:00
networking.nameservers = [
"1.1.1.1"
"1.0.0.1"
];
}