Skip to content
Export guide · Firewalls and network

How to export your pfSense configuration, and what we check in it

Where you run it: pfSense web interface, or SSH to the firewall from a terminal on your computer.

In short

pfSense configuration export: the file pfSense writes of its own settings, which a configuration review reads setting by setting without connecting to pfSense.

How to export the pfSense configuration, step by step, what the review checks in the file (45 checks run), and what it does not read.

The fileXML, one config-<hostname>-<timestamp>.xml (backup.xml from the Secure Shell, SSH, route): the whole configuration inside one <pfsense> element
Checks run on it45
Highest grade its findings reachPROVEN
Feeds attack pathsNo
Not read from this export3 areas, listed below

Sources: pfSense documentation (1); pfSense documentation (2); the vendor table.

How to export it

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

In the pfSense console

  1. Diagnostics → Backup & Restore → under Backup Configuration, leave "Backup area" on All, leave "Skip packages" unticked and leave "Skip RRD data" ticked (RRD data is the history behind the graphs: it is not read, and it makes the file much larger)

    The vendor's page, checked 2026-11-11
  2. If "Backup SSH keys" is ticked, untick it, so that the file does not carry the firewall’s Secure Shell (SSH) host keys. Leave "Encryption" unticked: an encrypted file cannot be read

    The vendor's page, checked 2026-11-11
  3. Download configuration as XML → upload the config-<hostname>-<timestamp>.xml your browser saves

    The vendor's page, checked 2026-11-11

Or from the command line

  1. If Secure Shell (SSH) is already on, run this on your computer and type the admin password when asked: ssh root@<firewall-ip> cat /cf/conf/config.xml > backup.xmlThen upload backup.xml. SSH is off by default: if it is off on your firewall, use the web interface steps and do not turn it on for this.

    The vendor's page, checked 2026-11-11

What the file looks like

XML, one config-<hostname>-<timestamp>.xml (backup.xml from the Secure Shell, SSH, route): the whole configuration inside one <pfsense> element. It varies with the firewall: the file grows with its rules, aliases, packages and certificates, and RRD data, if included, adds 4 megabytes or more by pfSense’s own note on the page. The upload takes files up to 10 MB.

What it holds: Every setting of the firewall, package settings included, in one XML file: rules, NAT, aliases, interfaces, VPNs and users.

The file holds passwords and shared secrets, some in clear text. The command-line step redirects with > : Run these commands in bash (macOS, Linux or WSL): in Windows PowerShell 5.1, > writes UTF-16, which jq and the upload refuse.

Afterwards

Delete the downloaded file (and backup.xml, if you used Secure Shell, SSH) from your computer after the upload. The steps created nothing on the firewall, so there is nothing to remove there. If an administrator granted "WebCfg - Diagnostics: Backup & Restore" to a user for this, remove it again under System → User Manager.

If the export goes wrong

What you seeThe fix
The file starts with ---- BEGIN config.xml ---- and the upload says it does not match any expected formatThat download is encrypted. Download again with "Encryption" unticked, and upload the new file.
The file name starts with an area name, such as filter-config-..., and the upload says it does not match any expected formatThe download held one area of the configuration. Set "Backup area" to All, download again, and upload the new file.
The review reports that Suricata or Snort, or pfBlockerNG, is not installed, but it is"Skip packages" was ticked, so the file holds no package settings and those findings do not come from your firewall. Untick it, download again, and upload the new file.
The upload refuses the file as too large (over 10 MB)Download again with "Skip RRD data" ticked and "Include extra data" unticked: neither is read, and both make the file much larger.

What we read from it

Checks run
45 + 2 guidance items, not counted
Formats read
config.xml backup
Releases
2.6 to 2.7.x

Checks run is the number of checks that reached a result on this system's own export in our tests, as the vendor table shows it.

The areas checked

  • Firewall rules: passes from any source to any destination, and passes on WAN to ports 22, 80 or 443
  • NAT port forwards and 1:1 rules with any source
  • Web interface settings: HTTP or HTTPS, the port, HTTP Strict Transport Security (HSTS), the HTTP_REFERER check, the DNS rebinding check and login autocomplete
  • Secure Shell (SSH): on or off, the port, password or key sign-in, agent forwarding and the Login Protection threshold
  • The console menu password, the number of users with the page-all privilege, and whether a RADIUS or LDAP authentication server is set
  • VPN settings: IPsec phase 1 ciphers, hashes, Diffie-Hellman groups, aggressive mode and pre-shared keys; OpenVPN cipher, digest, compression and Transport Layer Security (TLS) key; WireGuard allowed addresses
  • DNS Resolver (Unbound): DNS Security Extensions (DNSSEC) and the interfaces it listens on
  • The Simple Network Management Protocol (SNMP) community, remote syslog, time servers and the notification sender address
  • Packages by name: Suricata or Snort, pfBlockerNG, ACME, HAProxy and AutoConfigBackup

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.

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

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

What we do not read from this export

  • 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 finding never comes from what the file does not hold: live traffic, running hosts and logs are not in a configuration export.

Questions

Who can export the pfSense configuration?

A user whose account or group holds the privilege "WebCfg - Diagnostics: Backup & Restore", because that privilege is what opens the page with the download. pfSense has no read-level privilege for this page: the same page also restores a configuration, and pfSense marks the privilege "(This privilege effectively gives administrator-level access to users in the group)". So the firewall administrator normally runs the download. The Secure Shell (SSH) route needs the admin account: other shell users, in Netgate’s words, "do not have root access privileges".

Does the export change anything?

Nothing in the firewall’s configuration: the download reads the saved configuration and sends it to your browser, and the Secure Shell (SSH) command reads one file. Neither saves or changes a setting, and nothing is installed on your computer.

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.