Files
infra/nixos/hosts/mini-pc/firewall.nix
T
Dmitry 9c9ad292b2
Deploy mini-pc / deploy (push) Failing after 1s
NixOS switch mini-pc / switch (push) Failing after 10m48s
Expose v2raya LAN proxy ports
2026-05-30 11:54:48 +03:00

32 lines
592 B
Nix

{
networking.firewall = {
enable = true;
allowedTCPPorts = [
22 # SSH
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
];
};
}