My Homelab
My home lab: a MikroTik gateway, a Catalyst 3560-CX that does the routing, and one Proxmox host that runs everything else.
Hardware
| Part | Hardware | Software |
|---|---|---|
| Gateway | MikroTik hAP ax² | RouterOS 7.19 |
| Core switch | Cisco Catalyst WS-C3560CX-8PC-S | IOS 15.2(4)E8 |
| Server | One host, 20 cores, 64 GB RAM | Proxmox VE 9.1 |
It all sits behind a house Wi-Fi network that I don't control. The MikroTik connects to it as a client, so no cable leaves the lab. I know the upstream bandwidth sucks sometimes, which is why I'm practising Wi-Fi. Eleven servers on one wireless link is still scary.
Network
| VLAN | Name | Holds |
|---|---|---|
| 10 | Core | Switch management and the hypervisor |
| 20 | Users | The lab Wi-Fi, my laptop and my desktop |
| 30 | Servers | Every service: DNS, proxy, monitoring, IPAM, Git |
| 40 | Labs | EVE-NG and Cisco CML, powered off until I need them |
I started with router-on-a-stick, like in my inter-VLAN routing lab. Anything going between VLANs had to go up to the MikroTik and back down the same cable, so I moved the routing to the Catalyst with an SVI per VLAN. The MikroTik now only does the uplink, NAT and the lab Wi-Fi. The Catalyst runs DHCP too and gives every client the same DNS server.
I can't forward a port through Wi-Fi I don't control, so remote access is Tailscale. One small container is the subnet router, and my laptop and phone come in through that. Nothing is open on the gateway.
What runs on it
One Proxmox host runs eleven guests.
| Guest | Type | VLAN | Job |
|---|---|---|---|
| AdGuard Home | Container | 30 | DNS for the whole lab |
| Nginx Proxy Manager | Container | 30 | HTTPS reverse proxy |
| Prometheus and Grafana | Container | 30 | Monitoring |
| NetBox | Container | 30 | IPAM and inventory |
| Tailscale subnet router | Container | 30 | Remote access |
| CouchDB | Container | 30 | Sync database |
| GitLab CE | VM | 30 | Git for lab configs |
| Development workspace | VM | 30 | Where this site is built |
| Application host | VM | 30 | Docker host, MileWage server |
| EVE-NG | VM | 40 | Network lab server |
| Cisco CML | VM | 40 | Network lab server |
I set up AdGuard Home and Nginx Proxy Manager first because everything else depends on them. AdGuard gives each service a name, and the proxy puts HTTPS in front of the web interfaces with a certificate from my own root CA. The application host runs the server side of MileWage. EVE-NG and CML stay off until I'm working on a lab.
Prometheus pings every device and checks every web service, and NetBox has the inventory. The diagram at the top is drawn with Marrow. My own copy is generated from the monitoring data, and this one has the addresses and host names taken out.
What went wrong
My dev workspace and all the app containers used to share one VM, and it kept running out of memory. The containers have their own VM now.
I had backups on seven-day retention while one VM was writing about 110 GB a day. The backup disk got to 98% full. I cut retention to three days and got 526 GB back.
The hAP ax² has no battery for its clock, so it kept losing the time. It gets it from NTP now.
Comments