feat(router): isolated guest VLAN + LAN /23 #554
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "router-guest-vlan"
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?
Sets up an isolated, internet-only guest WiFi network (for hosting a home exchange) and tightens the LAN subnet.
What
lyte.router.guestmodule block: an internet-only guest network over a tagged VLAN (default VLAN 199,192.168.199.0/24).policy dropwalls it off from the LAN and from the router itself (only DHCP allowed back). Guests get upstream DNS directly, so they never touch the router's internal resolver./16→/23(512 addresses) on therouterhost.Why router-enforced (not UniFi GUI)
The network has no UniFi gateway — the self-hosted controller on beefcake only manages APs. UniFi's built-in guest isolation needs a gateway, so true L3 isolation has to be enforced on the NixOS router. The AP just VLAN-tags the SSID.
Implementation
guest) tagged onto the LAN trunk.dhcp-optionhands guests upstream DNS.guest → WANaccept,guest → routerDHCP-only.The
/16→/23change is safe: DHCP already hands out a/24, so existing192.168.0.xclients are unaffected; this just removes the over-broad default and clears the overlap with the guest range.Validation
nix build .#nixosConfigurations.router.config.system.build.toplevelpasses (exit 0), including the nftablescheckRulesetat build time.Follow-up (post-merge/deploy)
nix develop -c deploy -s --targets .#router(management rides tailscale0, so the LAN re-addressing won't drop the control connection; magic rollback as safety net).2cec8bd126ef9b368e7fView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.