nix/nixos/hosts/nuc-server/firewall.nix

24 lines
416 B
Nix
Raw Normal View History

2024-12-23 22:38:58 +01:00
{ ... }: {
networking = {
firewall = {
enable = true;
allowedTCPPorts = [
2025-01-08 21:14:23 +01:00
53 # DNS
2024-12-23 22:38:58 +01:00
80 # HTTP
443 # HTTPS
2025-01-08 21:14:23 +01:00
5696 # DSM-KMIP
5697 # DSM-KMIP Backup
2024-12-23 22:38:58 +01:00
];
interfaces = {
tailscale0= {
allowedTCPPorts = [
53 # DNS
80 # HTTP
443 # HTTPS
];
};
};
};
};
}