Projects

Homelab cluster

A single media server turned into a three-node Proxmox cluster: for media, monitoring and backups, and for a pentest lab that is separated from the rest of the network.

Role
Concept and implementation, solo
Timeframe
October 2026, ongoing
Hardware
3 × Dell OptiPlex 3050 Micro (i3)
Scope
around 25 services

Starting point

Until now, everything ran on a single mini server: a media server and a Docker stack that had grown over time. One device, no redundancy and no separation between what needs to run reliably and what I want to experiment with.

The goal: migrate the existing environment cleanly instead of rebuilding it, and set up a pentest lab alongside it that is separated from the rest of the network. On top of that: backups, monitoring, HTTPS for every internal service and the lowest possible power draw, since the cluster runs around the clock.

The initial build took seven days. Since then, I have been extending the cluster continuously.

Hardware

Three compact office PCs with Intel i3 CPUs. Their specs differ, so I assigned workloads by available resources rather than evenly.

NodeRAMStorageRole
Node 116 GBNVMe and SATAMedia, reverse proxy, DNS
Node 216 GBNVMe and SATAFirewall VM and pentest lab
Node 38 GBSATA SSDBackup server and monitoring

Architecture

The central question was which systems are allowed to talk to each other.

Network layout of the homelab cluster The internet, below it the ISP router and behind that a dedicated router, so traffic passes two NAT stages. Behind it the cluster network with three Proxmox nodes. On node 2, the pentest lab sits on a bridge without a physical uplink. The only way out leads through the OPNsense firewall to the internet. Traffic from the lab to the cluster network is blocked. Internet ISP router NAT, stage 1 Own router NAT, stage 2 Cluster network Node 1 Proxmox VE MediaReverse proxyDNS and ad blocking Node 3 Proxmox VE Backup serverMonitoring Node 2 Proxmox VE OPNsense firewall Pentest lab Bridge without uplink internet only Network layout of the homelab cluster Internet ISP router NAT, stage 1 Own router NAT, stage 2 Cluster network Node 1 Proxmox VE MediaReverse proxyDNS and ad blocking Node 3 Proxmox VE Backup serverMonitoring Node 2 Proxmox VE OPNsense firewall Pentest lab Bridge without uplink internet only
allowed blocked: all private address ranges lab bridge without a physical uplink

A dedicated network for the cluster

The cluster sits in its own subnet behind its own router. The router separates the cluster network from the rest of the home network at layer 3 and handles NAT towards the outside. Household devices and servers therefore share neither a broadcast domain nor an address range.

The lab: a bridge without an uplink

Node 2 has an additional Linux bridge that is not bound to any physical network interface. Anything attached to it is isolated from everything else at layer 2. The only way out leads through an OPNsense VM with two interfaces: one in the lab, one in the cluster network.

The rules there are simple: traffic to the internet is allowed, traffic to private address ranges as defined in RFC 1918 is dropped. This way, the lab reaches neither the cluster nor the home network, even if something inside it is compromised.

I verified this from the Kali VM: a public DNS resolver is reachable, addresses in the cluster network are not.

Names instead of addresses: DNS and reverse proxy

An internal DNS resolver (AdGuard Home) filters ads and tracking network-wide. Using a wildcard record, it also answers every subdomain of the internal domain with the address of the reverse proxy. The proxy (Nginx Proxy Manager) terminates TLS and forwards requests to the right container based on the hostname. New services therefore only need a proxy entry, not a DNS entry.

The certificate comes from Let’s Encrypt via the ACME DNS-01 challenge: the proxy sets a TXT record through the DNS provider’s API, and Let’s Encrypt verifies it. No port has to be reachable from the internet for this. And because it is a wildcard certificate, no individual service names appear in the public Certificate Transparency logs.

Containers instead of one VM per service

Services run as Docker inside unprivileged LXC containers with nesting enabled. Unprivileged means that root inside the container is mapped to an ordinary host user via a user namespace. On i3 hardware, this saves a lot of RAM and CPU compared with one VM per service. VMs are only used where a separate kernel is required, such as for the firewall.

Remote access: Tailscale and WireGuard

I can reach the home network on the move in two ways. Tailscale, a mesh VPN based on WireGuard, establishes connections from the inside out and needs no port forwarding. In addition, my own WireGuard server (wg-easy) runs in a container. WireGuard is implemented directly in the Linux kernel, needs very few resources and sends the devices’ DNS queries to AdGuard Home even when I’m away, so filtering and internal names work everywhere.

This requires a single UDP port, forwarded through both NAT stages. It is a deliberate trade-off: WireGuard silently drops packets without a valid key, so to a port scan the port looks closed. No internal service is directly exposed to the internet.

Further decisions

Power consumption, deliberately reduced

C-states enabled, powersave governor, powertop tuning, Wi-Fi and Bluetooth disabled. Result: the CPUs spend 92 to 96 percent of their time in the deep C8 power-saving state.

Backups from day one

A Proxmox Backup Server backs up all containers incrementally with deduplication. Large data directories are deliberately excluded from the jobs to keep backups lean and fast.

Problem log

Issues that came up during the build, each with its cause and fix. These taught me the most.

  1. Hardware

    Black screen after a BIOS change

    Symptom
    After disabling the legacy option ROMs, there was no display output and no way back into the BIOS.
    Cause
    The setting left the firmware in a state without video output.
    Fix
    Reset the CMOS using the jumper on the mainboard, without removing the coin cell.
  2. Network

    Hosts could not resolve names

    Symptom
    Package updates and downloads failed on the Proxmox hosts.
    Cause
    resolv.conf pointed to an unreachable DNS resolver.
    Fix
    Set the gateway as nameserver and additionally configured the containers with pct set --nameserver.
  3. Containers

    A service could not find any files

    Symptom
    A media service reported that there was nothing to import, even though the files were there.
    Cause
    The container was missing the volume mount for the directory. It simply couldn’t see it.
    Fix
    Added the volume to the Compose file. The import worked afterwards.
  4. Monitoring

    Healthy SSDs reported as failing

    Symptom
    Disk monitoring showed “Failed” on drives that smartctl reported as healthy.
    Cause
    Collector and server were running different versions, combined with overly strict scoring.
    Fix
    Pinned both components to the same version and limited scoring to critical SMART attributes.
  5. Network

    VPN in an unprivileged container

    Symptom
    The VPN container could not create a tunnel interface.
    Cause
    By default, an unprivileged LXC container has no access to /dev/net/tun.
    Fix
    Passed the TUN device through to the container specifically, instead of running it privileged.

Troubleshooting: WireGuard remote access

After setting up my own WireGuard server, the iPhone could not complete a handshake. I narrowed down the fault step by step, from the server through the network path to the client.

Status: resolved and in production.

Approach

  1. Checked the WireGuard server. The container, the Docker port mapping and the peer’s AllowedIPs were all correct.
  2. Traced the network path. Double NAT: internet → ISP router → cluster router → container. Both port forwards were in place.
  3. Ruled out other causes. No CGNAT (public IP on the line), no DNS or IPv6 issue with the endpoint (tested with the IP directly), Proxmox firewall disabled, no duplicate IP (MAC comparison), the router’s own VPN server not active.
  4. Tested the server in isolation. Sent UDP packets to the WireGuard port with nc from a Proxmox host. A capture in the container showed them arriving, so the server was fine.
  5. Found the actual problem. The iPhone was not sending any packets at all. Earlier tests against private addresses over mobile data had also been meaningless, since those addresses are never reachable from the mobile network.

Causes and fixes

  1. Client

    No handshake

    Symptom
    The iPhone never established a connection to the server.
    Cause
    Persistent keepalive was set to 0, so the client did not establish the connection reliably.
    Fix
    Set persistent keepalive to 25 seconds.
  2. DNS

    Internal services unreachable through the tunnel

    Symptom
    With the tunnel up, internal hostnames did not resolve.
    Cause
    The tunnel used a public DNS resolver (1.1.1.1), which does not know the internal subdomains.
    Fix
    Switched the tunnel’s DNS to AdGuard Home in the cluster.

What I take away from it

tcpdump makes it possible to narrow down systematically where packets get lost. Tests have to match the network: private addresses are not reachable over mobile data, so such tests prove nothing. And in the end, the cause was not in the network chain but in the client configuration.

What stuck with me

The biggest gain was not the finished infrastructure but routine in narrowing down problems: read the logs, form a hypothesis, change exactly one thing, verify. Network segmentation, firewall rules and container permissions no longer feel theoretical.

  • Proxmox and clustering
  • LXC and KVM
  • Docker and Compose
  • Linux administration
  • Network segmentation
  • Firewalling with OPNsense
  • DNS and reverse proxy
  • TLS and ACME
  • VPN
  • Monitoring
  • Systematic debugging

Next steps

  • Central storage. A NAS as a shared data store instead of local disks on each node.
  • Email on my own domain. Set up routing via Cloudflare.
  • More pentest practice. The lab is the real reason behind the cluster.

Specific addresses, hostnames, domains and software versions are deliberately omitted from this page.