Skip to main content

pfSense Connection

Set up and change how pfSense Actions signs in to your firewall, with every change tested before it's saved.

Why Test Before Saving?

  1. Keeps the working connection in place when new settings can't sign in.
  2. Treats the password or key as a write-only secret, so the console never shows it after you save it.
  3. Lets you check the saved connection at any time without running an action.

Set Up the Connection

A new installation has no connection, so Overview shows Connect to pfSense, and every action answers 503 until you save one.

  1. Select Set up the connection, or open Connection.
  2. Fill in the fields described below, then select Test and save.

If you try to open another page or sign out after changing a field, the console asks before discarding it. Refreshing or closing the browser tab uses the browser's unsaved-changes warning too.

View the Connection

  • Overview shows the firewall's address, the SSH username, and the sign-in method under pfSense, with the credential hidden.
  • Connection shows the same values under Saved connection, with a form to change them below.

Test the Saved Connection

Select Test connection on Overview or Connection.

Last test shows whether the sign-in worked, and the sidebar's connection status changes to match. The connection test only signs in, so it doesn't ping or wake anything, and its result appears in the activity log.

pfSense connection page with the saved connection's address 192.168.1.1:22, SSH username admin, and private key sign-in, where Last test shows Signed in over SSH next to Test connection
A saved connection after a test

To hear about a connection that stops working without testing it yourself, add a notification destination that chose pfSense can't be reached. pfSense Actions then runs a scheduled check every 5 minutes, as described in Notifications.

Change Settings

  1. Open Connection and find Change connection.
  2. Edit pfSense address, SSH port, and SSH username as needed.
  3. Choose Private key or Password under Sign in with.
  4. Enter a new credential, or leave the field empty to keep the saved one.
  5. Select Test and save.
Change connection form with the pfSense address, SSH port, and SSH username filled in, Private key selected under Sign in with, an empty private key field that keeps the saved key, and Test and save
Changing the connection
FieldWhat it accepts
pfSense addressAn IPv4 or IPv6 address, not a hostname.
SSH portA number from 1 to 65535.
SSH usernameUp to 128 characters.
Private keyThe whole private key, including its BEGIN and END lines, with no passphrase.
PasswordThe account's SSH password.

pfSense Actions saves the settings only if the connection test signs in with them. If it can't, nothing changes, and the console reports the failure next to Test and save.

Switching between Private key and Password needs a new credential, because the saved one belongs to the other method.

Enter the Credential Again

If pfSense Actions started without its encryption key, it keeps the connection's address, port, username, and sign-in method, but removes the password or private key.

  • Sign-in under Saved connection shows Password, not saved or Private key, not saved, and the sidebar shows Not connected with Enter the password again or Enter the private key again.
  • Every action answers 503, and Test connection reports Enter the password or private key again, then save the connection.
  • The scheduled check for notifications stops until the credential is back, so pfSense can't be reached isn't sent in the meantime.
pfSense connection page under the Saved secrets were removed notice, which lists the pfSense private key, the authenticator app, and the Firewall alerts, Network alerts, and Ops chat notifications, where Sign-in shows Private key, not saved and the sidebar shows Not connected with Enter the private key again
A connection missing its private key

Enter the password or private key under Change connection and select Test and save. Backup and Recovery covers what else a lost key removes.

Environment File Values

warning

The PFSENSE_* environment variables are deprecated bootstrap values. When they're set and no connection is saved yet, or its password or private key was removed, pfSense Actions imports them as the connection on its next start, without testing them, and logs a warning at every start while they're set.

Change the connection on this page instead, and remove the variables.