Network Paranoia: Why Your Smart Fridge Is a Threat
Phase 2 · The Network Matrix
The cheap IoT device on your Wi-Fi has the same network privileges as your banking laptop. That needs to stop.
The homelab grew. A file server here, a photo backup there, a few virtual machines running internal tools I actually used. Along the way I bought some convenience: a smart plug to measure power draw, a couple of smart bulbs, a media-streaming device, a wireless printer. Each one joined the same Wi-Fi network my laptop and phone were on, because that is what consumer networks assume. One network, one password, everyone inside is a friend.
That assumption is where the design stops. Inside a flat network, a ten-dollar smart bulb built by an overseas manufacturer with a firmware update cadence measured in “maybe never” has exactly the same ability to reach my banking laptop as my banking laptop has to reach it. If the bulb gets compromised (and the record shows that cheap IoT devices get compromised routinely), the attacker now has a foothold inside the trust perimeter. The fortress wall is the front door of the house. There is nothing between the rooms.
The Analogy
Most home networks are a converted loft. One open space, one front door, a shared bathroom. Everyone inside has equal access to everything else. It scales fine for a small family. It scales badly the first time a stranger walks in.
Network segmentation is the moment you convert the loft into a small hotel. You build internal walls. You install doors with keycard readers. The couple in room 12 can leave their room to go to the restaurant, but they cannot walk into room 14. Staff can enter every room, but a guest cannot walk into the kitchen. The front door is still a perimeter, but it is no longer the only barrier.
The network equivalent of those internal walls is a VLAN.
The Tech Translated
A Local Area Network (LAN) is the set of devices that share a subnet and can reach each other directly. A Virtual LAN (VLAN) lets a single physical network act as several logical ones. A managed switch and a capable router tag each packet with a number (called a VLAN ID), and the switch only delivers that packet to ports on the same VLAN. Two devices on the same wire but different VLANs are strangers. They cannot see each other unless you explicitly route traffic between them through a firewall.
The standard behind all of this is IEEE 802.1Q, first ratified in 1998, in widespread commercial use ever since. The reason you may never have met it is that consumer networking equipment tends to hide the feature or disable it by default. Moving from a consumer all-in-one router to a capable one (Ubiquiti, MikroTik, OPNsense on a small x86 box, pfSense) is the step that actually unlocks segmentation. I chose OPNsense running on a small fanless x86 appliance with four ethernet ports. Open source, actively maintained, and the configuration files are plain text.
A short history lesson in why this matters
On 21 October 2016, an enormous portion of the public internet stopped responding. Twitter, Netflix, Reddit, GitHub, Spotify, and dozens of other services went dark for most of the day. The cause was a distributed denial-of-service attack against Dyn, a major DNS provider, driven by a botnet called Mirai. Mirai was not made of laptops. It was made of a hundred thousand cheap IoT devices (mostly IP cameras and digital video recorders) that had shipped with default passwords nobody had changed.
Every one of those devices was sitting on someone’s home network, on the same subnet as the laptops and phones of the household. Network segmentation would not have prevented the devices from being recruited. It would have stopped them from reaching anything more valuable on the way.
The Action
I sat down with a notepad and mapped every device in my house into one of six trust zones. The mapping is not a technical exercise; it is an honest conversation with yourself about which vendors you trust with what.
| VLAN | Purpose | Internet? | Can initiate to LAN? | Can initiate to other VLANs? |
|---|---|---|---|---|
| MGMT | Switches, access points, hypervisors, IPMI | Yes (outbound only) | No | No |
| LAN | Laptops, phones, trusted desktops | Yes | (this is LAN) | Only to IoT for control |
| SERVERS | VMs, containers, file server | Yes (outbound only) | No | No |
| IOT | Smart plugs, bulbs, vacuum, voice assistant | Yes | No | No |
| MEDIA | Smart TV, streaming box, printer | Yes | No | No |
| GUEST | Visitor Wi-Fi | Yes | No | No |
The rule shape is the same for every quarantined zone: the zone can talk to the internet (because that is what these devices need to function), it cannot start a conversation into the trusted network, and it cannot talk to its neighbour zones at all. If my laptop wants to tell a smart bulb to turn on, the firewall remembers that my laptop started the conversation and allows the reply through. If the bulb tries to reach the laptop on its own, the request is dropped.
A firewall rule pattern you can reuse
OPNsense (like pfSense, OpnFirewall, and most professional firewalls) accepts rules in a declarative form. Here is the skeleton for the IOT VLAN. Written this way, you can read the intent top to bottom:
# Zone: IOT
# Philosophy: may reach the internet, may not reach anything else.
- action: block
source: IOT
destination: RFC1918 # Anything in 10/8, 172.16/12, 192.168/16
description: "Block all traffic from IOT to private networks."
- action: pass
source: IOT
destination: any
port: 53
protocol: udp
description: "Allow DNS lookups to the router."
- action: pass
source: IOT
destination: not RFC1918 # Only public internet.
description: "Allow internet access."
- action: block
source: IOT
destination: any
description: "Default deny — anything not matched above."
Explicit block at the top (for anything that might match a later accidental rule). Named allows in the middle (DNS, internet). Default deny at the bottom. Every new rule you write sits between the explicit block and the default deny, and the default deny catches every mistake.
What broke
The first time I moved the smart TV to its own VLAN, Chromecast stopped working from my laptop. The TV could reach the internet, the laptop could reach the internet, but they could no longer see each other for screen sharing. The reason is that Chromecast and similar services use mDNS (multicast DNS), a discovery protocol that deliberately does not cross subnets. By design.
The fix is a small daemon called an mDNS reflector (avahi-daemon in reflector mode, or OPNsense’s built-in mDNS Repeater plugin). It listens for mDNS announcements on one VLAN and re-broadcasts them on another, which gives you discovery across the wall without tearing the wall down.
# /etc/avahi/avahi-daemon.conf (excerpt)
[reflector]
enable-reflector=yes
reflect-ipv=no
After turning the reflector on and restricting it to the LAN and MEDIA VLANs only, Chromecast discovery returned and the smart TV stayed in its box. The lesson is general: segmentation breaks convenience features that assumed a flat network, and the fix is almost always narrower than “tear down the wall”. The correct question is not “should I give in and re-join the networks?” but “what is the minimum I need to open to restore the feature I care about?”
The rule count is a health metric
Before segmentation, my router had a single rule: “allow everything inside to go out”. After, it has about forty. That sounds like more work, and it is, once. After the initial write-up, I touch the rules maybe twice a year: when I add a device class, or when I remove one. The rules are version-controlled in a text file alongside the rest of the network configuration. I can rebuild the entire firewall from scratch in about fifteen minutes.
The lamp bulb I was worried about is still in the house, still flashing a green status light on the shelf. It just cannot see anything in the house that is not another lamp bulb. That is not paranoia. That is the network behaving the way a small hotel’s lobby behaves: perfectly hospitable, and also correctly bounded.
Footnotes
-
OPNsense is a fork of pfSense with a more permissive license and a faster release cadence. Home and documentation: opnsense.org. The required hardware is modest: a 4-core x86 box with three or four ethernet ports is plenty for a home network. ↩
-
Antonakakis, M. et al. (2017). “Understanding the Mirai Botnet”. USENIX Security Symposium 2017. Peak attack volume on 21 October 2016 was estimated at 1.2 Tbps. Available at usenix.org. ↩