IoT on Its Own VLAN: Keeping Smart Bulbs Away From Your NAS
Your smart bulbs should not share a network with your NAS. Learn how an IoT VLAN isolates untrusted devices, which firewall rules matter, and how to set it up step by step.

On this page
Your living room probably contains more computers than you realize. A television that checks for updates every hour, a handful of bulbs that phone home to a vendor cloud, a camera that streams to an app on your phone, a voice assistant that listens for a wake word, and maybe a smart plug that you bought because it was inexpensive and convenient. Each of those devices runs software you did not write, cannot easily inspect, and will not patch on your schedule, yet most home networks place every one of them on the same flat subnet as the NAS that holds your photos, documents, and backups.
That flat layout is the default because it requires no configuration, and it works perfectly until one device breaks the trust assumption for the whole network. When every device shares one broadcast domain, any device can attempt to reach any other device directly, which means a compromised bulb has the same layer two adjacency as your workstation. Putting your IoT devices on their own VLAN changes that geometry entirely, and once you understand the traffic path, the firewall rules, and the verification steps, you can build the isolation in an evening and keep it maintainable for years.
Why Smart Devices Deserve Their Own Segment
You should treat a smart device as untrusted not because every vendor is malicious but because the device lifecycle is largely outside your control. Firmware update cadence is unpredictable, credential handling is opaque, and many budget devices expose services you never asked for, such as telnet listeners or unauthenticated HTTP endpoints that linger long after setup is complete. Even reputable products have had vulnerabilities that allowed remote code execution from the local network, and the attacker who lands on an IoT device does not need to be sophisticated if your NAS is one hop away on the same subnet.
Isolation also protects you from the normal chatter that IoT devices produce. Placing low trust devices in their own broadcast domain keeps their multicast noise, discovery broadcasts, and occasional firmware storms away from the machines you rely on every day. If a device malfunctions and floods the network, the impact stays inside its segment instead of dragging down the file transfers and video calls you care about. You get a quieter network and a smaller attack surface from a single design choice.
Segmentation also makes your troubleshooting clearer. When you can read an IP address and immediately know it belongs to the IoT range, you stop guessing which device is which and you start reasoning about zones instead of individual hosts. That zone based thinking is exactly how larger networks are designed, and practicing it at home builds intuition that transfers directly to production environments.
How Isolation Changes the Traffic Path
A VLAN turns one physical switch into multiple logical switches that never forward frames to each other. Devices in VLAN 20 and devices in VLAN 30 live in different broadcast domains, so a broadcast from a bulb never reaches your NAS, and more importantly, unicast traffic between the two segments can only pass if your router explicitly routes it. That router position is where your policy lives, which is why a VLAN without firewall rules is a neat labeling exercise but not yet a security control.
You can picture the flat network as a single room where everyone shouts and everyone hears, and the VLAN design as two rooms with a guarded doorway between them. Your bulbs and cameras go in one room, your NAS and workstations go in the other, and the doorway only opens for the specific conversations you approve. Your phone on the trusted side can still reach a bulb to toggle it, but a compromised bulb cannot initiate a connection into the trusted side to probe your file shares.
Thinking in zones also keeps your mental model stable as the network grows. Adding a guest network, a lab segment, or a media VLAN follows the same pattern, because each new zone gets its own VLAN ID, its own subnet, and its own rule set at the router. You build the habit once and repeat it instead of redesigning the network every time you buy a new device.
Planning Your VLAN and Subnet Map
Choosing a clear map before you touch any configuration saves you from renumbering later, and for this use case four zones cover nearly every home. Keep a management VLAN for your network gear, a trusted VLAN for your computers and storage, an IoT VLAN for the devices you want to contain, and a guest VLAN for visitors who should only reach the internet. You can add more zones later, but starting with these four keeps the firewall rule count manageable while you learn the pattern.
Align your VLAN IDs and subnets so they reinforce each other. A common and memorable scheme is VLAN 10 on 10.0.10.0/24, VLAN 20 on 10.0.20.0/24, VLAN 30 on 10.0.30.0/24, and VLAN 40 on 10.0.40.0/24, with the gateway at .1 and DHCP pools from .100 to .200. If you prefer 192.168.x.0/24 space, the same idea applies: the third octet matches the VLAN ID. This convention pays for itself every time you read a log or a DHCP lease and instantly know the zone without looking it up.
Reserve space for growth even if you do not use it today. Leave a VLAN ID and subnet range for a lab or media segment you might add next season, document the convention in a single note you can find again, and avoid reusing VLAN 1 for anything, since it is the default on most switches and tends to collect untagged surprises. Give your NAS and other critical services a static lease or reservation in the trusted range so their addresses never drift into the dynamic pool unnoticed.
Firewall Rules That Make It Matter
The VLAN creates the rooms, but the firewall decides whether the doors open, and the safest default is to deny traffic between zones and then add narrow permits where a real use case demands it. For the IoT segment that means all outbound internet access can remain allowed, all initiated connections from IoT into the trusted VLAN are blocked, and traffic from the trusted VLAN into IoT is allowed only when you initiate it or when it matches a specific port you have approved. Established and related return traffic must be permitted so replies flow back, but that is a stateful allowance for replies, not an open door for new connections from the untrusted side.
You will need a handful of precise exceptions, and naming them explicitly keeps the rule base understandable. If you want your phone to control bulbs through a local API, allow the phone subnet to reach the bulb addresses on the specific TCP port the integration uses, instead of opening the whole IoT range. If you run a Home Assistant instance in the trusted VLAN that polls IoT sensors, allow that single host to reach the IoT subnet on the polling ports. If your bulbs rely on a cloud service that requires no inbound reachability, you actually need no exception at all, which is the best outcome because the smallest rule base is the easiest to keep correct.
Pay special attention to discovery protocols, because they are where expectations often break. Many IoT setups depend on mDNS or SSDP broadcasts that do not cross VLAN boundaries by design, so casting from your phone to a speaker on another VLAN will fail until you enable a reflector or relay on your router, such as an Avahi reflector for mDNS. Treat that reflector as a deliberate exception rather than a workaround to be enabled everywhere. Enable it only for the zones that must discover each other and leave the guest and unneeded zones out of the reflection set.
Setting It Up Step by Step
Start on the router so every new segment has a gateway and a DHCP scope the moment a device joins it. Create VLAN 30 for IoT, assign it the subnet you planned, set the gateway address, and define the DHCP pool and DNS servers. Repeat the same creation on your managed switch, adding VLAN 30 to the VLAN table and ensuring the trunk between the router and the switch carries the new tag. If your environment uses multiple switches, extend the same VLAN across each one so a device on any switch lands in the same logical segment.
Now decide how devices reach the VLAN. The typical home layout is a router on a stick, where one trunk cable carries all VLANs between the router and the switch, and individual switch ports are configured as access ports in the correct VLAN. Move IoT devices by reassigning their switch port to access VLAN 30, and if the device connects over Wi Fi, map the IoT SSID to VLAN 30 on your access points so wireless clients are tagged at ingress. Test with one bulb or plug first instead of migrating everything at once, because a single successful join proves the tagging, trunk, gateway, and DHCP paths in one go.
On the switch side, double check that ports you did not explicitly assign are not quietly sitting in VLAN 1 with your management traffic, and put unused ports on a blackhole VLAN or disable them so an unknown device cannot appear in a useful segment by accident. Document the port assignment as you go with a short note that lists which ports and which SSIDs map to VLAN 30. That note is what saves you six months from now when you wonder which cable feeds the IoT corner of the house.
Making Exceptions Without Opening Everything
Once the base isolation is working, you will discover one legitimate flow that must cross the boundary, and the temptation is to punch a wide hole to make the annoyance disappear. Resist that shortcut and instead define the smallest permit that solves the real problem. If only one automation host needs to reach the IoT segment, write the rule for that single source address, not for the entire trusted subnet. If only one port is required, specify it rather than allowing all ports between zones.
Internet access from IoT deserves its own thought process. Most devices need DNS and HTTPS outbound to function, but they do not need to reach arbitrary destinations on arbitrary ports, and some benefit from being restricted to a known set of cloud endpoints. If your firewall supports FQDN objects or you can identify the vendor domains from a quick capture, consider limiting outbound IoT internet to DNS, NTP, and the vendor domains rather than leaving the full internet open. Even without that refinement, the separation already prevents the most consequential lateral movement inside your home, which is the core gain.
Logging is a surprisingly helpful control as well. Enable logging on the deny rules between IoT and the trusted VLAN so you can see which devices attempt to probe across the boundary and whether a rule you added is broader than it needed to be. A quiet log after the first week is a good sign. A noisy log point to a device that was chatty even before you segmented it, and you now have visibility you never had on the flat network.
Verifying the Boundary Actually Holds
Configuration is only half of the job, and the other half is proving that the enforcement matches your intent. Put a device on the IoT VLAN, confirm it receives an address from the 10.0.30.0/24 pool with the correct gateway and DNS, and check that devices inside the same VLAN can reach each other. Then verify that a host on IoT cannot ping the NAS or reach its file sharing ports on the trusted VLAN, and that the reverse initiation from trusted to a bulb succeeds only where you wrote an explicit permit.
Test the wireless path separately from the wired path, because an SSID that looks correct in the controller can still be mapped to the wrong VLAN and you will not notice until a phone on that SSID fails to behave as expected. Connect your phone to the IoT SSID and verify it gets a 10.0.30.x address, then connect it to the trusted SSID and verify it gets a 10.0.20.x address. Small checks like this catch the mis mapping that produces no error message and instead places a device silently on the wrong network.
Revisit DNS, mDNS, and cloud control after the layer three checks pass. Confirm that bulbs still respond to your automation platform, that casting and discovery work only where you enabled the reflector, and that devices which should be cloud only still reach their vendor service through the allowed outbound path. Rerun the same set of checks after every future change to the VLAN layout or the rule base, because segmentation tends to drift as ports are repurposed and new gadgets arrive without anyone updating the port table.
Keeping the Network Understandable Over Time
The quiet failure mode of any VLAN design is documentation drift. You add a new camera, a visitor needs a port in a hurry, a switch gets replaced and the VLAN table is rebuilt from memory, and half a year later no one can say which segments exist, which ports are in which VLAN, and which firewall rules were intentionally narrow. The design that felt obvious on the evening you built it becomes a puzzle unless you record the decisions you made.
Keeping a simple living record prevents that drift without adding heavy process. Note each VLAN with its ID, name, subnet, gateway, and DHCP range, list which switch ports and SSIDs are assigned to it, and write each firewall rule as a sentence that names the source, destination, ports, and reason. When you add an exception for a single automation host, capture why that host alone needs the access so the next person who reads the rule does not broaden it to the whole trusted zone. Review the note once a quarter and after every device change, and treat the review as part of the build rather than a chore to be skipped. Your future self will appreciate the network that still makes sense a year from now, not because it was clever but because it stayed legible.
Frequently Asked Questions
Why should IoT devices be on a separate VLAN?
Can I put IoT devices on a VLAN without a managed switch?
Will my phone still control IoT devices on a different VLAN?
What subnet should I use for an IoT VLAN?
Do VLANs alone protect my network from IoT threats?
Stop reaching for a spreadsheet
Obelinf keeps every subnet, device, circuit, and rack in one live source of truth, with audit logs and a topology view. Free for personal use.
Related Articles

Homelab VLANs: A Beginner's Segmentation Guide
New to VLANs? Learn what VLAN segmentation is, why your homelab needs it, how to plan your first layout, and how to keep it documented as your lab grows.
Read more
Homelab Cooling Beyond the Fan Swap: Closets, Vents, and Intake Paths
Why a sealed closet defeats any fan upgrade, how to vent a homelab closet so cool air enters low and heat leaves high, and how to keep the intake path clear from room to rack.
Read more
UniFi vs Omada vs Aruba Instant On: Home WiFi Access Points Compared
UniFi, Omada, and Aruba Instant On are the three most common ways to upgrade home WiFi from a single router. This guide compares their management models, real costs, and when each makes sense.
Read more