mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:46 +01:00
fix(firewall): note the one port that is open to the Internet
Assisted-by: DeepSeek Harness 0.2.1-rc.2 (deepseek-flash)
This commit is contained in:
1 parent
6dea887202
commit
267ccd9d34
1 file changed
+6
-4
@@ -14,9 +14,9 @@ in
|
||||
networking.firewall = {
|
||||
enable = true;
|
||||
|
||||
# Nothing is opened to the Internet. LAN/tailnet/local-container access
|
||||
# comes from the rules below; per-service `openFirewall` ports are
|
||||
# suppressed.
|
||||
# Nothing is opened to the Internet except Tailscale's WireGuard port
|
||||
# below. LAN/tailnet/local-container access comes from the rules below;
|
||||
# per-service `openFirewall` ports are suppressed.
|
||||
allowedTCPPorts = lib.mkForce [ ];
|
||||
allowedUDPPorts = lib.mkForce [ ];
|
||||
|
||||
@@ -51,7 +51,9 @@ in
|
||||
# The home LAN is the trusted core.
|
||||
ip saddr ${lanCidr} accept
|
||||
ip6 saddr fe80::/10 accept
|
||||
# Tailscale's WireGuard port, for direct (non-DERP) connections.
|
||||
# Tailscale's WireGuard port, for direct (non-DERP) connections. The LAN
|
||||
# and tailnet are accepted above, so this is the only port open to the
|
||||
# Internet.
|
||||
udp dport 41641 accept
|
||||
'';
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user