A black hotel building with grids of windows, a red keycard reader on every internal door. Two human figures stand at the front door: one with an amber badge (approved), one with a red badge and a white cross (rejected), illustrating Zero-Trust default-deny.
[ Networking & Security ]7 min read

The Zero-Trust Philosophy in Your Living Room

Phase 2 · The Network Matrix

A security model that refuses to trust any device by default, the three times I locked myself out, and the rule pattern I use now.

OPNsenseNIST SP 800-207stateful firewallpf

After cutting the network into VLANs (the previous entry), I thought I was done. The smart bulbs were in their box, the servers in theirs, guests on their own Wi-Fi. Then I read a paper that reframed the whole thing. The classic security model treats a network like a piece of hard candy: a crisp shell around a soft, trusting interior. If an attacker cracks the shell (a phishing email, a compromised device, a visitor who should not have brought a laptop), they find themselves inside a soft centre where every machine assumes every other machine is friendly. The fortress wall falls, and the castle is empty of guards.

Zero Trust is the rejection of the soft centre. Every connection is suspect until proven otherwise, every permission is narrow, and “inside the network” stops meaning “privileged”. The phrase is overused in marketing, but the underlying idea is precise and old. For the homelab, the practical meaning is simple: your own machines do not trust each other by default, and you write the small, specific exceptions that let real work happen.

The Analogy

A standard corporate building runs on a trust perimeter. You show a badge at the front door, the security guard nods you through, and from that moment on you can walk into the cafeteria, the server room, the executive offices, the vault. One successful check at the perimeter, unlimited access inside.

A Zero-Trust building has a badge reader on every door, not just the front. The cafeteria reader lets in everyone. The server-room reader lets in four people. The vault reader lets in one, and only between 9am and 5pm. If someone cracks the front door and walks in, they find themselves in a corridor with locked doors on either side and a reader that does not recognise their badge.

The trade-off is that staff carry the mental cost of being checked constantly. The gain is that a single compromise stops at the nearest interior door rather than propagating through the whole building.

The Tech Translated

The formal articulation of Zero Trust is the US National Institute of Standards and Technology’s Special Publication 800-207, first published in August 2020. It lays out seven tenets. For a homelab, two of them carry most of the weight:

  1. All communication is secured regardless of network location. There is no “trusted” side of the wire. Encryption and authentication apply inside the LAN the same way they apply across the public internet.
  2. Access to individual resources is granted on a per-session basis. Permissions are narrow, time-bound, and evaluated at the moment of the request, not “once per login”.

To implement this on a small network you need two things: a stateful firewall at every crossing between trust zones (VLANs), and a default-deny posture that drops anything you have not explicitly allowed.

What “stateful” buys you

A stateful firewall remembers conversations. When my laptop initiates a connection to the fileserver on port 445, the firewall writes an entry in its state table: “laptop → fileserver:445, allowed”. Return traffic from the fileserver matching that session is allowed automatically. But if the fileserver tries to initiate a brand-new conversation to the laptop (because the fileserver has been compromised and is now trying to scan the network), the firewall checks its state table, does not find a matching session, and falls back to the rule set. With a default-deny rule at the bottom, the fileserver’s new conversation is dropped.

Stateful firewalling is not new (the Berkeley Software Distribution’s pf engine, which underpins OPNsense, has done this since 2001), but it is worth understanding what it buys you: asymmetric trust. “I initiated this” earns a temporary hall pass; “you initiated this” does not.

The Action

The rule template I use everywhere

Every VLAN-to-VLAN boundary gets the same shape. Written in the abstract, with SRC and DST as placeholders for the two zones:

# Boundary: SRC → DST
# Philosophy: explicit allow at the top, default deny at the bottom.

# 1. Emergency block: anything that must never cross, even by accident.
- action: block
  source: SRC
  destination: "bogons, dangerous_networks"
  description: "Never cross, regardless of other rules."

# 2. Named service allows. One rule per service, with a comment for why.
- action: pass
  source: SRC
  destination: DST
  port: 443
  protocol: tcp
  state: keep
  description: "SRC can reach the DST web interface. No reverse path needed."

# 3. Default deny. Logs the drop, which is useful when you debug.
- action: block
  source: SRC
  destination: DST
  log: yes
  description: "Default deny. If you see this in the logs, a rule is missing."

The logged default-deny is the feature most people skip and then regret. When something on your network stops working and you cannot work out why, the firewall log with entries like DROP SRC=203.0.113.42 DST=198.51.100.5 DPT=445 tells you in one line which rule is missing.

What broke

I locked myself out of my own servers three times while iterating on this pattern. They are worth telling.

Lockout one. I wrote an overly broad default-deny rule that matched my SSH session from the laptop to the hypervisor before I finished writing the allow rule that was meant to keep it open. The firewall committed the rule set, dropped my SSH connection, and refused to let me reconnect. I walked to the server with a monitor and a keyboard, loaded the previous configuration from the rollback menu, and tried again. OPNsense has a twenty-second automatic rollback built in for exactly this scenario: if you change the rules over a web session and the session cannot reach the server again within twenty seconds, the previous rule set is restored. I had disabled that feature “to be tidy”. Never disable the rollback.

Lockout two. I changed the LAN subnet from 192.0.2.0/24 to 198.51.100.0/24 to make the VLAN plan consistent, and forgot that the static DHCP reservation for my laptop still pointed to the old subnet. The laptop came up with no address, could not reach the router, and could not download the new configuration. The fix was a ten-minute walk to plug a laptop directly into the router’s console port. I now keep a backup rule that allows an emergency laptop-to-router connection on a physically separate cable, which has rescued me twice since.

Lockout three. The subtlest. I wrote a rule that allowed the management VLAN to reach every service, but I forgot that the firewall itself lives on the management VLAN, and a mistyped subnet mask turned the “reach every service” rule into “match nothing”. Everything inside the house could talk to itself except the firewall, which is to say: everything that did not need the internet was fine, everything that did was broken. I spent an hour convinced my internet provider was having an outage.

Each lockout cost an evening, and each one taught a specific lesson. The lessons collectively became the rule template above. Writing down what you nearly lost is the cheapest form of training.

A short, honest appraisal of Zero Trust at home

The name is overbuilt for a domestic network. Nobody inside my house is running a targeted penetration test against my fileserver. The threat profile is overwhelmingly opportunistic: an internet-facing service with a known CVE, a smart device that gets recruited into a botnet, a laptop that runs a browser that runs an ad that runs a compromised script. All of those failures have one thing in common: they assume the compromised device can freely reach the rest of the network. Zero Trust removes that assumption, and in doing so it takes a large class of opportunistic failures off the table.

That is the honest claim. Not “your house is now unhackable”. Just “a single compromise no longer becomes a household compromise”. The guard at every door is not stopping a determined adversary. The guard is stopping drift.

The discipline is cumulative. Each rule you write, each lockout you recover from, each log entry you read during a real outage accrues into a posture that is quieter and more resilient than the one before. By the end of the second month of iteration, my network had maybe forty rules, a handful of named aliases, and a pattern I could teach to someone else in an afternoon. Nothing about it was exotic. It was just a small hotel with working locks.

Footnotes

  1. Rose, S., Borchert, O., Mitchell, S., & Connelly, S. (2020). Zero Trust Architecture. NIST Special Publication 800-207. National Institute of Standards and Technology. Available at nvlpubs.nist.gov. ↩

Table of Contents