A segmented home network
A real design for a home with laptops, phones, a TV box, cameras, smart bulbs and visitors. It uses the same ideas as a campus network, at a size you can build on a weekend.
The design
| VLAN | Name | For | Subnet |
|---|---|---|---|
| 10 | Home | Laptops, phones, the TV box, the smart-light hub | 192.168.10.0/24 |
| 20 | IoT | Cameras, bulbs and other small devices that call home to the cloud | 192.168.20.0/24 |
| 30 | Guest | Visitors' devices | 192.168.30.0/24 |
- The firewall is the router for all three VLANs: it holds each VLAN's gateway, serves DHCP and DNS per VLAN, and decides what may cross between them.
- The switch carries the three VLANs on 802.1Q trunks to the firewall and to each access point. Wired devices sit on access ports in their VLAN.
- Each access point sends three SSIDs and maps each one to its VLAN, so it needs a trunk, not an access port. Its own management address can sit in the Home VLAN or, better, in a small management VLAN of its own.
- The ISP's modem runs in bridge mode, so the firewall holds the public address and there is only one layer of NAT.
The rules between VLANs
| From | To the internet | To Home | To IoT | To Guest |
|---|---|---|---|---|
| Home | Allow | — | Allow (to control the devices) | Block |
| IoT | Allow | Block, except replies and the few flows a hub needs | — | Block |
| Guest | Allow ((1)) | Block | Block | — |
Firewalls are stateful, so a reply to a connection Home opened is allowed back without a rule of its own. A camera starting a connection towards Home is not ((2)).
Things that surprise people
- Discovery stops at the VLAN edge. AirPlay, Chromecast and many smart-home apps find devices with multicast DNS (mDNS), which does not cross VLANs. Turn on the firewall's mDNS reflector, or keep the device and its controller in the same VLAN.
- Some IoT devices only join 2.4 GHz. Keep the IoT SSID on 2.4 GHz with WPA2, even if Home uses 5 GHz and WPA3.
- A hub can bridge VLANs by itself. A smart-light hub on the Home VLAN talking to bulbs over Zigbee needs no IoT rule at all, because the bulbs never use IP.
- PoE budget. Two Wi-Fi 6 access points can use 13 W or more each; check the switch's total PoE budget before adding cameras.
Practise it
Build the same network in NTprompt: a router with three subinterfaces (router on a stick) stands in for the firewall, and an extended ACL per subinterface plays the rules. Test each row of the table with a ping before you trust it.