Server firewall opens more ports than needed #14
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
polen/nixos#14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
networking.firewall.allowedTCPPortson the server opens much more than the reverse proxy needs:openFirewall = true,bind_address = "0.0.0.0"host = "0.0.0.0"These ports are reachable from every LAN device, and from the internet if the ISP hands out global IPv6 addresses and the router does not filter them.
Fix
allowedTCPPortsto 80 and 443 (22 is opened by the openssh module). Keep 10222 only if clients sync over the LAN directly.