Architecture Overview¶
GoozLab's architecture follows the layered approach recommended in Louis Rossmann's FUTO guide — build the network foundation first, then compute, then storage, then services on top.
Layers¶
1. Network Foundation¶
OPNsense on ZimaBoard 2 handles all routing, firewalling, DNS, VPN, and intrusion detection. This is the single most critical piece of infrastructure — everything else depends on it.
The ZimaBoard 2's dual 2.5GbE Intel NICs provide clean WAN/LAN separation without VLAN-on-a-stick. WAN connects to the ISP via PPPoE; LAN trunks all VLANs to the core switch.
Five VLANs segment the network by trust level. See VLAN Segmentation for the full design.
UniFi switching and wireless provides managed switching with 802.1Q VLAN trunking and enterprise wireless with per-SSID VLAN tagging. See Network Design for the physical topology.
2. Compute¶
Three-node Proxmox cluster on HP EliteDesk 800 G3 Mini PCs. Nodes 1 and 2 run i7-6700T (35W) with 32GB RAM each; Node 3 runs i7-7700 (65W) with 32GB RAM. All services run as LXC containers and VMs — lightweight, efficient, and fast to deploy. With three nodes, the cluster has proper quorum for unified management and can tolerate one node going down without losing cluster functionality.
3. Storage¶
TrueNAS CE on a ZimaBoard 2 with two 6TB Seagate IronWolf drives in an encrypted ZFS mirror. Provides NFS (for Proxmox and media) and SMB (for workstations), with snapshot retention ladders per dataset and an encrypted offsite copy. It replaced the original Raspberry Pi 5 + OpenMediaVault NAS. See the NAS Setup Guide and Backups.
4. Services¶
All services run as Docker containers inside Docker Host LXC containers on Proxmox, with the exception of Home Assistant which runs as a dedicated VM. Each logical service group gets its own LXC with Docker and docker-compose installed. This pattern keeps things isolated, reproducible, and easy to back up. See Docker Services for the deployment pattern.
Key services include Frigate NVR (4 PoE cameras with AI detection), Home Assistant with Zigbee2MQTT, Wazuh SOC, the monitoring stack, Immich, Vaultwarden, Syncthing, n8n, Jellyfin, and local AI (Ollama + Open WebUI). Caddy on the firewall gives every one of them an internal-only HTTPS name. See the Service Catalog.
5. Security¶
Defence in depth: OPNsense firewall rules as the first layer, Suricata IPS in Divert mode with a two-tier policy (drop high-confidence threats, alert on everything informational), CrowdSec for collaborative threat intelligence, Wazuh across every host, and VLAN segmentation to limit blast radius. See Security Hardening.
6. Monitoring¶
Prometheus scrapes metrics and Loki collects logs from all infrastructure, Grafana provides dashboards and alerting (pushed to phones via self-hosted ntfy), and Uptime Kuma watches the monitoring stack itself. A Homepage dashboard provides a quick overview of all services. See Monitoring.
Design Decisions¶
Why OPNsense over pfSense? Louis Rossmann's FUTO guide actually uses pfSense, but he explicitly recommends OPNsense for new users. The feature sets are nearly identical (both FreeBSD-based), and OPNsense has a more modern UI and more frequent updates.
Why Proxmox over bare-metal Docker? The FUTO guide runs Docker on bare metal, which is simpler. I chose Proxmox because it supports both LXC containers and VMs, provides a web UI for management, and enables clustering across three nodes. The overhead is minimal and the flexibility is worth it.
Why LXC containers over VMs for services? LXCs share the host kernel, so they use far less RAM and start instantly compared to full VMs. For Docker workloads that don't need their own kernel, LXC is the right choice. Home Assistant is the exception — it runs as a VM because HAOS requires its own kernel.
Why move the NAS from a Pi 5 to TrueNAS? The Pi 5 + SATA HAT worked, but RAID 5 on four small SSDs, an SD-card boot drive and a fussy power setup were the weakest links in the lab. A ZimaBoard 2 running TrueNAS gives ZFS (checksums, snapshots, native encryption, replication) on an x86 board that draws little power. See the NAS Setup Guide.
Why WireGuard over OpenVPN? The FUTO guide recommends self-hosted VPN (which I agree with), but uses OpenVPN. WireGuard is faster, simpler to configure, and has a smaller attack surface. OPNsense has native WireGuard support.
Why Caddy over Nginx? Caddy provides automatic HTTPS with zero configuration via Let's Encrypt and Cloudflare DNS-01 challenge. The OPNsense Caddy plugin makes it simple to manage. Nginx was replaced during the migration to simplify certificate management.