Homelabs, am I right?

You might have heard that homelabbing is mostly about the gear. Honestly, for me that’s a big part of it. I love hunting for deals on refurbished and frankensteining a server together out of random parts from TechMikeNY until it finally posts.

What keeps me hooked is everything after it posts. With a like I can install something, screw it up, blow it away, and start over as many times as I want. I get to bash my head against the IT wall and solve hard problems for fun.

It also runs stuff my family uses every day. I self-host audiobooks so I can listen on my commute to books I own, , on hardware I control. I run Plex so I can tell my kids “go check the server” when they want a new movie, and they have some idea that their dad made that possible. My dad is a long-haul truck driver, and he calls me every time the server goes down. We bond over the books we read together.

I have a and custom and a because I like having control of my network. I keep off my services . I block ads and trackers at the DNS level. I have not seen an ad on my phone in years.

It’s also where I practice what I preach. I segment my own house with VLANs and keep a for it, because that’s the stuff I love doing. This website runs on the lab too, contact form and mail handling included.

The DNS story

Once upon a time I ran as my recursive resolver. One morning, DNS died across the whole house. I wish I could tell you exactly what broke. My best guess is a config change from the night before that looked fine, and everything limped along on cached answers until the ran out.

Of course, this was the morning of an interview with a company.

I spent a few hours tracing the resolution path, restarting things, and checking upstream connectivity until the house was back online, and I still made the interview on time. The interviewer asked how my day was going, and I said “DNS issues. It’s always DNS issues.” He laughed, and we spent the rest of the hour walking through what had broken and what I’d done to triage and fix it. He didn’t ask a single question outside of that conversation.

I got the job. It was platform engineering, and I spent a couple of years getting paid to troubleshoot computers, scripts, automation frameworks, cloud tenants, and . Not A+ material, either. More than once it went deep enough that I ended up on calls with the team or an because I’d found a legitimate bug, and sometimes that meant kernel-level troubleshooting. I loved it. I’m still amazed at what I can do with a computer and some time.

What the lab does

If I had to write the lab a job description, it’d look something like this:

  1. Run the household stuff so well that nobody thinks about it.
  2. Give experiments somewhere to live without taking down the household stuff.
  3. Publish a few services to the internet through one front door.
  4. Keep a way in for repairs, even when the network itself is broken.
  5. Leave behind diagrams and that another engineer could actually follow.

Trust zones and management access

Before I care about or switch ports, I draw . Where does trust change, and how do I get in to fix things when it all goes sideways? The rules come out of that drawing later.

Trust boundaries and data flows

Dashed borders are trust boundaries, and every zone inside the house is its own VLAN. The internet only reaches the proxy, and my way in for repairs doesn't route through the firewall VM.

Trust boundaries and data flows

Drag to pan, scroll or pinch to zoom, or use the controls.

Dashed borders are trust boundaries, and every zone inside the house is its own VLAN. The internet only reaches the proxy, and my way in for repairs doesn't route through the firewall VM.

Each dashed border is a trust boundary, and anything crossing one needs a rule I can point to. Scanners live in that internet box because the internet already knows more about your lab than you’d think. and public records hand out service names to anyone who asks. If routing breaks, my way back in is a crash cart plugged straight into the server’s management port, so it never depends on the firewall VM.

Routing through Proxmox

The lab didn’t start here. My first router was a dedicated box with a dual-port 10 Gbps NIC, one port for and the other for . It worked great, and I loved that it kept routing separate from everything else. I loved it right up until it died.

And it died really, really slowly. Over a few months the connection started flapping, dropping out for a moment here and there in a way that was almost impossible to notice. I chased it through cables, switch ports, and driver settings before figuring out that one of the two ports on the NIC itself was failing. Replacing a fancy dual-port 10 Gbps card wasn’t going to be cheap, so I called the experiment done. I regretfully retired the pfSense box and went back to my regular old Google Nest WiFi router for a while, and noodled on building a new router or buying a “real” one.

In the end I didn’t replace the card. I moved routing into the hypervisor. runs as a on , and the physical network comes down to a single over a different 10 Gbps link on the main server. Every rides that trunk, and the firewall VM routes between them.

The catch is that routing now depends on the hypervisor. If Proxmox is down, the whole house loses internet, which I got reminded of after a recent power outage. Fixing that properly means more hardware than I can justify right now. Until then, recovery depends on a that doesn’t run through the routing VM.

Documenting firewall rules

A (PPSM) matrix sounds a lot fancier than it is. It’s a table of every network path you allow and the reason it exists. Firewall GUIs are great at showing you what a rule does and pretty bad at telling you why somebody added it.

Here’s an example, with roles in place of real addresses:

Source role Destination role Protocol Port Purpose Review trigger
Internet Public edge TCP 80, 443 Publish selected web services and renew certificates Any new public DNS name
Public edge Service app TCP App port Send approved requests to the service New app, new service path, or changed authentication model
Admin workstation Management plane TCP , admin UI Maintain hypervisor, firewall, and switch New admin user or new management host
Service zone DNS resolver UDP/TCP 53 Resolve internal and external names Resolver change or new zone
Service zone Internet TCP 443 Package updates, APIs, and outbound integrations New vendor dependency
Household devices Media service TCP Media app port Local playback and casting support New media platform or new device class
IoT devices Management controller TCP Controller ports Device adoption and status checks New controller or wireless redesign

A working matrix would have actual interfaces, addresses, and firewall rule IDs.

The review trigger column is my favorite. It’s a note to future me about when a rule deserves another look, like the day I add a new public DNS name.

Here’s a blank row if you want to try this on your own lab:

Source role Destination role Protocol Port Purpose Review trigger
(your zone) (target zone) TCP/UDP (port) (why this traffic exists) (what change would make you revisit this rule)

Now look at that first row again. Ports 80 and 443 from the internet to the public edge are the only inbound traffic my firewall forwards, and both go straight to the reverse proxy. Everything else inbound gets denied by default. Every web app I publish shares that one listener, so adding a new means adding a proxy route, and the firewall doesn’t change at all.

That keeps the firewall simple, and it makes vulnerability management a lot less scary. There’s one proxy facing the internet that I can deliberately harden, though the apps behind it still need their updates. Stuff that doesn’t speak HTTP, like a Minecraft server, needs its own plan, and management interfaces stay on private access paths.

Publishing web services

My favorite thing about a reverse proxy is how little it asks of the rest of the network. One wildcard DNS record points every subdomain at my public IP, and every request lands on the same service. The proxy terminates with free Let’s Encrypt certificates. The certificate’s field tells clients which hostnames it covers, and the proxy’s routing config decides which service each hostname and path goes to.

Forwarding a port for every app is how most of us start, and it’s the first habit I’d tell a new labber to break. Every gives the whole internet a direct line to that app, and the app’s own login page is the only thing standing in the way, if it’s lucky enough to have one. Keep forwarding and pretty soon you’ve got a dozen different apps and servers on your home network talking straight to the WAN. If those forwards live on the router your ISP gave you, you probably can’t even see who’s knocking, and you’re counting on your ISP to keep that router patched.

A reverse proxy shrinks all of that down to one or two ports that are easy to watch and log. It also lets you build a . Mine is a VLAN with only the proxy on it. The firewall forwards 80 and 443 there and nowhere else, and the proxy can only reach my internal network on the handful of ports the services behind it actually use. None of those services take a connection straight from the internet.

Public request through the edge

The proxy only answers for hostnames I've set up. Everything else gets the connection dropped, and fail2ban watches the logs for anyone who keeps trying.

Public request through the edge

Drag to pan, scroll or pinch to zoom, or use the controls.

The proxy only answers for hostnames I've set up. Everything else gets the connection dropped, and fail2ban watches the logs for anyone who keeps trying.

A while back I audited my own lab and found the reverse proxy happily routing public traffic to management interfaces, including the Proxmox login page. The certificates had put those hostnames in logs, and could turn up the rest.

Here’s what changed after that audit:

  • Management interfaces moved to internal-only access paths.
  • Public services rely on their own logins, where they have them.
  • The proxy only routes a short list of named services.
  • Edge logs show what crossed the boundary.
  • The PPSM got a review trigger for every new public DNS name.

Storage and backups

You may have heard of the 3-2-1 backup rule: three copies of your data, on two kinds of media, with one copy offsite. It’s the right call for a business, and honestly a good idea for a homelab or small office too. It’s also really, really expensive, and I don’t follow it.

Almost everything lives on one striped multi-disk pool with no redundancy and no separate backup. That’s the media, and it’s also the containers and most of the VMs that run the lab. If one drive dies, the whole pool goes with it. I did that on purpose. Hard drives are expensive, and most of the space goes to audiobooks and movies for my friends and family. Paw Patrol is really important to my six-year-old daughter, but it isn’t critical data. Every title can be re-ripped or re-downloaded.

I traded fault tolerance for more storage space. That’s the budget versus best practices, and reality getting in the way of perfect. If the whole thing ever dies, I’m rebuilding the lab from my notes and downloading everything again. As the owner of the lab, I’m willing to make that trade. It’s part of the game.

What I write down

I keep the diagrams, the PPSM, and my runbooks in a repo together, and when I change the design, I write down why. Mostly that’s for future me, who has a habit of staring at a firewall rule and wondering what past me was thinking.

Next up, I’ll walk through how this website actually works, from the build to the deploy, running on the same box that serves my daughter her Paw Patrol.


← All writing