Step by Step – pfSense webConfigurator MFA with PhenixID Authentication Services


This document will guide you through the steps to enable multi-factor authentication for the pfSense webConfigurator.

System Requirements

  • PhenixID Authentication Services 4.0 or higher
  • pfSense version 2.4.4-RELEASE or higher
  • pfSense SAML2 Authentication package (external pfSense package)



This document will guide you through the steps to enable multi-factor authentication for pfSense webConfigurator SSO.

Configure PhenixID Authentication Services as Identity Provider

    1. Login to Configuration Manager.
    2. Setup PhenixID Authentication Services as a SAML IdP using one of the Federation scenarios described here. (If the desired authentication method is not provided by a scenario, use the documentation for the SAML authenticator here)
    3. Set Post SLO URL = https://YOUR_PHENIXID_IDP_DOMAIN/saml/authenticate/logout/

Configure PAS assertion

  1. Login to Configuration Manager.
  2. Locate the Scenario-Federation setup earlier for pfSense.
  4. Modify the AssertionProvider valve to include the attribute containing the group membership for the pfSense user (carLicense is used in this example) 
  5. Save the changes

Configure pfSense webConfigurator SAML IdP settings

Follow the steps in this guide to install and enable pfSense webConfigurator for SAML2.

Configure Identity Provider (IdP) settings

Configure below settings to match the PAS settings for the previous configured SAML IdP

  • Identity Provider Entity ID
  • Identity Provider Sign-ON URL 
  • Identity Provider Groups Attribute

Configure Identity Provider x509 Certificate

  1. Fetch your IdP metadata by opening the URL: https://<pas-server>/saml/authenticate/<saml-authenticator-alias>?getIDPMeta
    Note: The link is case sensitive
  2. Copy the Certificate data from the <ds:X509Certificate> element and paste into a text editor.  
  3. Add —–BEGIN CERTIFICATE—– as first row and —–END CERTIFICATE—– as last row
  4. Copy the certificate into Identity Provider x509 Certificate information.
  5. Save the changes

Add pfSense as a trusted Service Provider to PhenixID Authentication Services

  1. Login to configuration manager
  2. Scenarios->Federation
  3. SAML Metadata upload
  4. Enter a name. Click Next
  5. Add the pfSense metadata url (provided to you by clicking on System/SAML2 menu, copy the URL for ).
    (If your PhenixID Authentication Services server is not able to reach external resources, browse to the pfSense metadata URL on another device and download the metadata to a file. Then upload the file in the SAML Metadata upload scenario).


  1. Browse to https://<your-pfsense-url>/saml2_auth/sso/acs/ 
  2. Authenticate 
  3. You should now be redirected to pfSense webConfigurator and be logged in


Verify server.log to make sure the SAML assertion contains the intended identity information and that correct user mapping has been made in pfSense.


Information provided in this document is for your information only. PhenixID makes no explicit or implied claims to the validity of this information. Any trademarks referenced in this document are the property of their respective owners.

The origin of this information may be internal or external to PhenixID. PhenixID makes all reasonable efforts to verify this information.

PhenixID -