Aller au contenu
EN English versionDemander une démo

Connect a pfSense firewall

For an organisation administrator. Procedure connector.firewall.pfsense, version 1, reviewed 2026-10-16 against the vendor’s own pages. It applies to the connector type firewall/pfsense.

It ships with the platform. In the console it opens with How to set this up, beside the form that adds the connector and on the connector’s settings.

Addresses are written <api_url>, <public_url> and <org> here: the console shows the same text with your deployment’s own.

  • A pfSense with the REST API package (pfSense-pkg-RESTAPI, v2) installed, and an administrator who can create a user and an API key for it.
  • Reads (rules, aliases, port forwards, interfaces, gateway status) are allowed operations. Writes (create, update, delete, restore a rule) are governed actions: they wait for a person’s approval and carry a compensation that puts the previous rule back.
  • The platform must be able to reach the firewall’s management address from where the API runs.
  1. Create a dedicated user whose privileges are only the REST API pages the operations use.
  2. Generate an API key for that user (the package’s own settings; check its documentation at pfrest.org for the current menu).
  3. Note the address (https://<pfsense>) and the CA that signed its certificate.

The key can do what its user’s privileges allow, so give a read-only user if agents only need to read. Even with write rights, no write happens without a human approval in Tranibor.

  1. Administration, Connectors, Declare: capability Firewall, type pfSense.
  2. base_url: https://<pfsense>, without /api/v2.
  3. ca_cert: the PEM of the CA, if the certificate is private. Keep verify_tls true: verify_tls: false is accepted in development only, logged each time, and refused in staging and prod.
  4. api_key: in the password field. Then open the operations the agents need.

Press Test on the connector, then run list_firewall_rules or gateway_status from a workflow.

  • A TLS error: the certificate’s CA is not trusted; set ca_cert.
  • 401 or 403: the API key is wrong, or its user lacks the privilege for that page.
  • 404 on /api/v2/...: the REST API package is missing or is not v2, or base_url ends in /api/v2.
  • A timeout: the platform cannot route to the management address.
Field What to put in it
api_key the REST API key of a pfSense user, typed once
base_url https://<pfsense>, without /api/v2
ca_cert PEM of the CA that signed the device’s certificate
verify_tls true; false only in development

Hosts the platform must be allowed to reach:

  • the pfSense host