Skip to content

Firewall & Rules

The perimeter firewall for the irosec homelab is handled by the Dream Machine Pro. This page documents the zone matrix, firewall policies, and the reasoning behind key decisions.


Firewall Device

PropertyValue
DeviceUnifi Dream Machine Pro
ModeNAT + Stateful Firewall
Rule Count66 active policies
Protocol SupportIPv4 & IPv6

Zone Matrix

The Dream Machine Pro uses a zone-based firewall model. The matrix below shows the default policy between each zone pair:

Source → DestinationInternalExternalGatewayVPNHotspotDMZ
InternalAllow AllAllow AllAllow AllAllow AllAllow AllAllow All
ExternalAllow ReturnAllow ReturnAllow ReturnAllow ReturnAllow ReturnAllow Return
GatewayAllow AllAllow All-Allow AllAllow AllAllow All
VPNAllow AllAllow AllAllow AllAllow AllAllow AllAllow All
HotspotAllow ReturnAllow AllAllow ReturnAllow ReturnBlock AllBlock All
DMZAllow ReturnAllow AllAllow ReturnAllow ReturnBlock AllBlock All

Key observations:

  • External traffic can only return existing sessions - no unsolicited inbound connections
  • Hotspot and DMZ zones are isolated from each other and cannot initiate connections to Internal
  • VPN clients have full network access once authenticated

VLAN Layout

NameVLAN IDSubnetZone
Server Network - JARVIS110.10.1.0/24Internal
Guest Network210.10.2.0/24Hotspot
IoT Devices310.10.3.0/24Internal
Main Network - FRIDAY410.10.4.0/24Internal

Firewall Rules

The full ruleset is not published. The structure, from top to bottom, is:

GroupPurpose
IPv6 housekeepingICMPv6 neighbour discovery between External and Gateway, required for IPv6 to function
Inbound port forwardsThe three externally reachable services (Plex, reverse proxy, WireGuard) forwarded to their internal hosts
Return trafficStateful allow for established sessions
Local service discoverymDNS between Internal and Gateway
Block invalid trafficDrops malformed or spoofed packets before any allow rule is evaluated
Default denyCatches anything not explicitly allowed above

Key Decisions & Reasoning

WireGuard VPN is exposed externally to allow secure remote access to the homelab without exposing individual services directly. This is preferable to opening multiple ports per service.

Plex and Nginx Proxy Manager are the only application-level services with direct port forwards. All other services are accessed either via the Nginx reverse proxy or over VPN.

Block Invalid Traffic sits near the top of the ruleset to drop malformed packets early before they reach any allow rules - a basic but effective hardening measure.

Guest Network is mapped to the Hotspot zone which prevents it from initiating connections to Internal zones, keeping guest devices fully isolated from servers and trusted clients.


Firewall Policy UI