A VLAN (Virtual Local Area Network) separates your smart home devices onto their own network segment, isolated from your computers, phones, and NAS. This improves security (a compromised smart device cannot reach your laptop), reduces unwanted cloud traffic, and gives you precise control over what devices can communicate where.
Why VLANs Matter for Smart Homes
Most smart home devices are made by small manufacturers with minimal security focus. A vulnerability in a cheap Zigbee bulb or a budget IP camera could potentially expose other devices on the same network. A VLAN limits the blast radius — a compromised IoT device on the IoT VLAN cannot directly reach your personal computer on the main VLAN.
VLANs also allow you to block smart devices from accessing the internet entirely (forcing truly local operation) while still allowing Home Assistant to communicate with them.
What You Need
- A router that supports VLANs (Ubiquiti UniFi, pfSense, OPNsense, or some prosumer routers)
- A managed network switch (for wired devices)
- A Wi-Fi access point that supports multiple SSIDs with VLAN tagging
Recommended Budget Setup
- Router: GL.iNet GL-MT6000 (Flint 2) ~$90 — runs OpenWrt, excellent VLAN support
- Switch: TP-Link TL-SG108E managed switch ~$35
- AP: TP-Link EAP670 or Ubiquiti U6 Lite ~$100
Network Architecture
VLAN 1 (Main): 192.168.1.0/24 — Computers, phones, NAS
VLAN 10 (IoT): 192.168.10.0/24 — Smart devices (Wi-Fi based)
VLAN 20 (Cameras): 192.168.20.0/24 — IP cameras (no internet access)
VLAN 30 (HA): 192.168.30.0/24 — Home Assistant hub (reaches all VLANs)
Firewall Rules to Configure
- IoT VLAN to Main VLAN: Block (IoT devices cannot reach computers)
- IoT VLAN to Internet: Allow (for devices that need cloud, like Google Home)
- Camera VLAN to Internet: Block completely (cameras never phone home)
- Home Assistant VLAN to All VLANs: Allow (HA needs to reach all devices)
- Main VLAN to Home Assistant VLAN: Allow (you need to access HA)
Step: Configure Wi-Fi SSIDs
Create a separate Wi-Fi network for IoT devices (e.g., “HomeNet-IoT”) tagged to VLAN 10. Connect all Wi-Fi smart home devices to this SSID. Your personal devices stay on your main SSID.
Testing the Setup
From a device on the IoT VLAN, try to reach a device on your main VLAN (your computer IP). The connection should be blocked. From your computer (main VLAN), verify you can reach Home Assistant. From Home Assistant, verify you can reach IoT devices. If all three tests pass, your VLAN setup is working correctly.
What the firewall rule actually looks like
The isolation step is where most people stall, because “block VLAN 20 from reaching VLAN 10” sounds abstract. In practice, on a typical router/firewall UI (pfSense, OPNsense, or a managed switch’s ACL page), it’s one rule: source = IoT VLAN subnet, destination = Main VLAN subnet, action = block, placed above any general “allow” rule so it’s evaluated first. Everything on the IoT VLAN can still reach the internet and your Home Assistant server (which you’d explicitly allow), it just can’t initiate a connection to your laptop, phone, or NAS.
IoT VLAN vs. guest Wi-Fi: different jobs
Don’t merge these. A guest network is for visitors’ personal devices and typically still allows outbound internet freely. An IoT VLAN is stricter and more permanent — devices on it may not even need general internet access, only access to your Home Assistant server and their own cloud endpoint if you haven’t blocked it (see the camera isolation guide for that). Keeping them separate means a compromised smart plug can’t pivot toward whatever a house guest is doing on the guest network either.
Why this isn’t paranoia
The concern is concrete, not hypothetical: the Mirai botnet in 2016 compromised hundreds of thousands of IoT devices — cheap cameras and routers with default or weak credentials — and used them to launch some of the largest DDoS attacks recorded at the time. A VLAN doesn’t stop a device from being compromised, but it stops a compromised device from becoming a bridge to the rest of your digital life.
Free guide — no signup
Trying to cut the cloud out of your smart home? This is the whole map in one place.