themagicalforest.net
Home Lab Infrastructure
THQlab Node
Docker Desktop & WSL2 Ubuntu host running Nginx Proxy Manager (80/443 ingress), Pi-hole DNS ad-blocking, and dedicated gaming containers.
THAIA Rig (Main Workstation)
Host running central Portainer UI and environment agents across private Twingate overlays.
TheOnePump Node
Entertainment & media node linked into Twingate zero-trust remote access overlay network.
Ingress & DNS Layer
Cloudflare DNS edge integration with Let's Encrypt wildcard SSL via Let's Encrypt DNS-01 verification challenges.
Network Architecture & Traffic Flow
flowchart TD
%% Ingress & Edge Layer
SubGraph1[Remote / Mobile Traffic]
Internet([Public Internet]) -->|DNS Resolution| CF[Cloudflare Edge DNS]
%% Home Lab Subgraph
subgraph HomeLab ["Home Lab Infrastructure"]
direction TB
Router[Netgear Orbi Mesh Router]
Pihole[Pi-hole DNS Sinkhole]
NPM[Nginx Proxy Manager Ingress]
PortainerUI[Portainer UI @ THAIA]
PiholeUI[Pi-hole Admin Web UI]
GamingServer[Server Container @ THQlab]
Router --> Pihole
Router --> NPM
Router -->|Direct UDP Game Ports| GamingServer
NPM -->|HTTP/443 Wildcard SSL| PortainerUI
NPM -->|Internal Forward| PiholeUI
end
%% External Connections
SubGraph1 -->|Twingate VPN Tunnel| Router
CF -.->|HTTPS / API Challenge| NPM
Project Case Study: Zero-Trust Remote Ingress & DNS Sinkholing
Problem Statement
Exposing home lab management web UIs (Portainer, Pi-hole) and custom game server instances directly to the public internet via port forwarding creates security vulnerabilities and exposes home IP addresses to scanning.
Solution & Implementation
Architected a hybrid ingress model combining Cloudflare API DNS-01 challenge automation in Nginx Proxy Manager for wildcard SSL termination, combined with a network-wide Pi-hole DNS sinkhole and a Twingate zero-trust software overlay across all primary lab machines (THQlab, THAIA, TheOnePump).
Key Technical Takeaways
- Eliminated exposed administration ports to the outside internet.
- Automated trusted SSL certificate provisioning without open HTTP/80 validation ports.
- Achieved network-wide ad and domain filtering across both desktop and mobile clients.
Infrastructure Code Snippets
Nginx Proxy Manager Stack (Portainer Compose)
version: '3.8'
services:
app:
image: 'jc21/nginx-proxy-manager:latest'
container_name: nginx-proxy-manager
restart: unless-stopped
ports:
- '80:80' # HTTP Ingress
- '81:81' # Management Web UI
- '443:443' # HTTPS Ingress
volumes:
- npm_data:/data
- npm_letsencrypt:/etc/letsencrypt
volumes:
npm_data:
npm_letsencrypt:
Cloudflare DNS Challenge Credentials Verification
# Test Cloudflare Scoped API Token for DNS-01 SSL Automated Issuance
curl -X GET "https://api.cloudflare.com/client/v4/user/tokens/verify" \
-H "Authorization: Bearer YOUR_CLOUDFLARE_API_TOKEN" \
-H "Content-Type: application/json"
Systems & Home Lab Infrastructure
Self-Hosted Password Vault (Vaultwarden)
Deployed a lightweight, open-source Bitwarden implementation via Docker on THQlab. Integrated with Nginx Proxy Manager for HTTPS encryption and reverse proxying.
- Stack: Docker, Vaultwarden, Nginx Proxy Manager, Cloudflare DNS
- Features: End-to-end encrypted password vault, 2FA/TOTP management, and secure browser/mobile synchronization.
Self-Hosted Remote Desktop Relay (RustDesk)
Configured a private RustDesk relay server inside Docker to handle secure, low-latency remote desktop access across endpoints.
- Stack: Docker, RustDesk Server, Twingate Zero Trust Network
- Features: Peer-to-peer encrypted remote sessions without relying on third-party cloud relays or exposing open ports.