Every device is tested before it ships · Free pre-configuration · Free shipping on hardware over $199
Wrtora
Menu
Cart

Separate IoT and Guest Networks with VLANs

Smart plugs, cameras and guests' phones do not need to see your laptop or NAS. VLANs split one physical network into several isolated ones that share the same cables, switch and access points.

Three networks — Home, IoT and Guest — over one trunk cable to the switch and access points
Three networks — Home, IoT and Guest — over one trunk cable to the switch and access points

The plan

lanVLAN 1, 192.168.1.0/24 — your own devices
iotVLAN 20, 192.168.20.0/24 — cameras, plugs, TVs; internet only
guestVLAN 30, 192.168.30.0/24 — visitors; internet only
eth0Trunk to the switch and APs: VLAN 1 untagged, 20 and 30 tagged
eth2 / eth3Access ports: eth2 in VLAN 1 (desktop), eth3 in VLAN 20 (IoT hub)

1. Bridge VLAN filtering

Network → Interfaces → Devices → br-lan → Configure… → Bridge VLAN filtering. Tick Enable VLAN filtering and add one row per VLAN. U = untagged, T = tagged, * = the port's native VLAN.

br-lan → Bridge VLAN filtering: VLAN 1, 20 and 30 across eth0, eth2 and eth3
br-lan → Bridge VLAN filtering: VLAN 1, 20 and 30 across eth0, eth2 and eth3

2. One interface per VLAN

  • Edit lan and set its Device to br-lan.1
  • Add new interface iot: protocol Static address, device br-lan.20, address 192.168.20.1/24, and enable the DHCP server
  • Add guest the same way on br-lan.30 with 192.168.30.1/24
Network → Interfaces: lan, iot and guest on their VLAN devices
Network → Interfaces: lan, iot and guest on their VLAN devices

3. Firewall zones

Network → Firewall: create zones iot and guest with Input reject and Forward reject, and allow forwarding only to wan. Then add two traffic rules that accept DHCP and DNS (UDP/TCP ports 53 and 67) from each zone to the router.

Firewall zones: lan, wan, iot and guest; iot and guest may only forward to wan
Firewall zones: lan, wan, iot and guest; iot and guest may only forward to wan

4. One SSID per network

Under Network → Wireless, attach Wrtora-IoT to iot and Wrtora-Guest to guest (tick Isolate Clients on guest). On separate access points, create the same VLANs on the AP's own bridge and attach each SSID to its VLAN.

Three SSIDs: Home on lan, IoT on iot, Guest on guest
Three SSIDs: Home on lan, IoT on iot, Guest on guest

Check it works

  • A phone on Wrtora-Guest gets a 192.168.30.x address and can browse the web
  • From that phone, 192.168.1.1 and your NAS do not answer
  • The switch between router and APs must pass tagged VLANs: a managed switch such as the Wrtora S8M or the SP8 PoE