← Holocron Logs

Locking an IoT VLAN Out of the Internet

The Tapo switches are controlled locally by Home Assistant and the TV streams through an Apple TV, so nothing on the IoT VLAN has any reason to reach the internet. Filtering its DNS hard and then dropping outbound traffic closed the gap.

Why this matters beyond the homelab: IoT devices are the least trustworthy and the chattiest things on a network. Segmentation stops lateral movement, but the question that finishes the job is whether each device needs the internet at all.


The VLAN Contents

Two kinds of device sit on the IoT network. The Tapo smart switches are controlled locally by Home Assistant, which lives on the same VLAN, so they need no cloud connection at all. The LG TV is used purely as a display. Streaming happens on Apple TVs, which stay on the main network because they depend on Apple and CDN domains that would be painful to allow-list.


Layer 1: DNS Filtering

Before blocking anything, AdGuard Home got a dedicated client profile for the IoT subnet with per-client filtering turned on and browsing security enabled. Four lists were added on top of the existing global one:

ListPurpose
HaGeZi Pro++General ad, tracker, and telemetry blocking
Smart-TV blocklistLG, Samsung, and Vizio tracking and ACR domains
HaGeZi Threat Intelligence FeedsKnown-malicious domains
Phishing ArmyPhishing domains

Together with the existing filter, that is roughly 2.5 million rules applied to the IoT VLAN only. The Tapo switches have no dedicated list, but they were headed for a harder control anyway.


Layer 2: The TV

The LG TV was sitting on the main network. Because it doesn’t need the internet, a client network override in UniFi moved it onto the IoT VLAN so it could be locked down along with the switches. The Apple TVs stayed where they were.


Layer 3: Outbound Drop

The IoT VLAN already had drop rules for traffic to the DMZ, the management network, and the services network. The missing piece was the last gap, outbound to the internet:

Name:         Block IoT to Internet
Type:         Internet Out
Action:       Drop
Protocol:     All
Source:       IoT (network)
Destination:  Any

It sits after the existing IoT block rules. Home Assistant talks to the Tapo switches on the same VLAN, so local control never crosses the firewall.


Open Checks

Anything on the IoT VLAN is now deliberately cut off, so the failure mode to watch for is a device that quietly depended on the cloud. The first place to look is Home Assistant’s view of the switches, then the TV, then the AdGuard query log for the IoT client, which shows exactly what a device is trying to reach.


The Lesson

Segmentation answers “what can this device reach inside.” The harder and more useful question is “what does it need to reach at all,” and for local-first devices the honest answer is nothing. DNS filtering reduces what a device asks for. The firewall rule decides what it can do, and you want both, because the filter is advisory and the drop rule isn’t.


Related: The DNS Rule That Caught Its Own Resolver | Deploying Home Assistant on an Isolated IoT VLAN: Three Bugs Before Breakfast | The Network Layer: Hardware, VLAN Segmentation, and Zero-Trust Firewall Design | NPM and UniFi Firewall Rule Ordering: The Silent Traffic Drop

← Back to Holocron Logs