liminalOS/modules/linux/networking/default.nix

20 lines
480 B
Nix
Raw Normal View History

let
universalAllowedPorts = [27016 42805];
universalAllowedRanges = [
{
from = 42852;
to = 42872;
}
];
in {
services.openssh.enable = true;
networking.firewall = {
allowedTCPPorts = universalAllowedPorts;
allowedUDPPorts = universalAllowedPorts;
allowedUDPPortRanges = universalAllowedRanges;
allowedTCPPortRanges = universalAllowedRanges;
};
networking.firewall.enable = true;
2024-08-16 06:42:35 -07:00
networking.nameservers = ["1.1.1.1" "1.0.0.1"];
}