Built to keep working when parts of it don't.
Home Lab
My home network is a small version of how I think about platforms: decide what has to stay up, then arrange everything else so it can fail without taking that down with it. This page is the map and the reasoning behind it.
- The router connects the house to the internet and splits it into three networks.
- The default network is plain on purpose, with no Pi-hole and no extras.
- The router hands out Pi-hole as DNS on the Pi-hole network, which is where my devices live.
- The Pi-hole network holds the Pi running Pi-hole and WireGuard, Home Assistant on its own Pi, the Proxmox server, and the office gear (desktop, PiKVM, UPS).
- Proxmox runs a storage-heavy VM with Caddy in front, an isolated VM for a side project, and Uptime Kuma in its own container so it still alerts if a VM dies.
- A second isolated VM is a sandbox for AI coding agents; it can reach DNS and the one project it deploys to, and nothing else.
- The Proxmox server backs up locally every night and copies the important parts off-site.
- The IoT network's devices can talk to Home Assistant and DNS and nothing else.
- The ESP32 garage sensor (door and car) is the one Wi-Fi device on the IoT network.
- When my phone leaves home Wi-Fi, a WireGuard tunnel turns on and reaches the Pi-hole network.
The decisions behind it
One network that is boring on purpose.
The default network has no Pi-hole and no tricks. I sometimes work from home, so if everything else breaks, as long as the internet reaches the house I can still get online from here.
Pi-hole is the default, not a dependency.
The network I actually live on uses Pi-hole for DNS. The router hands it out as the only DNS server, so every device on that network uses it without being asked. It is less reliable than public DNS, mostly because of my hardware, which is exactly why the fallback network above exists. The router also blocks encrypted DNS and Google’s public resolver, so devices do not quietly go around it.
Smart devices get a short leash.
IoT devices live on their own network. They can reach Home Assistant, which runs on a dedicated Pi, and DNS, and nothing else, including the wider internet. The idea is that a cheap sensor going bad can only reach so far.
AI agents get a short leash too.
I let AI coding agents work with broad permissions, but only inside a VM that can barely see the network. The firewall lets it reach DNS and the one project it deploys to, and the proxy turns it away from everything else. The agent gets freedom; the blast radius stays small.
Z-Wave first, Zigbee second, Wi-Fi last.
I avoid Wi-Fi for devices unless there is no alternative. The one exception right now is an ESP32 board with an ultrasonic sensor in the garage that tells me whether the door is open and whether the car is home. Where I can, things are wired: the house was wired for phone lines using full Cat 5e cable, so I re-terminated the runs I wanted as Ethernet.
HTTPS for everything, with nothing opened up for it.
Internal services use a wildcard certificate from Let’s Encrypt, issued by proving domain ownership through DNS. Pi-hole sends every internal name to Caddy on the server, which routes it to the right service. No ports have to be opened to get a valid certificate. File shares get the same treatment: the server’s SMB shares refuse any connection that isn’t encrypted, so nothing else on the network can read a file on its way to my desktop. They still read at about 100 MB/s.
Monitoring that does not live on the thing it watches.
Uptime Kuma runs in its own container on the Proxmox host, not inside the VMs it checks, so it still raises the alarm when a VM dies. Alerts come by email and as push notifications through Home Assistant. One dashboard shows the health of everything on the server at a glance.
Updates that check before they act.
A weekly job updates the stack, and it refuses to run unless that day’s backup exists. It also looks for new major versions of the important pieces and reports them as a failing check in Uptime Kuma, because major upgrades are something I want to do on purpose.
A way in when I am not there.
The server has a baseboard management controller, and the office has a PiKVM that only answers on the local network. Between them I can see a console and power-cycle the machine without standing in the garage.
Leaving home turns the VPN on.
On my phone, Tasker watches for me leaving the home Wi-Fi and switches on a WireGuard tunnel by itself. It is a split tunnel: anything on my home network and my DNS go through the tunnel to the Pi, and everything else goes out over the regular internet. I never have to think about it. Away from home, the phone still gets Pi-hole and can still reach the house.
Reaching my desktop without opening a door.
From my phone I can start work sessions on my desktop at home. Nothing on my router is opened for it. A small service on the server keeps an outbound tunnel to Cloudflare, and Cloudflare Access sits in front: only my Google account gets through, and the login lasts an hour. The server only passes along short-lived requests, which expire after a minute, and a helper on the desktop picks them up. If the tunnel drops, Uptime Kuma tells me; checking the public page wouldn’t, because the login screen answers either way.
Things that went wrong
The ISP changed my IP, and my own security setting blocked the fix.
One day my public sites started timing out at Cloudflare while everything at home looked healthy. The cause was boring: my ISP had given the house a new IP address, and the DNS records still pointed at the old one. The fix should have been a one-minute API call, except I had locked the DNS token to my home IP for safety, so the token refused to work from the new address. I had protected the records from the one situation where they needed to change. Now a small job checks the public address every five minutes and updates the records itself, and Uptime Kuma alerts me if it stops running. The tunnel-based launcher kept working through all of it, because it connects out instead of waiting for traffic to come in.
I locked myself out.
I was away from home and changed something about a VLAN. That moved the Pi running Pi-hole and WireGuard onto a different network. Router address reservations are per network, so it got a new address and my way back in broke. A coworker stopped by my house after work and fixed it. I now keep a safer fallback way back in, and I think harder before touching network settings from the road.
Phones do not like being told what DNS to use.
Phones and plenty of other devices try encrypted DNS and Google’s resolver to get around local filtering. At one point my phone decided the Wi-Fi had no internet because it could not reach its preferred resolver. The router now blocks those attempts so devices fall back to Pi-hole. It is a good reminder that if you control the network, you also own the weird client behavior.
The browser that tried HTTP/3 against my garage.
I had overridden one name locally so it pointed at the server, but the same name also existed on Cloudflare. Pi-hole answered the address, then kept forwarding Cloudflare’s HTTPS record, which told Chrome to try HTTP/3 with encrypted hello. That fails against a local server, so the page would not load. The fix was to answer the name completely at home and stop forwarding any of it.
The update job undid a config file.
The weekly update job recreated my reverse proxy without one of its config files, so it lost a network connection and one site went down. The job did exactly what I told it to; I’d told it the wrong thing. The update script now uses the same files I use by hand.
Edits that didn’t take effect.
I edited the proxy’s config, reloaded it, and it said nothing had changed. It was right: the file was mounted into the container as a single file, and my editor saved by writing a new file, so the container kept reading the old one. It was still serving a block I had deleted days earlier. Now I check what the container sees, not what’s on disk.
How it fails and how I get it back.
Paper goes into a scanner that drops files into a share; Paperless-ngx files them, and they’re part of the off-site backup.
App data is archived every night and pulled to a second disk on the server, then checked for integrity. The VMs also get a weekly snapshot. After that, the things I can’t download again (app data, scanned documents, the server’s own configuration, and the project VM) go off-site to Backblaze B2 with restic. Restic encrypts everything on the server before it uploads, so Backblaze only stores data it can’t read. I keep a week of dailies, a month of weeklies, and six months of monthlies, and it costs pennies a month because media isn’t in it on purpose.
A backup I have never restored is a guess, so a weekly job restores the latest copy and checks it. Every backup job reports to Uptime Kuma, so a missed upload is an alert, not a surprise months later.
Disk health is checked on a schedule, and anything off emails me. Alerts reach my phone through Home Assistant. If the server stops answering entirely, the management controller and the PiKVM are how I find out why.
The house side of this, Home Assistant and the devices, is on the Home Automation page.