Files
infra/nixos/hosts/mini-pc/firewall.nix
T
Dmitry ef1503aa3a
NixOS switch mini-pc / switch (push) Has been cancelled
NixOS switch cloud-pc / switch (push) Failing after 10m4s
Fix firewall port formatting
2026-05-30 12:58:11 +03:00

32 lines
587 B
Nix

{
networking.firewall = {
enable = true;
allowedTCPPorts = [
22
53 # DNS (AdGuard)
80 # HTTP
443 # HTTPS
784 # DNS-over-QUIC
853 # DNS-over-TLS
3001 # Uptime Kuma
3015
10171 # v2raya SOCKS5 LAN
10172 # v2raya HTTP proxy LAN
20171 # v2raya SOCKS5 (localhost)
20172 # v2raya HTTP proxy (localhost)
20170 # v2raya mixed
4438
5443
8088
10380
];
allowedUDPPorts = [
53 # DNS
443 # QUIC
784 # DNS-over-QUIC
9993 # ZeroTier
5443
];
};
}