Skip to content
Dorian FINKEL
VLAN802.1QZero TrustLessons learned · 2025 · 3 min read · Updated 9 October 2026

Segmenting a network by function, allow-list style

Servers, IoT devices and guests on one network: a single compromised device sees everything. The answer fits in three ideas: one VLAN per function, deny everything between them, open only what is justified. Plus a few traps: return traffic, VLAN 1, device discovery.

01The risk of a flat network

On a single network, a compromised camera or smart plug can scan and reach the servers and the admin workstation. Segmentation limits what a device can touch, whatever its state: this is what limiting lateral movement means.

02One VLAN per function

The split follows use, not location: administration, servers, lab, IoT, cameras, guests. 802.1Q trunks carry these VLANs to the core switch, each zone has its SSID, and each VLAN its own subnet, DHCP and DNS.

The guest network only reaches the Internet, with client isolation: two guests cannot see each other. A good practice to keep in mind: VLAN 1, native by default on most equipment, is where any misconfigured port lands; unused ports are best disabled or placed in a non-routed “parking” VLAN.

03Deny everything, then open

Between VLANs, the default rule is deny. Explicit exceptions are then added, from most restrictive to most open, each with its reason. Order matters: a broad rule placed too high overrides everything below it.

The admin network is only reachable through the VPN: no local zone can reach it directly.

04Return traffic

The firewall is stateful: it remembers the connections it allowed and lets their replies through. A rule is therefore written from the initiator’s point of view. “Admin to IoT” allowed and “IoT to admin” denied: the administrator opens a session on a camera and gets the replies, but the camera can never initiate anything towards them.

Depending on the version, the “allow established and related” rule is implicit or must be added at the top of the list. Without it, everything looks broken as soon as you switch to default deny.

05Device discovery

mDNS (the protocol that makes a printer or a cast target appear) is link-local: its announcements don’t cross VLANs. Rather than opening widely, an mDNS reflector relays only those announcements between the zones that need them. The actual flow (printing, casting) still needs its firewall rule.

06Segmenting is not Zero Trust yet

Zero Trust, as NIST describes it, means trusting no network location: every access is authenticated and authorised, request by request. VLANs still reason in zones. They remain an essential building block, complemented by device authentication (802.1X) and identity checks in front of applications.

07Prove the isolation

Segmentation is verified from the inside: a scan launched from each VLAN towards all the others must come back empty, except for explicitly allowed flows. -sn does plain host discovery (ping and a few TCP probes); -Pn skips discovery to test ports even if the host ignores ping.

Example · Shell
# From the IoT VLAN: no server-side host should answer
nmap -sn 192.168.20.0/24

# Sensitive ports must be filtered across the whole subnet
nmap -Pn -p 22,80,443,445,3389 192.168.20.0/24

Key takeaways

  • Split by use, not by location.
  • Default deny, explicit and justified exceptions, written from the initiator’s side.
  • Guests isolated from each other, unused ports disabled.
  • Administration only through the VPN.
  • Verify isolation with scans, from every zone.

Example addresses.

Official sources