Connect a pfSense firewall
- graal Agentic Platform
- Version 0.30 (actuelle)
- Open source · Apache 2.0
- Source : graalsystems/tranibor@v0.30.1
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.
Before you start
Section intitulée « Before you start »- 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.
At pfSense
Section intitulée « At pfSense »- Create a dedicated user whose privileges are only the REST API pages the operations use.
- Generate an API key for that user (the package’s own settings; check its documentation at pfrest.org for the current menu).
- Note the address (
https://<pfsense>) and the CA that signed its certificate.
Permissions
Section intitulée « Permissions »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.
In Tranibor
Section intitulée « In Tranibor »- Administration, Connectors, Declare: capability Firewall, type pfSense.
base_url:https://<pfsense>, without/api/v2.ca_cert: the PEM of the CA, if the certificate is private. Keepverify_tlstrue:verify_tls: falseis accepted in development only, logged each time, and refused in staging and prod.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.
When it fails
Section intitulée « When it fails »- A TLS error: the certificate’s CA is not trusted; set
ca_cert. 401or403: the API key is wrong, or its user lacks the privilege for that page.404on/api/v2/...: the REST API package is missing or is not v2, orbase_urlends 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 |
Network egress
Section intitulée « Network egress »Hosts the platform must be allowed to reach:
the pfSense host