liminalOS/modules/linux/networking/default.nix

29 lines
584 B
Nix
Raw Normal View History

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