WIP: feat(router): isolated guest VLAN (hardened) #559
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "router-guest-vlan-hardened"
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?
Draft. Isolated, internet-only guest VLAN (VLAN 199,
192.168.199.0/24) for hosting guests, enforced on the NixOS router because the network has no UniFi gateway (controller only manages APs).This is a hardened, fresh-from-
mainrevision of #554 — same feature, but with the firewall isolation holes from a security audit fixed. Full rationale is in the commit message; summary:Audit-fixed holes (vs #554):
iifname, so they matched guest traffic before the chain policy drop. Now an explicitiifname guest … dropis placed before those accepts — only DHCP is allowed back to the router.icmpv6 … acceptin forward was a latent hole). Now an explicitiifname guestforward drop kills guest→LAN for v4 and v6, future-proof against the IPv6-parity TODO.Validation:
nix build .#nixosConfigurations.router…toplevelpasses (incl. nftablescheckRuleset); rendered ruleset confirms guest drops precede the service accepts in both chains.Out of scope (follow-ups):
net.ipv4.conf.lan.rp_filter=1(currently 0); tightening the WAN-facingdport 53accept.Supersedes #554 (can be closed once this is reviewed). Not yet deployed; deploy + the UniFi guest-SSID walkthrough (VLAN 199 + client isolation) still pending.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.