Skip to content

Network Design

Physical Topology

graph TB
    subgraph WAN["WAN"]
        ISP["ISP Fibre ONT<br/>PPPoE"]
    end

    subgraph CORE["Core — Cabinet"]
        FW["OPNsense<br/>ZimaBoard 2<br/>Dual 2.5GbE"]
        SW16["USW-Lite-16-PoE<br/>Core Switch<br/>45W PoE Budget"]
    end

    subgraph SECONDARY["Secondary"]
        SW8["USW-Lite-8-PoE<br/>52W PoE Budget"]
        FLEX["USW-Flex-2.5G-5<br/>USB-C Powered"]
    end

    subgraph COMPUTE["Compute — 3-Node Proxmox Cluster"]
        PVE1["pve1 — HP EliteDesk 800 G3<br/>i7-6700T · 32GB"]
        PVE2["pve2 — HP EliteDesk 800 G3<br/>i7-6700T · 32GB"]
        PVE3["pve3 — HP EliteDesk 800 G3<br/>i7-7700 · 32GB"]
    end

    subgraph STORAGE["Storage"]
        NAS["TrueNAS CE — ZimaBoard 2<br/>ZFS mirror · 2× 6TB"]
    end

    subgraph WIRELESS["Wireless"]
        AP1["NanoHD 1<br/>Downstairs<br/>PoE Powered"]
        AP2["NanoHD 2<br/>Upstairs<br/>PoE Powered"]
    end

    subgraph CAMERAS["Cameras"]
        CAM1["Reolink RLC-510A ×3"]
        BELL["PoE Doorbell"]
    end

    ISP -->|"PPPoE"| FW
    FW -->|"Trunk · All VLANs"| SW16
    SW16 -->|"Trunk"| SW8
    SW16 --> FLEX
    SW16 --> PVE1
    SW16 --> PVE2
    SW16 --> PVE3
    SW16 --> NAS
    SW16 -->|"PoE+"| AP1
    SW16 -->|"PoE+"| AP2
    SW8 -->|"PoE+"| CAM1
    SW8 -->|"PoE+"| BELL

Subnet Design

The VLAN ID matches the third octet of each subnet. This was the single best design decision in the whole project — see Lessons Learned for why.

VLAN Name Subnet Gateway DHCP Range Purpose
10 Management 10.0.10.0/24 .1 .200-.250 Infrastructure only
20 Trusted 10.0.20.0/24 .1 .100-.250 Personal devices
30 IoT 10.0.30.0/24 .1 .100-.250 Cameras, smart devices
50 Guest 10.0.50.0/24 .1 .100-.250 Visitor Wi-Fi
60 WireGuard 10.0.60.0/24 .1 — VPN tunnel interface

IP assignments: Specific host IPs are not published in this repo. All infrastructure devices use DHCP reservations keyed by MAC address, managed centrally in OPNsense.

DNS

Unbound on OPNsense acts as the recursive DNS resolver for all VLANs:

  • Upstream: DNS-over-TLS to Quad9 (encrypted, no-logging)
  • DNSSEC: Enabled — validates DNS responses cryptographically
  • Local zone: goozlab.net — every service name (<service>.goozlab.net) is a host override pointing at Caddy on the firewall
  • DHCP clients: register under lan.goozlab.net, so device hostnames can never collide with service names
  • Blocklists: AdGuard, Hagezi, OISD, and Steven Black lists for network-wide ad/tracker blocking
  • DNS redirect rules: Force all clients to use the local resolver (prevents devices using hardcoded DNS like 8.8.8.8)

Switching Infrastructure

USW-Lite-16-PoE — Core Switch

The backbone of the network. All infrastructure connects here:

  • Uplink to OPNsense: Trunk port carrying all VLANs tagged
  • Proxmox nodes: Trunk ports with native Management VLAN, all service VLANs tagged
  • NAS: Access port on Management VLAN
  • Access points: PoE+ ports with trunk profiles (all WiFi VLANs tagged)
  • Downlink to secondary switch: Trunk port

PoE budget consideration: The 16-port has a 45W total PoE budget. Two NanoHDs draw ~21W combined, leaving ~24W. Plan carefully if adding PoE cameras here — the 8-port switch (52W budget) is better suited for camera duty.

USW-Lite-8-PoE — Camera/Endpoint Switch

Dedicated to PoE cameras and endpoints that don't need trunk ports. 52W PoE budget is better suited for camera loads. All four cameras (3× RLC-510A + PoE doorbell) are connected here on IoT VLAN ports.

USW-Flex-2.5G-5

Originally PoE-powered from the 8-port switch, but this caused intermittent connectivity issues because the Flex needs 802.3bt PoE++ and the 8-port only provides 802.3at PoE+. Now powered via USB-C.

Used for high-bandwidth connections where 2.5GbE matters (connecting to the ZimaBoard 2's 2.5GbE ports, for example).

Wireless

Two UniFi NanoHD Access Points

Both APs are adopted into UniFi OS Server (running as a VM on Proxmox). They broadcast the same SSIDs and handle roaming automatically. All UniFi switches and APs have their management addresses on the Management VLAN, reserved by MAC on the firewall.

SSID-to-VLAN mapping:

SSID VLAN Purpose
GoozLab 20 (Trusted) Personal devices
GoozLab-IoT 30 (IoT) Smart home, cameras on WiFi
GoozLab-Guest 50 (Guest) Visitors — internet only

All SSIDs use WPA2. The AP trunk ports carry all three VLANs tagged.

Remote Access

WireGuard VPN on OPNsense with Cloudflare DDNS for the public endpoint. No services are exposed to the internet — everything is accessed through the tunnel.

The VPN lands on VLAN 60 with firewall rules allowing access to the Management VLAN. The only inbound rule on WAN is the WireGuard UDP port.

Reverse Proxy

Caddy runs as an OPNsense plugin, providing automatic HTTPS via Let's Encrypt with Cloudflare DNS-01 challenge. Over 20 services are accessible at *.goozlab.net — each with its own full domain — and an access list only lets in the Trusted, Management and WireGuard networks. See Caddy.