pfSense Firewall Install & Configuration 2026: The Complete Bare-Metal, VM & Hardening Guide

·

pfSense is the most widely deployed open-source firewall in the world — a FreeBSD-based distribution built around the pf packet filter that turns a spare PC, a mini-appliance or a virtual machine into an enterprise-grade edge device. In one install you get a stateful firewall, a NAT router, a DHCP and DNS server, a VPN concentrator, and a package ecosystem that adds intrusion detection, DNS-level ad-and-malware blocking and traffic analytics. This guide covers the free Community Edition (CE 2.8.x), the current stable branch maintained by Netgate.

You will build it three ways — on bare metal for a home or office edge, in VirtualBox for a self-contained lab on your laptop, and on Proxmox VE / VMware ESXi for a homelab hypervisor — then run the console interface assignment and the web setup wizard, write your first real firewall rules and port-forwards, and lock the box down.

The back half is where a defender earns their keep: pfBlockerNG for DNSBL and IP-feed blocking, Suricata for IDS/IPS, WireGuard for remote access, plus syslog forwarding into your SIEM, config backup, upgrades and a full troubleshooting table. Every command is copy-pasteable. Deploy only on networks you own or are authorised to administer.

◈ Table of Contents

01 What pfSense Is & Why Defenders Use It 02 Prerequisites & Requirements 03 Method 1 — Bare-Metal Install 04 Method 2 — VirtualBox Lab VM 05 Method 3 — Proxmox VE / ESXi 06 First Boot — Console Setup 07 Initial Web Configuration Wizard 08 Core Firewall: Rules, Aliases & NAT 09 Integration: pfBlockerNG, Suricata & VPN 10 Monitoring, Maintenance & Troubleshooting 11 Sources & References
🧭

01 · What pfSense Is & Why Defenders Use It

Phase 1/11

At its core pfSense is a management layer around FreeBSD's pf — the same battle-tested packet filter that ships in OpenBSD and macOS. What makes it a firewall rather than an operating system is the webConfigurator: a full web GUI that turns pf rule syntax, NAT tables, DHCP scopes, DNS resolvers and VPN tunnels into point-and-click configuration, with every change written atomically to a single config.xml. That one file is the whole firewall — back it up and you can rebuild the box in minutes.

For a SOC or homelab, pfSense is the natural place to see and shape traffic. It is a default-deny device: inbound connections from the WAN are dropped unless you explicitly allow them, while LAN egress is permitted and tracked statefully. Add the package ecosystem and the same box becomes a sensor — Suricata reads the wire and raises alerts, pfBlockerNG sinkholes known-bad domains and IP ranges, and native syslog shipping feeds every firewall and IDS event into Splunk, Elastic or Microsoft Sentinel.

🏠

Home & SMB Edge

Replace a consumer router with a real stateful firewall, VLAN segmentation, VPN and DNS filtering on cheap hardware.

🧪

Security Homelab

Segment a vulnerable-VM range from your home network, mirror traffic to an IDS and practise detection engineering safely.

🛡️

SOC Sensor

Run Suricata inline, forward alerts and firewall logs to your SIEM, and pivot on the connection records during IR.

🔐

VPN Concentrator

Terminate WireGuard or OpenVPN for remote workers and site-to-site links without a per-seat licence.

Two editions exist. Know which one this guide targets and why CE is the right pick for labs and self-managed edges.

EditionWhat it isLicence / costUse it when
pfSense CE 2.8.xCommunity Edition — the free, self-installed build covered hereApache 2.0, freeHomelab, SMB edge, self-managed installs on your own hardware or VM
pfSense PlusNetgate's commercial build, free on Netgate appliancesFree on Netgate hardware; licensed elsewhereYou bought a Netgate appliance or need vendor support/TAC

CE 2.8 pulled in features that were once Plus-only, including encrypted Automatic Config Backup, Kea DHCP high-availability and NAT64. For most labs and home/SMB edges, CE is functionally complete — you reach for Plus mainly when you want Netgate support or run their hardware.

pfSense is an edge security device. A misconfigured firewall is worse than none — it creates a false sense of safety. Change the default credentials, never expose the management GUI to the WAN, and test every rule change from a client you can afford to lose access from.

📋

02 · Prerequisites & Requirements

Phase 2/11

The single hard requirement is two network interfaces — one for WAN (uplink) and one for LAN (protected network). Everything else scales with throughput: routing a gigabit line with basic rules is trivial for any modern CPU, but running Suricata deep-packet inspection at multi-gig needs cores and RAM. Intel NICs (igb / ix drivers) are the gold standard on FreeBSD; Realtek works but can be flaky under load.

ComponentMinimumRecommendedNotes
CPU64-bit dual-coreMINQuad-core+ with AES-NIRECAES-NI accelerates VPN throughput
RAM1 GB4 GB+ (8 GB with Suricata/pfBlockerNG)IDS + DNSBL feeds are memory-hungry
Storage8 GB SSD/eMMC32 GB+ SSDZFS + logs; avoid worn USB sticks for the OS
NICs2 × interfaces (WAN+LAN)Intel igb/ix; add ports for VLANs/DMZRealtek re0 works but Intel is preferred
Boot media1 GB USB stick (installer)USB 3.0 stickThe memstick image is written, then discarded
Access PCAny browser on the LANWired client at 192.168.1.xYou configure pfSense over HTTP/HTTPS from LAN
01
Plan your topology & IP scheme first
design

Decide the layout before you install. At minimum: WAN (uplink), LAN (trusted), and — for a security build — one or more OPT interfaces/VLANs for servers, IoT and a vulnerable-lab segment. Pick a LAN subnet that does not collide with any upstream network.

example addressing plan
WAN -> DHCP/static/PPPoE from ISP LAN -> 192.168.10.0/24 (trusted clients + mgmt) OPT1 -> 192.168.20.0/24 (servers / DMZ, VLAN 20) OPT2 -> 192.168.30.0/24 (IoT / untrusted, VLAN 30) OPT3 -> 192.168.66.0/24 (vulnerable lab, egress-denied)

Avoid 192.168.0.0/24 and 192.168.1.0/24 for your LAN — they collide constantly with consumer routers and VPN clients. A less-common /24 like 192.168.10.0/24 saves hours of double-NAT debugging.

Grab the installer and its checksum from the official download page before anything else. CE ships as a gzipped memstick (USB) image for the AMD64 architecture.

bash — download & verify the CE installer
# Download the AMD64 USB memstick image + published SHA256 from pfsense.org/download $ ls -lh pfSense-CE-2.8.1-RELEASE-amd64.img.gz* # Compare your file's hash against the value Netgate publishes on the download page $ sha256sum pfSense-CE-2.8.1-RELEASE-amd64.img.gz # If a .sha256 file was provided, verify automatically: $ sha256sum -c pfSense-CE-2.8.1-RELEASE-amd64.img.gz.sha256 # Then decompress ready for writing to USB $ gunzip -k pfSense-CE-2.8.1-RELEASE-amd64.img.gz
⬇️
Official pfSense CE download
pfsense.org/download — select AMD64 · USB Memstick Installer
OPEN ↗

Always verify the SHA256. A firewall image tampered in transit is a supply-chain compromise of your entire network. Never install from an unverified mirror or a torrent of unknown provenance.

🖥️

03 · Method 1 — Bare-Metal Install

Phase 3/11

Bare metal is the production path: a dedicated appliance (a fanless mini-PC, a repurposed thin client, or a small server) sits at your edge with WAN plugged into your modem/ONT and LAN into a switch. The installer boots from USB, copies pfSense to the internal disk, and reboots into your firewall.

01
Write the memstick image to USB
dd / rufus

On Linux/macOS use dd. On Windows use Rufus in DD-image mode. Identify the correct target device first — writing to the wrong disk destroys it.

bash — Linux (identify then write)
# List disks; find your USB stick (e.g. /dev/sdb) — NOT your system disk $ lsblk -dpno NAME,SIZE,MODEL # Write the decompressed image (double-check of=; this is destructive) $ sudo dd if=pfSense-CE-2.8.1-RELEASE-amd64.img of=/dev/sdb bs=4M status=progress conv=fsync $ sync
bash — macOS (diskutil + raw device)
$ diskutil list $ diskutil unmountDisk /dev/disk4 $ sudo dd if=pfSense-CE-2.8.1-RELEASE-amd64.img of=/dev/rdisk4 bs=4m

Triple-check the of= target. dd will happily overwrite your laptop's system disk if you point it at the wrong device. When unsure, remove all other external drives first.

02
Boot the installer & choose the filesystem
installer

Boot the appliance from USB (disable Secure Boot in BIOS/UEFI if the stick is skipped). Accept the licence, choose Install, then pick your filesystem. Choose ZFS — it gives you checksums and, crucially, boot-environment snapshots that make firmware upgrades reversible. Use the GPT partition scheme on modern UEFI hardware.

installer walkthrough (on-screen menu)
# Netgate Installer flow, top to bottom: 1. Accept the licence agreement 2. Install (not Rescue Shell / Recover config.xml) 3. Filesystem: ZFS -> Stripe (single disk lab) or Mirror (2 disks) 4. Select the target disk (spacebar), confirm the DESTRUCTIVE wipe 5. Let it copy files, then choose Reboot # Pull the USB stick during reboot so it does not boot the installer again

ZFS boot environments are pfSense's best-kept upgrade safety net: an upgrade creates a new environment, and if the new build misbehaves you roll back to the previous one from the boot menu — no reinstall, no lost config.

03
Cable it correctly & first power-on
wiring

Physical topology matters: WAN port to your modem/ONT (or the upstream network), LAN port to a switch or directly to your configuration PC. On first boot pfSense tries to auto-detect which NIC is which; you will confirm or correct that in the console (Phase 6).

Bare-metal ready checklist
  • USB installer removed; box boots pfSense from internal disk
  • WAN NIC cabled to the internet uplink
  • LAN NIC cabled to a switch or your laptop
  • Console reachable (monitor+keyboard, or serial for appliances)
📦

04 · Method 2 — VirtualBox Lab VM

Phase 4/11

A VirtualBox VM is the fastest way to get a self-contained pfSense lab on a laptop: WAN on a NAT adapter (internet via your host), LAN on an internal network that other lab VMs join. This is the classic "firewall in a box" arrangement for practising rules and IDS without touching your real network. Below is the fully scripted VBoxManage build so it is reproducible.

01
Create the VM and dual NICs from the CLI
VBoxManage

Adapter 1 = NAT (becomes WAN, gets internet from the host). Adapter 2 = Internal Network labnet (becomes LAN). FreeBSD likes the Intel 82540EM emulated NIC.

bash — VirtualBox VM provisioning
$ VBoxManage createvm --name pfSense-lab --ostype FreeBSD_64 --register $ VBoxManage modifyvm pfSense-lab --memory 2048 --cpus 2 --firmware efi # NIC1 -> WAN via NAT ; NIC2 -> LAN via internal network "labnet" $ VBoxManage modifyvm pfSense-lab --nic1 nat --nictype1 82540EM $ VBoxManage modifyvm pfSense-lab --nic2 intnet --intnet2 labnet --nictype2 82540EM # 20 GB disk + SATA controller $ VBoxManage createmedium disk --filename pfSense-lab.vdi --size 20480 $ VBoxManage storagectl pfSense-lab --name SATA --add sata --controller IntelAhci $ VBoxManage storageattach pfSense-lab --storagectl SATA --port 0 --device 0 --type hdd --medium pfSense-lab.vdi
02
Attach the installer ISO and boot
install

For a VM, use the ISO installer variant (or the same memstick image attached as a disk). Attach it to a virtual optical drive, boot, and run the identical ZFS install flow from Phase 3.

bash — attach ISO & start headless-capable VM
$ VBoxManage storagectl pfSense-lab --name IDE --add ide $ VBoxManage storageattach pfSense-lab --storagectl IDE --port 0 --device 0 \ --type dvddrive --medium pfSense-CE-2.8.1-RELEASE-amd64.iso $ VBoxManage startvm pfSense-lab # After install completes, detach the ISO so it boots from disk: $ VBoxManage storageattach pfSense-lab --storagectl IDE --port 0 --device 0 --type dvddrive --medium none

Any lab VM you want protected by pfSense simply joins the same internal network — set its adapter to --intnet labnet. It will pull DHCP from pfSense's LAN and route out through the firewall, exactly like a real client.

In a NAT-on-WAN lab the WAN interface receives a private (RFC1918) address from VirtualBox. pfSense blocks "private networks" on WAN by default, which is fine — but if you later switch WAN to a bridged private LAN and expect inbound access, you must uncheck that filter (Phase 7) or traffic silently drops.

🧱

05 · Method 3 — Proxmox VE / VMware ESXi

Phase 5/11

On a homelab hypervisor pfSense becomes a virtual edge router: you map two virtual switches / bridges — one bound to a physical WAN NIC, one to your internal LAN bridge — and pfSense routes between them. VirtIO NICs give near-native throughput. Below is a scripted Proxmox build plus the ESXi equivalent notes.

01
Create the VM on Proxmox with the qm CLI
proxmox

Upload the ISO to local:iso first (Datacenter → Storage → ISO Images, or scp it to /var/lib/vz/template/iso/). Here vmbr0 is your WAN bridge and vmbr1 your LAN bridge.

bash — run on the Proxmox node shell
# qm create 200 --name pfsense --memory 4096 --cores 2 \ --cpu host --ostype other --machine q35 --bios ovmf # EFI vars disk + a 32G system disk on local-lvm # qm set 200 --efidisk0 local-lvm:1,efitype=4m # qm set 200 --scsihw virtio-scsi-single --scsi0 local-lvm:32 # WAN on vmbr0, LAN on vmbr1 — both VirtIO # qm set 200 --net0 virtio,bridge=vmbr0 # qm set 200 --net1 virtio,bridge=vmbr1 # Attach installer ISO + set boot order to CD first # qm set 200 --ide2 local:iso/pfSense-CE-2.8.1-RELEASE-amd64.iso,media=cdrom # qm set 200 --boot order=ide2;scsi0 # qm start 200
02
VMware ESXi equivalent & VirtIO tuning
esxi

On ESXi create a VM (Guest OS: FreeBSD 14/15 64-bit), attach two VMXNET3 adapters mapped to a WAN port group and a LAN port group, and enable Promiscuous mode only if you intend to bridge or run inline IDS across port groups. After first boot, tune offloading so VirtIO/VMXNET checksums do not corrupt state tracking.

shell — disable hardware offload (pfSense console option 8)
# These are toggled in the GUI (System > Advanced > Networking) but shown here for reference: # - Disable hardware checksum offload # - Disable hardware TCP segmentation offload (TSO) # - Disable hardware large receive offload (LRO) # Confirm current NIC state from the shell: # ifconfig vtnet0 | grep options # ifconfig vmx0 | grep options

Virtual NIC offloading is the #1 cause of "pfSense works but throughput is terrible / connections hang" on hypervisors. If a fresh virtual pfSense has flaky networking, disable checksum, TSO and LRO offload and reboot before troubleshooting anything else.

⌨️

06 · First Boot — Console Interface Assignment

Phase 6/11

Whatever the install method, the first boot drops you at the pfSense console menu. This text menu is your out-of-band lifeline — it works even when the GUI is locked out. Two options matter now: 1) Assign Interfaces and 2) Set interface(s) IP address.

OptionActionWhen you need it
0Logout (SSH only)End a remote console session
1Assign InterfacesMap NICs to WAN/LAN/OPT, set up VLANs
2Set interface(s) IP addressChange the LAN IP / DHCP range
3Reset webConfigurator passwordLocked out of the GUI
4Reset to factory defaultsStart over cleanly
5 / 6Reboot / Halt systemSafe power cycle
8ShellDrop to the FreeBSD shell (pfctl, tcpdump)
11Restart webConfiguratorGUI unreachable but box is up
12PHP shell + pfSense toolsScripted config / playback
13Update from consoleUpgrade without the GUI
14Enable Secure Shell (sshd)Turn on SSH management
15Restore recent configurationRoll back a bad config.xml
01
Assign WAN and LAN (option 1)
assign

Auto-detection is usually right, but confirm it. If wrong, choose option 1 and map interfaces manually. Decline VLAN setup unless you are trunking a tagged uplink now.

console — interface assignment prompts
Should VLANs be set up now [y|n]? n Enter the WAN interface name: em0 # or vtnet0 / vmx0 / igb0 Enter the LAN interface name: em1 # the protected side Enter the Optional 1 interface name (or nothing): Do you want to proceed [y|n]? y
02
Set the LAN IP & DHCP (option 2)
lan ip

The default LAN is 192.168.1.1/24 with DHCP handing out 192.168.1.100–192.168.1.150. Change the subnet here if it clashes with an upstream network (a very common cause of "no internet" when pfSense sits behind another router on the same 192.168.1.0/24).

console — set interface IP (option 2 → LAN)
Enter the number of the interface to configure: 2 # LAN Configure IPv4 address LAN interface via DHCP? [y|n]: n Enter the new LAN IPv4 address: 192.168.10.1 Subnet bit count [8..32]: 24 Enable the DHCP server on LAN? [y|n]: y Start address of the IPv4 client range: 192.168.10.100 End address of the IPv4 client range: 192.168.10.200 Do you want to revert to HTTP as the webConfigurator protocol? n
Console reports the management URL
  • The webConfigurator is now at https://192.168.10.1/
  • Connect a client to LAN, take DHCP, browse to that URL

If you ever lock yourself out during rule tightening, the console never lies: option 8 → pfctl -d disables the firewall entirely (temporarily) so you can regain GUI access and fix the rule, then pfctl -e re-enables it.

03
Enable SSH for out-of-band management (option 14)
ssh

SSH gives you a reliable shell when the GUI is unhappy. Enable it from the console (option 14) or System > Advanced > Admin Access, then switch to key-only auth. Keep SSH reachable from the LAN/VPN only — never the WAN.

from a LAN client — connect & verify
$ ssh [email protected] # You land in the same numbered console menu; choose 8 for the shell # Harden: System > Advanced > Admin Access -> # Secure Shell = enabled, "Public Key Only", paste your key under User Manager

Disable password SSH once your key works. An SSH service that accepts passwords, even on the LAN, is a lateral-movement target once one internal host is compromised.

🧙

07 · Initial Web Configuration Wizard

Phase 7/11

Browse to the LAN IP from a wired client. The default login is username admin / password pfsense. The Setup Wizard launches automatically on first login and walks nine screens: hostname/domain, DNS, timezone, WAN type, LAN IP, and the admin password.

01
General, DNS & timezone
wizard 1–3

Set a hostname and domain (e.g. fw.lab.local). Leave "Override DNS" ticked if your ISP supplies DNS, or set explicit resolvers (e.g. 9.9.9.9 Quad9, 1.1.1.1). Pick your timezone — accurate time is non-negotiable for log correlation in a SIEM.

portal path
# The wizard runs at: System > Setup Wizard # Re-run it any time from the same menu; individual settings live at: System > General Setup (hostname, DNS, timezone)
02
WAN type & the private-network filters
wizard 4

Choose the WAN type: DHCP (most home connections), Static (business line), or PPPoE (many DSL/fibre ISPs — enter the username/password from your provider). At the bottom sit two checkboxes that trip up every lab builder.

The two WAN filter checkboxes
  • Block RFC1918 Private Networks — drops inbound private-IP sources on WAN
  • Block bogon networks — drops traffic from unallocated address space

Leave both checked for a real internet-facing edge. But when pfSense sits behind another router (double-NAT lab, or WAN on a private bridge), the upstream is RFC1918 — untick "Block private networks" on the WAN interface or all inbound traffic from your own uplink is silently dropped.

03
Change the admin password & finish
wizard 8–9

Set a strong admin password on the final screens and reload. This is the single most important hardening step — an internet-facing pfSense on admin/pfsense is an open door.

portal path — post-wizard hardening
System > User Manager > admin -> set strong password System > User Manager > Settings -> raise session timeout sanity System > Advanced > Admin Access -> enable HTTPS, change GUI port, enable Anti-lockout only on LAN System > Advanced > Admin Access -> DO NOT enable WAN GUI/SSH access

Never expose the webConfigurator or SSH to the WAN. If you need remote management, reach it over the VPN (Phase 9). A management interface on the public internet is brute-forced within hours.

The default "anti-lockout" rule guarantees the LAN can always reach the GUI so a bad rule cannot brick you. Keep it on until your ruleset is stable; disable it only when you have an out-of-band console and a tested management VLAN.

🚦

08 · Core Firewall: Rules, Aliases & NAT

Phase 8/11

This is the firewall doing its job. pfSense rules are evaluated top-down, first-match-wins, per interface, and they filter traffic entering that interface. WAN starts fully closed (default deny inbound); LAN starts with a permissive "allow LAN to any" rule you will tighten. Rules live at Firewall > Rules.

01
Build aliases so rules stay readable
aliases

An alias is a named group of hosts, networks or ports. Reference the alias in rules instead of raw IPs — change the alias once and every rule updates. Create them at Firewall > Aliases.

portal path + example aliases
Firewall > Aliases > Add # Host alias: AdminHosts = 192.168.10.10, 192.168.10.11 # Network: ServersVLAN = 192.168.20.0/24 # Port alias: WebPorts = 80, 443 # Then a rule reads "allow AdminHosts -> ServersVLAN : WebPorts"

Aliases turn an unreadable wall of IP rules into English. A ruleset built on AdminHosts, ServersVLAN and WebPorts is auditable at a glance and survives IP changes — this is the difference between a maintainable firewall and a fragile one.

02
Write a least-privilege LAN egress policy
rules

The stock "LAN → any" rule lets everything out. For a security-minded network, replace it with explicit allows and log the implicit deny. Order matters — put specific allows above the catch-all block.

Firewall > Rules > LAN (top-down order)
1. PASS LAN net -> AdminHosts : this-firewall (443) [manage GUI] 2. PASS LAN net -> any : DNS (53) to This Firewall only 3. PASS LAN net -> any : HTTP/HTTPS (80,443) 4. BLOCK LAN net -> RFC1918 : any [stop inter-VLAN pivoting] 5. PASS LAN net -> any : any [general egress, logged] # Rule 4 above rule 5 prevents LAN clients reaching other private subnets

Enable logging on your deny rules (the rule's "Log packets handled by this rule" box). A firewall that blocks silently gives you nothing to hunt on. Logged denies are how you spot a compromised host beaconing out.

03
Port-forward (DNAT) a service in from WAN
nat

To publish an internal service (say a web server at 192.168.10.50:443), create a NAT port-forward. pfSense auto-generates the matching WAN pass rule. Outbound NAT (masquerade) for LAN clients is automatic in the default mode.

Firewall > NAT > Port Forward > Add
Interface: WAN Protocol: TCP Dest. address: WAN address Dest. port range: HTTPS (443) Redirect target: 192.168.10.50 Redirect port: 443 Filter rule assoc: Add associated filter rule (auto)

Verify the live rule state from the shell — this is the ground truth pf is actually enforcing:

shell (console option 8) — inspect the live ruleset
# Show loaded filter rules, NAT rules and current state table # pfctl -s rules # pfctl -s nat # pfctl -s states | head # Add a quick allow from the CLI without the GUI (handy in a pinch): # easyrule pass wan tcp any WANIP 443

Front internet-facing services with a reverse proxy or HAProxy (a pfSense package) plus the ACME package for free Let's Encrypt certs, rather than exposing app ports directly. Fewer open WAN ports means a smaller attack surface.

04
Pick the right Outbound NAT mode
outbound nat

LAN clients reach the internet because pfSense masquerades their private IPs behind the WAN address. The default Automatic mode handles this for you; switch to Hybrid when you need a few custom rules (e.g. a static 1:1 NAT for a server) without hand-managing everything.

Firewall > NAT > Outbound
Automatic -> pfSense writes NAT rules for all LAN/VPN subnets (default) Hybrid -> auto rules + your manual rules on top (recommended once you grow) Manual -> you own every rule (full control, more footguns) # Confirm what NAT is actually applied from the shell: # pfctl -s nat | grep "nat on"
🧩

09 · Integration: pfBlockerNG, Suricata & VPN

Phase 9/11

Packages turn pfSense from a router into a security platform. Install them from System > Package Manager > Available Packages. The three that matter most for a defender are pfBlockerNG (DNS/IP blocking), Suricata (IDS/IPS) and WireGuard (VPN) — plus native syslog shipping to your SIEM and a Docker-based service lab sitting safely behind the LAN.

01
pfBlockerNG — DNSBL + IP feed blocking
dns filter

pfBlockerNG sinkholes malicious/ad domains via the DNS Resolver (Unbound) and blocks known-bad IP ranges at the firewall using public threat feeds. Install pfBlockerNG-devel, run the wizard, then add feeds.

Firewall > pfBlockerNG
1. System > Package Manager > Install pfBlockerNG-devel 2. Firewall > pfBlockerNG > run the setup wizard (pick VIP/interfaces) 3. DNSBL > add feeds (e.g. hagezi, OISD, abuse.ch malware lists) 4. IPv4 lists > add IP threat feeds (e.g. abuse.ch Feodo, Spamhaus DROP) 5. Update > Force Reload > All (pulls feeds, rebuilds tables)

pfBlockerNG's DNSBL requires the built-in DNS Resolver (Unbound). If you switch pfSense to DNS Forwarder mode, DNSBL stops working. Keep Unbound as the resolver and point your LAN clients at pfSense for DNS.

02
Suricata — IDS first, then inline IPS
ids/ips

Suricata inspects traffic against signature rulesets (ET Open, Snort community). Run it in IDS (alert-only) mode on the WAN first, tune out false positives, then flip to inline IPS so it drops. Blocking blind will break legitimate traffic.

Services > Suricata — setup order
1. Install Suricata; Global Settings > enable ET Open + rule updates 2. Interfaces > Add WAN (and LAN); start in "Legacy Mode" (IDS) 3. Categories > enable relevant rulesets; Update > download rules 4. Watch Alerts tab for days; suppress noisy SIDs 5. Only then: Interface > Block Offenders + "Inline IPS Mode"

Suricata logs live on disk — tail them during tuning or ship them onward:

shell — Suricata logs & live pf state
# EVE JSON + fast.log per interface (UUID dir under the interface) # ls /var/log/suricata/ # tail -f /var/log/suricata/suricata_*/fast.log # See which hosts Suricata has blocked (pf table) # pfctl -t snort2c -T show

On a hypervisor, IDS is easiest on the LAN interface where traffic is already decrypted at the network layer. Reserve inline WAN IPS for hardware with spare cores — deep-packet inspection at line rate is CPU-bound.

03
WireGuard — remote access VPN
vpn

WireGuard gives you fast, modern remote access so you never expose management to the WAN. Install the package, create a tunnel, add a peer per device, then a WAN rule allowing the UDP port and a rule on the WireGuard interface allowing tunnel traffic to your LAN.

VPN > WireGuard — build order
1. Install the WireGuard package 2. Tunnels > Add: listen port 51820, generate server keys, tunnel IP 10.6.0.1/24 3. Peers > Add: client public key, allowed IPs 10.6.0.2/32 4. Firewall > Rules > WAN: PASS UDP -> This Firewall : 51820 5. Firewall > Rules > WireGuard: PASS tunnel net -> LAN net
client wg0.conf (peer side)
[Interface] PrivateKey = <client-private-key> Address = 10.6.0.2/24 DNS = 192.168.10.1 [Peer] PublicKey = <pfsense-public-key> Endpoint = your.wan.fqdn:51820 AllowedIPs = 192.168.10.0/24, 10.6.0.0/24 PersistentKeepalive = 25
04
Ship logs to a SIEM + a Docker lab behind the LAN
siem + compose

Forward firewall and Suricata events to your SIEM via remote syslog (Status > System Logs > Settings > Remote Logging) — enable firewall events and point them at your collector on UDP/TCP 514. To exercise the firewall, stand up a small service stack on a LAN host with Docker; pfSense protects and observes it exactly like any client.

docker-compose.yml — services running on a LAN host behind pfSense
services: syslog-siem: image: grafana/loki:latest # or your SIEM's syslog collector ports: ["514:514/udp", "3100:3100"] restart: unless-stopped webapp: image: nginx:stable # the service you port-forward to (Phase 8) ports: ["443:443"] restart: unless-stopped dvwa: image: vulnerables/web-dvwa # intentionally vulnerable target for IDS testing ports: ["8080:80"] restart: unless-stopped
bash — bring the lab up on the LAN host
$ docker compose up -d $ docker compose ps # Now generate traffic; watch it land in pfSense logs + Suricata alerts

Keep intentionally vulnerable containers (like DVWA) on an isolated LAN/VLAN with an egress-deny rule. A firewall lab is only safe if the vulnerable targets cannot reach the internet or your real hosts — segment them, then block RFC1918 and WAN egress from that segment.

05
Publish services safely with ACME + HAProxy
reverse proxy

Instead of port-forwarding raw app ports, terminate TLS at a reverse proxy. The ACME package issues free Let's Encrypt certificates and HAProxy fronts your backends — one WAN port, centralised TLS, and per-host ACLs. This shrinks the attack surface dramatically.

Services > Acme & Services > HAProxy — order
1. Install packages: acme + haproxy 2. Acme > Account keys > register; Certificates > add (DNS or HTTP-01 challenge) 3. HAProxy > Backends > add real server 192.168.20.50:443 4. HAProxy > Frontends > bind WAN:443, select the ACME cert, map host ACL 5. Firewall > WAN: PASS TCP -> This Firewall : 443 (only)

With HAProxy in front you expose exactly one port (443) regardless of how many internal apps you publish, and you get HTTP health checks, rate limiting and header hardening for free — a far safer posture than a fan of individual port-forwards.

🔧

10 · Monitoring, Maintenance & Troubleshooting

Phase 10/11

A firewall is a living system. This phase covers the day-two work: watching traffic, backing up the one file that is your firewall, upgrading safely, and fixing the failures every pfSense admin eventually hits.

01
Live monitoring & diagnostics
monitor

The GUI dashboard, Status > Traffic Graphs and Diagnostics > States cover most needs, but the shell is faster for triage. Capture packets, watch states and confirm what pf is really doing.

shell — everyday diagnostics
# Live top-like view of the state table # pftop # Count active states / check filter is enabled # pfctl -s info | grep "Status" # Packet capture on WAN for a specific host (Diagnostics > Packet Capture in GUI) # tcpdump -ni em0 host 203.0.113.10 and port 443 # Tail the main firewall log # clog /var/log/filter.log | tail -n 40
02
Back up config.xml & upgrade safely
backup

Everything is in /cf/conf/config.xml. Back it up before every change from Diagnostics > Backup & Restore, enable the encrypted Automatic Config Backup (ACB), and snapshot the VM before installing packages or upgrading.

shell — manual backup + version/upgrade
# Copy the entire firewall config off-box # cp /cf/conf/config.xml /root/config-$(date +%F).xml # Check running version # cat /etc/version # Update package metadata, then upgrade (GUI: System > Update) # pkg update # pfSense-upgrade -d

Because ZFS created a boot environment during install, a failed upgrade is recoverable: reboot, pick the previous boot environment from the loader menu, and you are back on the working build with the old config intact. Test upgrades on a VM clone first for production edges.

03
Troubleshooting — the failures you will actually hit
fixes

The overwhelming majority of pfSense problems fall into a handful of buckets. Work this table top to bottom before deep-diving.

SymptomLikely causeFix
LAN has no internetWAN subnet == LAN subnet, or DNS not setChange LAN off 192.168.1.0/24; set resolvers in General Setup
Can't reach the GUILocked out by a rule / wrong protocolConsole opt 8 → pfctl -d; opt 11 restart GUI; opt 3 reset pw
Port forward doesn't workNo WAN pass rule, or double-NAT upstreamAdd associated filter rule; forward the port on the upstream router too
Throughput terrible on VMHardware checksum/TSO/LRO offloadSystem > Advanced > Networking — disable offloads, reboot
WAN gets no IPPPPoE creds / bad NIC assignmentRe-check WAN type; console opt 1 reassign; verify link/cable
pfBlockerNG blocks nothingUsing DNS Forwarder not ResolverEnable Unbound (DNS Resolver); Force Reload feeds
Inbound from lab uplink dropped"Block private networks" on WANInterfaces > WAN — untick the RFC1918/bogon filters

Before blaming pfSense, confirm the layer below it: cable/link status, correct NIC assignment (console option 1), and that the upstream device actually hands out an address. Most "pfSense is broken" reports are a swapped WAN/LAN NIC or a subnet clash.

04
Hardening checklist before you call it done
harden

Turn the install into a defensible edge. These are the settings an attacker hopes you skipped.

pfSense hardening checklist
  • Strong unique admin password; no management access from WAN
  • HTTPS webConfigurator on a non-default port; anti-lockout scoped to a mgmt VLAN
  • Default-deny WAN; least-privilege LAN egress with logged denies
  • Segment untrusted devices/labs into VLANs with inter-VLAN block rules
  • pfBlockerNG DNSBL + IP feeds enabled and auto-updating
  • Suricata tuned in IDS, then inline IPS on capable hardware
  • Remote access via WireGuard only; MFA on any exposed portal
  • Syslog to a SIEM; encrypted Auto Config Backup enabled
  • Firmware current; ZFS boot environment verified for rollback

Treat the firewall as an IR asset, not just plumbing. Its logs are often the first place a compromise shows up — a LAN host suddenly hammering blocked destinations, or a new outbound state to a pfBlockerNG threat feed IP. Forward those events and alert on them.

📚

11 · Sources & References

Phase 11/11

Primary documentation for every step above. Prefer the official Netgate docs for version-specific behaviour, since defaults and menu paths shift between releases.

pfSense — Community Edition downloads & checksums Netgate Docs — Installing & Upgrading pfSense Netgate Docs — Installation Walkthrough Netgate Docs — Firewall rules, aliases & NAT Netgate Docs — pfBlockerNG Netgate Docs — Suricata IDS/IPS Netgate Docs — WireGuard VPN Netgate — pfSense CE 2.8.0 release notes

◈ MAKE THE EDGE YOUR FIRST SENSOR, NOT JUST YOUR FIRST WALL

A tuned pfSense box blocks, segments and tells you when something is wrong. Pair it with our Suricata detection and homelab virtualization guides for the full defensive stack, and run suspicious outbound IPs through the CyberHawk IOC Scanner. Explore more hands-on SOC tooling walkthroughs on the CyberHawk Blog.

◈ Stay Connected

Follow CyberHawk Threat Intel for threat intelligence, deployment guides and hands-on SOC tooling content.

🌐 Website ▶️ YouTube ▶️ YouTube (2) 𝕏 Twitter / X ♪ TikTok ✈️ Telegram
🔍 IOC Scanner 🛠️ Live Tools 📚 Courses 🚨 Threat Intel 📝 Blog 📋 SOPs

"They can't exploit you if you are the Exploit."