homelab

pfSense Security Hardening: 12-Block Firewall Configuration

Structured pfSense CE 2.8.1 hardening in 12 blocks: admin lockdown, DNS over TLS, NTP, logging, XML backups and physical/VM instance synchronisation.

Context

After installing pfSense CE 2.8.1 on the repurposed Sophos SG210, I carried out a structured hardening process in 12 blocks to strengthen the homelab router/firewall. The infrastructure has two pfSense instances: a physical one (pfsense-sophos, Sophos SG210) and a VM mirror (pfsense-vm on PVE-02) — hence the importance of a synchronisation and failover procedure.

The 12 hardening blocks

Blocks 1–5 — Administration hardening

Block 1 — Identity and access

Block 2 — Secure NTP

Block 3 — Secure DNS (DNS over TLS / HTTPS)

Block 4 — Logging and audit

Block 5 — Backups

Blocks 6–11 — Network security and filtering

Block 6 — Firewall rule review

Block 7 — Residual inter-VLAN filtering

Block 8 — Manual outbound NAT

Block 9 — Secure SNMP

Block 10 — Security packages

Block 11 — Dashboard and reduced exposure

Block 12 — Physical ↔ VM synchronisation and resilience

Result

Hardened firewall according to best practices, with:

Skills covered

This project directly covers cybersecurity of a network infrastructure (B3.5), equipment and usage hardening (B3.3), availability and integrity assurance via backups and synchronisation (B3.4), and infrastructure evolution (B2.3).