Skip to content

FBI advisory on FortiGate (FortiBleed): what to check in your config

Firewall audit · pfSense · how-to

How to audit a pfSense firewall config: ten things to check

The ten most severe checks the review runs on a pfSense export, each with the setting or line it reads. The lines come from a made-up insecure sample file, so you can find the same setting in your own export.

Ten things to check

  1. Any-any allow rule

    CriticalFirewall

    Default-allow firewall rule.

    <source><any/></source> line 69 of pfsense-insecure.xml (the sample file)

  2. Management service reachable from WAN

    CriticalAdmin

    A pass firewall rule on the WAN interface targets a management port (WebGUI 80/443 or SSH 22), exposing the admin/console surface directly to the untrusted Internet rather than restricting it to a management VLAN or VPN.

    In the Admin settings of the export; the reader cites no single line for this check.

  3. WebGUI not forced to HTTPS

    HighAdmin

    HTTP exposes the admin login.

    <protocol>http</protocol> line 9 of pfsense-insecure.xml (the sample file)

  4. Captive portal without HTTPS

    HighCaptive portal

    Plaintext credentials.

    The setting it reads: captiveportal httpslogin

  5. Console without password

    HighConsole

    Console access unrestricted.

    The setting it reads: consolepass

  6. SSH password auth permitted

    HighSSH

    Public-key only is required.

    The setting it reads: sshdkeyonly

  7. WebGUI HTTP_REFERER (anti-CSRF) check disabled

    HighAdmin

    Disabling the HTTP_REFERER check removes pfSense's cross-site request forgery guard on the admin interface, letting a malicious page submit authenticated state-changing requests.

    In the Admin settings of the export; the reader cites no single line for this check.

  8. IPsec phase-1 in Aggressive mode

    HighIPsec

    PSK exposure.

    In the IPsec settings of the export; the reader cites no single line for this check.

  9. IPsec phase-1 uses weak cipher / hash / DH group

    HighIPsec

    IPsec phase-1 negotiates a broken or legacy primitive — DES/3DES/Blowfish/CAST encryption, MD5/SHA1 hashing, or DH groups 1/2/5 (≤1024-bit MODP) — which are computationally feasible to break or downgrade (e.g.

    In the IPsec settings of the export; the reader cites no single line for this check.

  10. No remote syslog target

    HighLogging

    Logs are local-only.

    In the Logging settings of the export; the reader cites no single line for this check.

How to export the file

How long it takes: About 5 minutes.

  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)

  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

  3. Download configuration as XML → upload the config-<hostname>-<timestamp>.xml your browser saves

Every step, the command-line route, and the errors you may meet: 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

Live sessions, logs and running hosts are not in a configuration export, so no finding comes from them.

The rest of the review

The review runs 45 checks on a pfSense export. All of them, with the part of the export each reads: pfSense firewall audit from the config file. The same items across every firewall: the firewall audit checklist.