Skip to content
Firewall audit · from the configuration

OPNsense firewall audit from the config file

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

The 27 checks run on the OPNsense export

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

Admin 1

CheckSeverityReads
Web interface served over HTTP Highthe Admin settings

Alias 1

CheckSeverityReads
URL-table alias refresh > 7d Lowthe Alias settings

Auth 1

CheckSeverityReads
LDAP auth without TLS Highthe Auth settings

Captive portal 1

CheckSeverityReads
Captive portal login served over HTTP Highthe Captive portal settings

Console 1

CheckSeverityReads
Console without password Highsystem: no <disableconsolemenu> (console menu not password protected)

Cron 1

CheckSeverityReads
Custom cron jobs not signed Lowthe Cron settings

DNS 1

CheckSeverityReads
Unbound DNSSEC disabled Mediumthe DNS settings

Firewall 1

CheckSeverityReads
A pass rule allows any source to any destination Criticalfilter rule "Temporary: allow all in" on wan

Firmware 1

CheckSeverityReads
Firmware older than 23.7 Mediumthe Firmware settings

Gateway 1

CheckSeverityReads
Gateway health checks turned off Lowthe Gateway settings

HTTP proxy 1

CheckSeverityReads
Web proxy without TLS interception Mediumthe HTTP proxy settings

IDS 1

CheckSeverityReads
IDS/Suricata disabled Highthe IDS settings

IPsec 2

CheckSeverityReads
IPsec phase-1 in Aggressive mode Highthe IPsec settings
An IPsec phase 1 uses a weak Diffie-Hellman group Highthe IPsec settings

Logging 1

CheckSeverityReads
No remote syslog destination Highthe Logging settings

NAT 2

CheckSeverityReads
NAT port forward with source = any Highport forward "Publish DMZ web server"
Outbound NAT in Disabled mode Mediumthe NAT settings

OpenVPN 2

CheckSeverityReads
OpenVPN allows a weak cipher Highthe OpenVPN settings
OpenVPN without tls-auth / tls-crypt Mediumthe OpenVPN settings

Other checks 1

CheckSeverityReads
No NGFW package (Zenarmor/Sensei) Mediumthe Other checks settings

SNMP 1

CheckSeverityReads
SNMPv2c uses the public community Highthe SNMP settings

SSH 2

CheckSeverityReads
SSH root login allowed Highthe SSH settings
SSH password auth permitted Highthe SSH settings

Suricata 1

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

Tunables 1

CheckSeverityReads
ICMP broadcasts respond Mediumthe Tunables settings

Users 1

CheckSeverityReads
Many users in admins group Mediumthe Users settings

WireGuard 1

CheckSeverityReads
WireGuard peer with AllowedIPs=0.0.0.0/0 Mediumthe WireGuard settings

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

The OPNsense export

How long it takes
About 5 minutes; about 10 with the API, to create the key and delete it afterwards.
Who can pull it
A user who holds the "Diagnostics: Configuration History" privilege
The file
XML, one config-<host>-<date>.xml (config.xml from the API): the whole configuration inside one <opnsense> element
Formats read
config.xml backup

The steps, console and command line, are on the OPNsense 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
  • Logs and live states: this is the configuration and nothing else
  • Whether the rules end with a logged deny: not checked yet

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.
  • Some checks of this system are in the code and not counted: no test shows them 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 OPNsense finding from the sample

Sample company: Acme Capital (fictional)

A pass rule allows any source to any destination

Criticalfilter rule "Temporary: allow all in" on wan · line 63

Raised by the review on a made-up OPNsense file in its own layout, from our tests. No customer's file is shown.

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.

OPNsense findings stay in the review and its reports. OPNsense 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 OPNsense 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 OPNsense export take?

About 5 minutes; about 10 with the API, to create the key and delete it afterwards.

What does the OPNsense export not show?

Hit counts, so unused rules are not found. Alias contents: a rule that uses an alias is not expanded. Logs and live states: this is the configuration and nothing else. Whether the rules end with a logged deny: not checked yet.

Does the file hold passwords or keys?

Stored in usable form (clear text or base64): private keys of certificates and certificate authorities, WireGuard private and pre-shared keys, IPsec pre-shared keys, OpenVPN static keys, the passwords and shared secrets of authentication servers, and one-time-password seeds. Stored as hashes: user passwords and API key secrets. OPNsense’s manual calls the configuration data sensitive. 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.