Security

IoT VLAN at Home: Isolate Smart Devices Without Enterprise Gear

G Gurpreet Singh September 7, 2026 7 min read
A main home network holding a laptop, phone and NAS separated by a firewall from an IoT network holding a camera, plug and TV, with IoT traffic blocked from crossing back
Put smart home devices on a separate network so a compromised camera cannot reach your laptop or NAS. A guest network does this in ten minutes on any modern router. A VLAN gives you real firewall rules, and an mDNS repeater is needed to keep casting working.
Key takeaways

  • Segmentation does not stop a device being compromised, it limits what that device can reach afterwards.
  • A guest network is already an isolated segment and gives most of the benefit with no configuration.
  • A VLAN is worth it when you want to control direction, make exceptions, and log what the segment tries to do.
  • Allow IoT out to the internet, block IoT to your main LAN, and allow your main LAN in so you can still configure devices.
  • Block the IoT segment from the router admin interface, which is the rule people most often forget.
  • Casting breaks after segmenting because mDNS is sent with a TTL of 1, so you need an mDNS repeater rather than a firewall rule.

The argument for separating smart home devices is simple. A cheap camera running firmware nobody has updated since 2019 sits on the same network as your laptop, your backups and your work files. If that camera is ever compromised, everything it can reach is in play.

Separating it takes an evening at most, and for many households it takes ten minutes and no new hardware. This covers all three routes, from the version that works on any router to the version worth doing properly.

Why isolate IoT at all

A compromised camera on a flat home network sending expanding rings that reach a NAS, a laptop, a printer and a phone, showing how far one weak device can scan
On a flat network, every device can talk to every other device. That is the default, and it is the problem.

Smart home devices are a bad security bet for reasons that have nothing to do with the people who buy them. They are built to a price, they ship with old software components, they often stop receiving updates a year or two after release, and many of them keep a permanent connection to a manufacturer server you know nothing about.

None of that is fixable from your side. What is fixable is the blast radius. Segmentation does not stop a device being compromised. It decides what happens next.

There is a second reason that has nothing to do with security. IoT devices are noisy. Dozens of cheap 2.4 GHz devices constantly beaconing and reconnecting degrades the band for everything else. Putting them somewhere separate makes the rest of your network measurably calmer.

Three ways to do it, from easiest to best

Three approaches compared: a guest network on any router made since 2018 taking ten minutes, a VLAN on OpenWrt, UniFi or OPNsense taking an evening and giving real firewall rules, and a spare second router taking thirty minutes
Most people should stop at the first column. The middle column is what to do if you enjoy this.

The guest network, which you already have

Every router sold in the last several years has a guest network, and a guest network is already an isolated segment. It has its own address range, it cannot reach the main network, and it usually has a client isolation option that stops guests reaching each other too.

Rename it, give it a password you keep, and move your smart devices onto it. That is the whole job. You get most of the security benefit of a VLAN with none of the configuration.

The limitation is control. You cannot write your own rules, you often cannot allow selective access back in, and some routers cripple guest networks in ways that break device setup. Try it first anyway, because if it works you are finished.

A real VLAN, if your router supports one

If you run OpenWrt, UniFi, OPNsense, pfSense, or a prosumer router with VLAN support, you can do this properly. Create a VLAN with its own subnet and DHCP scope, create a second SSID bound to that VLAN, and write firewall rules between the two.

What you gain is precision. You decide exactly which direction traffic can flow, you can allow one device through for one port, and you can log what the IoT segment tries to do.

A managed switch only becomes necessary if you have wired IoT devices, such as a camera on Ethernet, that need tagged traffic carried across the wire. For a purely wireless smart home, the router and its own radios are enough.

A second router, if you have one in a drawer

Connect an old router by its WAN port to a LAN port on your main router. It creates its own network behind its own NAT, which means devices on it cannot reach the main network. Put the IoT devices on its WiFi.

It is inelegant, it adds a NAT layer, and you now have two things to update. It also works, costs nothing, and takes half an hour.

The five rules that matter

Five firewall rules for an IoT segment: allow IoT to the internet, block IoT to the main LAN, allow the main LAN to IoT, block IoT to IoT, and block IoT from reaching the router admin interface
Order matters. The last rule is the one most people leave out.

If you are writing rules yourself, these five cover it.

IoT to the internet: allow. Almost every smart device is useless without its cloud service. Blocking this entirely means nothing works, which is why the appealing idea of a fully offline IoT network usually collapses in practice.

IoT to the main LAN: block. This is the rule the whole exercise exists for. Nothing on the IoT segment should be able to open a connection to your laptop or your NAS.

Main LAN to IoT: allow. You still need to reach these devices to configure them, cast to them and check them. Allowing this direction while blocking the reverse gives you the protection without the inconvenience, because a connection you start is still allowed to reply.

IoT to IoT: block. Client isolation within the segment. If one plug is compromised it should not be able to reach the camera next to it.

IoT to the router admin interface: block. Easy to forget, because the router is on the gateway address of the IoT subnet itself and so it looks like part of the segment. A compromised device that can log into your router has undone all of the above.

The thing that will break, and how to fix it

A phone on the main VLAN searching for a speaker on the IoT VLAN, with the multicast discovery packet on 224.0.0.251 stopped by a TTL of 1 at the boundary between the two segments
Discovery packets are sent with a TTL of 1 on purpose, so they die at the first router. Segmenting your network means segmenting discovery too.

Everything will work until you try to cast something. Then your phone will show no devices, and the firewall rules will look correct, because they are.

Chromecast, AirPlay, Sonos, HomeKit and Matter all find devices using multicast DNS. The device announces itself to 224.0.0.251, and that announcement is deliberately sent with a time to live of 1 so it cannot leave the local link. When you put the speaker on a different VLAN, discovery stops at the boundary even though normal traffic passes fine.

This is not a firewall rule problem and no amount of allow rules will fix it. You need something that repeats those announcements between segments. Depending on your platform it is called an mDNS repeater, an mDNS reflector, or Avahi reflection. UniFi has a toggle. OpenWrt uses Avahi. OPNsense has a plugin.

Turn it on for only the two segments involved. Reflecting everything everywhere puts back some of the visibility you just spent the evening removing.

Two related notes. Devices that use Thread rather than WiFi reach the network through a border router, so whichever segment that border router sits on is the one that matters. And a few older devices refuse to complete setup unless the phone is on the same network, so join the IoT network temporarily to set them up, then move back.

Questions people ask

Quick answers panel showing that a guest network is good enough for most homes, a managed switch is only needed for wired IoT, an mDNS repeater is needed as soon as you cast, and 2.4 GHz should stay enabled
If you read nothing else, these four cover the decisions.

Do I need a managed switch?

Only if you have wired IoT devices that need to be on the separate segment. For a wireless smart home, a router with VLAN support and a second SSID does everything. Our roundup of managed switches for a home lab covers the options if you do need one.

Should I put my TV on the IoT network?

Yes. Smart TVs are among the worst offenders for tracking and stale software. The only caveat is casting, which needs the mDNS repeater described above.

Can I just turn off 2.4 GHz instead?

No, and it would break most of your devices. The majority of smart plugs, sensors and older cameras are 2.4 GHz only. Keep the band, separate the network.

What about a printer?

A printer is a reasonable candidate for the IoT segment, since it is another device with firmware nobody updates. Printing from a laptop still works because that direction is allowed, though discovery may need the mDNS repeater again.

Is a guest network really as good as a VLAN?

Not as good, but close enough for most homes. It gives you the isolation. What it does not give you is control over the rules or the ability to make exceptions. If you are choosing between a guest network today and a VLAN you never get around to, take the guest network.

If you are building the wider network from scratch, the equipment side is covered in our guide to setting up a home network.

GU
Written by

Gurpreet Singh

Hey! I"m Gurpreet Singh and I Have 7+ Years of experience in the Network & Security Domain as well as the Cloud Infra Domain. I am Certified with Cisco ( CCNA ), CheckPoint ( CCSA ), 1xAWS, 3xAZURE, and 3xNSE. So I love to share my tech knowledge with you.

Leave a Reply

Your email address will not be published. Required fields are marked *