Skip to content
Firewall audit · from the configuration

pfSense firewall audit from the config file

Export the pfSense configuration, upload the config file, and the review runs 45 checks on it, each on the setting it reads. Nothing connects to the firewall.

The 45 checks run on the pfSense export

These are the checks that reached a result on a pfSense export in its own layout in our tests: the same 45 the vendor table counts as checks run. Each row says what part of the export the check reads.

ACME 1

CheckSeverityReads
No ACME / Let's Encrypt configured Lowthe ACME settings

Admin 8

CheckSeverityReads
Management service reachable from WAN Criticalthe Admin settings
WebGUI HTTP_REFERER (anti-CSRF) check disabled Highthe Admin settings
WebGUI not forced to HTTPS Highthe Admin settings
DNS rebinding protection disabled Mediumthe Admin settings
WebGUI HSTS disabled Mediumthe Admin settings
WebGUI on default port Lowwebguiport
WebGUI login form allows credential autocomplete Lowthe Admin settings
Login Protection (sshguard) threshold raised above default Lowsshguard_threshold

Auth 1

CheckSeverityReads
No centralized authentication / MFA server Mediumno

Backup 1

CheckSeverityReads
AutoConfigBackup not configured Lowno

Captive portal 1

CheckSeverityReads
Captive portal without HTTPS Highcaptiveportal httpslogin

Console 1

CheckSeverityReads
Console without password Highconsolepass

DHCP 1

CheckSeverityReads
DHCP scope covers /16 Lowthe DHCP settings

Firewall 2

CheckSeverityReads
Any-any allow rule Criticalthe Firewall settings
Firewall optimization aggressive Lowoptimization

Firmware 1

CheckSeverityReads
Firmware older than 2.7.x Mediumfirmware

IPsec 3

CheckSeverityReads
IPsec phase-1 in Aggressive mode Highthe IPsec settings
IPsec phase-1 uses weak cipher / hash / DH group Highthe IPsec settings
IPsec phase-1 uses pre-shared-key authentication LowIPsec P1

IPv6 1

CheckSeverityReads
IPv6 with no firewall rules Mediumthe IPv6 settings

Logging 1

CheckSeverityReads
No remote syslog target Highthe Logging settings

NAT 1

CheckSeverityReads
Port forward (NAT 1:1 / rdr) with source = any Highthe NAT settings

Notification 1

CheckSeverityReads
System notification email "From" address default Lowthe Notification settings

NTP 1

CheckSeverityReads
NTP server unset Mediumno

OpenVPN 4

CheckSeverityReads
OpenVPN allows weak cipher Highthe OpenVPN settings
OpenVPN compression enabled (VORACLE) MediumOpenVPN
OpenVPN without tls-auth / tls-crypt key Mediumthe OpenVPN settings
OpenVPN uses SHA1/MD5 auth digest Mediumthe OpenVPN settings

Other checks 1

CheckSeverityReads
No IDS package (Suricata/Snort) Mediumthe Other checks settings

Packages 2

CheckSeverityReads
HAProxy frontend HTTP-only Mediumthe Packages settings
No DNS/IP blocklist + geo-IP layer (pfBlockerNG) Lowthe Packages settings

PKI 1

CheckSeverityReads
Certificate signed with SHA-1 / MD5 digest Mediumthe PKI settings

SNMP 1

CheckSeverityReads
SNMP community public Highthe SNMP settings

SSH 4

CheckSeverityReads
SSH allow root Highthe SSH settings
SSH password auth permitted Highsshdkeyonly
SSH agent forwarding enabled Mediumthe SSH settings
SSH listening on default port 22 Lowthe SSH settings

Suricata 1

CheckSeverityReads
Suricata in IDS-only (not inline) Mediumthe Suricata settings

Unbound 2

CheckSeverityReads
Unbound resolver bound to WAN / all interfaces Highthe Unbound settings
DNSSEC disabled in Unbound Mediumunbound.dnssec

Upgrade 1

CheckSeverityReads
Configuration revision history < 30 Lowbackupcount

Users 2

CheckSeverityReads
Multiple users with admin privilege Mediumthe Users settings
Weak password complexity Mediumthe Users settings

WireGuard 1

CheckSeverityReads
WireGuard peer with AllowedIPs=0.0.0.0/0 MediumWG AllowedIPs

2 more items are guidance only: an export cannot show them, so they are not counted as checks.

The pfSense export

How long it takes
About 5 minutes.
Who can pull it
A user with the privilege "WebCfg - Diagnostics: Backup & Restore"
The file
XML, one config-<hostname>-<timestamp>.xml (backup.xml from the Secure Shell, SSH, route): the whole configuration inside one <pfsense> element
Formats read
config.xml backup

The steps, console and command line, are on the pfSense export guide.

What the export does not show

  • Hit counts, so unused rules are not found
  • Alias contents: a rule that uses an alias is not expanded
  • Which interfaces Suricata or Snort inspect: it sees that the package is there, no more
  • Whether the rules end with a logged deny, and gaps in outbound NAT: not checked yet
  • The password length policy and root sign-in over Secure Shell (SSH): config.xml does not hold them
  • The pfSense release: config.xml holds the configuration revision, not the software version
  • Logs, states and RRD graph data: this is the configuration, not live data

Limits of the reader

  • If your export leaves a section out, the review does not flag it as partial.
  • Findings stay in the review. They do not feed attack paths.
  • The checks of this system are not counted: a check counts once a test shows it firing on a file in the layout the vendor documents.

A configuration audit reads settings. Live traffic, hit counts the export does not carry, running hosts and logs are not in the file, so no finding comes from them.

A pfSense finding from the sample

Sample company: Acme Capital (fictional)

Any-any allow rule

Criticalline 69

Raised by the review on a made-up insecure pfSense file: pfsense-insecure.xml. The file is public: open it to see what the export looks like.

The grade its findings reach

Proven A finding from this file can reach PROVEN: the stored file is read a second time by a separate reader, and the finding is found at the setting it names.

pfSense findings stay in the review and its reports. pfSense does not feed attack paths today.

Attack paths, the one change and dollar figures are MODELED. How each grade is worked out is on the method page.

Questions

Does the pfSense audit connect to the firewall?

No. The review reads the config file you export and upload, setting by setting. Nothing is installed on the firewall and nothing connects to it.

How long does the pfSense export take?

About 5 minutes.

What does the pfSense export not show?

Hit counts, so unused rules are not found. Alias contents: a rule that uses an alias is not expanded. Which interfaces Suricata or Snort inspect: it sees that the package is there, no more. Whether the rules end with a logged deny, and gaps in outbound NAT: not checked yet. The password length policy and root sign-in over Secure Shell (SSH): config.xml does not hold them. The pfSense release: config.xml holds the configuration revision, not the software version. Logs, states and RRD graph data: this is the configuration, not live data.

Does the file hold passwords or keys?

In Netgate’s words, passwords such as PPPoE, DynDNS, RADIUS shared secrets, LDAP bind passwords and IPsec shared secrets "appear in plain text or with reversible Base64 encoding" in config.xml; the system password is stored as a hash. With "Backup SSH keys" ticked, the file also holds the firewall’s Secure Shell (SSH) host keys. With redaction on (the default), the passwords, keys and tokens the review recognises are replaced with a placeholder before anything is stored; the check before upload shows how many it found.