Firebox Authentication Portal Integration with Duo and AuthPoint

This document describes how to set up multi-factor authentication (MFA) for your Firebox Authentication Portal with Duo and AuthPoint.

Duo Single Sign-On is a cloud-hosted single sign-on (SSO) solution. In this integration, Duo integrates with AuthPoint as an identity provider (IdP) and your Firebox Authentication Portal as the service provider(SP). AuthPoint provides the primary authentication and Duo SSO completes the secondary authentication.

Duo Single Sign-On does not officially support single logout (SLO).

Contents

Topology

Duo communicates with various cloud-based services and service providers with the SAML protocol. This integration uses Duo to communicate with a Firebox over a public Internet connection.

Screenshot of Topology diagram

Before You Begin

Before you begin these procedures, make sure that:

  • You have a Duo administrator account.
  • A token is assigned to a user in Duo Mobile.
  • The Firebox has Fireware v12.11 or higher installed.
  • You have a fully qualified domain name (FQDN) that can be resolved to the external IP address of the Firebox.

Additional charges might apply to use Duo.

To set up multi-factor authentication (MFA) for your Authentication Portal with Duo and AuthPoint, complete these steps:

  1. Enable the Firebox SAML Authentication Server
  2. Configure a WG-Auth Firewall Policy
  3. Configure Duo
  4. Complete SAML Authentication Server Setup
  5. Configure AuthPoint
  6. Add Users or Groups for the SAML Authentication Server

Enable the Firebox SAML Authentication Server

To enable the Firebox SAML authentication server:

  1. Log in to Fireware Web UI at:
    https://<your Firebox IP address>:8080
  2. From the navigation menu, select Authentication > Servers.
    The Authentication Servers page opens.
  3. Click SAML.
    The SAML settings page opens.
  4. Screenshot of Firebox, Firebox enable SAML settings

  5. Select the Enable SAML check box.
  6. In the IdP Name text box, type a name for the identity provider. In our example, we type Duo-SAML.
  7. In the Host Name text box, type an FQDN that resolves to the Firebox external interface.
  8. Keep the IdP Metadata URL text box blank for now. You will add the IdP settings later.
  9. Click Save.

Configure a WG-Auth Firewall Policy

The Authentication Portal is a page that the Firebox hosts. For the Firebox to allow connections to the Authentication Portal, you must add a WG-Auth firewall policy to the Firebox configuration. A WG-Auth policy allows TCP traffic on port 4100.

To configure a WG-Auth firewall policy:

  1. Log in to Fireware Web UI at:
    https://<your Firebox IP address>:8080
  2. Select Firewall > Firewall Policies.
  3. Click Add Policy.
    The Add Firewall Policy page opens.
  4. Screenshot of Firebox, Add Firewall Policy page

  5. From the Packet Filter drop-down list, select WG-Auth.
  6. Click Add Policy.
    The policy configuration page opens.
  7. Screenshot of Firebox, firewall configuration page

  8. On the Settings page:
    1. In the From section, specify the source of connections the policy applies to.
    2. In the To section, add the Firebox alias.
    3. For more information about how to configure the source and destination, go to Set Access Rules for a Policy.
  9. (Optional) Select the Send a Log Message check box.
  10. Click Save.
  11. Open a web browser and go to the SP Metadata URL at:
    https://[Host name or Firebox IP address]:4100/auth/saml
    The SAML 2.0 Configuration for WatchGuard Authentication Portal page opens.
  12. Screenshot of Firebox, Authentication Portal Metadata

  13. From the Option 2 section, copy these values of these parameters to use when you create a SAML application in Duo:
    • SAML Entity ID:
      https://<host name>:4100/auth/saml
    • Assertion Consumer Service (ACS) URL:
      https://<host name>:4100/auth/saml/acs
    • Single Logout Service (SLS) URL:
      https://<host name>:4100/auth/saml/sls
  14. To download the X.509 Certificate, click Download Certificate.

Download Metadata File from AuthPoint

The metadata provides your resource with the information necessary to identify AuthPoint as a trusted identity provider.

To download the metadata file from the AuthPoint management UI:

  1. Log in to WatchGuard Cloud.
  2. From the navigation menu, select Configure > AuthPoint. If you have a Service Provider account, you must select an account from the Account Manager.
  3. Select Resources.

    The Resources page opens.
  4. Screenshot of the AuthPoint Resources page.

  5. Click Certificate.

    The Certificates page opens.
  6. Screenshot that shows the options to download the metadata and certificate on the AuthPoint Certificates page.

  7. Next to the AuthPoint certificate you want to associate with your resource, click the screenshot of extend icon, then select Download Metadata and Download Certificate. We recommend that you select the certificate with the latest expiration date.
  8. Open the metadata file you downloaded and copy the values of these parameters to use when you configure AuthPoint as an identity provider in Duo:
    • EntityID
    • SingleLogoutService Location
    • SingleSignOnService Location

Configure Duo

To configure Duo, complete these steps:

  1. Configure AuthPoint as an Identity Provider in Duo
  2. Add Users and Groups in Duo
  3. Configure the Authentication Portal as a Service Provider in Duo

Configure AuthPoint as an Identity Provider in Duo

After you download the metadata file from the AuthPoint management UI, you can configure AuthPoint as an identity provider in Duo.

To configure AuthPoint as an identity provider in Duo:

  1. Log in to the Duo Admin Panel.
  2. From the navigation menu, select Applications > SSO Settings.
    The Add Authentication Source page opens.
  3. Screenshot of the Add Authentication Source page in Duo.

  4. Click Add SAML Identity Provider.
    The SAML Identity Provider Configuration page opens.
  5. Screenshot of the SAML Identity Provider Configuration page in Duo.

  6. From the 1. Configure the SAML Identity Provider section, copy the values of the Entity ID and Assertion Consumer Service URL parameters to use when you Add a SAML Resource in AuthPoint.
  7. In the 3. Configure Duo Single Sign-On section:
    1. In the Display Name text box, type a descriptive name to identify AuthPoint. In this example, we use WatchGuard AuthPoint.
    2. In the Entity ID text box, type or paste the entityID value you copied from the AuthPoint metadata file in the Download Metadata File from AuthPoint section.
    3. In the Single Sign-On URL text box, type or paste the SingleSignOnService Location value you copied from the AuthPoint metadata file in the Download Metadata File from AuthPoint section.
    4. In the Single Logout URL text box, type or paste the SingleLogoutService Location value you copied from the AuthPoint metadata file in the Download Metadata File from AuthPoint section.
    5. To upload the certificate from the identity provider (AuthPoint), click Browse and upload the AuthPoint certificate you downloaded in the Download Metadata File From AuthPoint section.
    6. Keep the default values for other settings.
  8. Screenshot of the Duo SSO settings for AuthPoint.

  9. Click Save.
  10. Click Yes, Enable This Source.
  11. From the navigation menu, select Applications > Routing Rules.
    The Routing Rules page opens.
  12. Screenshot of Routing Rules page

  13. From the Use this Authentication Source drop-down list, select the SAML Identity Provider authentication source you added in the Configure AuthPoint as an Identity Provider in Duo section. In this example, we select WatchGuard AuthPoint.
  14. By default, your primary authentication source is configured as an authentication source for your routing rule. For additional authentication sources, make sure to set the default rule to the SAML authentication source you need. Alternatively, you can add a routing rule. For more information, go to How to Use Duo Single Sign-On in the Duo documentation.

  15. Click Save.

Add Users and Groups in Duo

If you want to restrict access to the Authentication Portal to only certain Duo users, you can add those users to a group.

To create a new user and group in Duo:

  1. Log in to the Duo Admin Panel.
  2. From the navigation menu, select Users > Groups.
  3. Click Add Group.
    The Add Group page opens.
  4. Screenshot of Duo, Add a group

  5. In the Group Name text box, type a group name. In this example, we use SAMLTest.
  6. Click Add Group.
  7. From the navigation menu, select Users > Users.
  8. Click Add User.
    The Add User page opens.
  9. In the Username text box, type a user name. The Duo user name should match the user name in AuthPoint.
  10. Click Add User.
    The user settings page opens.
  11. Screenshot of Duo, Add a user

  12. In the Display Name text box, type a display name.
  13. In the Email Address text box, type the Duo user email address. The email address does not have to be the same as the AuthPoint user email address.
  14. For Groups, select the group you created. In this example, we select SAMLTest.
  15. Keep the default values for all other settings.
  16. Click Save Changes.

After you save changes, you must enroll users and activate Duo Mobile. For more information, go to the Duo enrollment documentation.

Configure the Authentication Portal as a Service Provider in Duo

To add a SAML application and configure the Authentication Portal as a service provider in Duo:

  1. Log in to the Duo Admin Panel.
  2. From the navigation menu, select Applications > Protect an Application.
    The Protect an Application page opens.
  3. Screenshot of Duo, Protect an Application

  4. In the Application list, for the Generic SAML Service Provider application, click Protect.
    The Generic SAML Service Provider - Single Sign-On page opens.
  5. Screenshot of Duo, SSO Service Provider Generic SP application

  6. (Optional) In the Application Name text box, type a name for this SAML application.
  7. For User Access:
    • To provide access to specific groups, select Enable Only for Permitted Groups, and select the group you created in the Add Users and Groups in Duo section. In this example, we select SAMLTest.
    • To provide access to all users, select Enable for All Users.

      By default, no users are assigned to the application. This setting applies to only users who exist in Duo with the Active status.


  8. From the Metadata section, copy the the value of the Metadata URL parameter. You need this URL to complete the Firebox SAML Authentication Server configuration.
  9. In the Service Provider section, from the Metadata Discovery drop-down list, select None (Manual Input).
  10. In the Entity ID text box, paste the SAML Entity ID you copied from the SAML 2.0 Configuration page in the Configure a WG-Auth Firewall Policy section.
  11. In the Assertion Consumer Service (ACS) URL text box, paste the Assertion Consumer Service (ACS) URL you copied from the SAML 2.0 Configuration page in the Configure a WG-Auth Firewall Policy section.
  12. In the Single Logout URL text box, paste the Single Logout Service (SLS) URL you copied from the SAML 2.0 Configuration page in the Configure a WG-Auth Firewall Policy section.
  13. In the SAML Response section, from the NameID Format drop-down list, select urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress.
  14. From the NameID Attribute drop-down list, select <Email Address>.
  15. From the Signature Algorithm drop-down list, select SHA256.
  16. For Signing Options, select the Sign Response and Sign Assertion check boxes.
  17. In the Assertion Encryption section, select the Encrypt the SAML Assertion check box.
  18. For Existing Certificate, click Browse, then upload the X.509 Certificate you downloaded from the Firebox SAML 2.0 Configuration page in the Configure a WG-Auth Firewall Policy section.
  19. From the Assertion Encryption Algorithm drop-down list, select AES256-CBC.
  20. Screenshot of Duo, generic service provider application SAML Response settings

  21. (Optional) If you want to use user authentication, skip Step 19.
  22. For Map Attributes:
    1. From the IdP Attribute drop-down list, select Groupname.
    2. In the SAML Response Attribute text box, type memberOf.
  23. Screenshot of Duo, generic service provider application map attributes

    For SAML Response Attribute, memberOf is the default Group Attribute Name in the IdP settings when you enable SAML on the Firebox. You can edit it as you want.

  24. Keep the default values for all other settings.
  25. Click Save.

Complete SAML Authentication Server Setup

To complete SAML authentication server setup on your Firebox:

  1. Log in to Fireware Web UI at: https://<your Firebox IP address>:8080
  2. From the navigation menu, select Authentication > Servers.
  3. Select SAML.
    The SAML settings page opens.
  4. Screenshot of Firebox, Firebox Auth Server IdP metadata URL

  5. In the IdP Metadata URL text box, paste the value of the Metadata URL you copied in the Configure the Authentication Portal as a Service Provider in Duo section.
  6. Click Save.

Configure AuthPoint

To configure AuthPoint, complete these steps:

  1. Add a SAML Resource in AuthPoint
  2. Add a Group in AuthPoint
  3. Add an Authentication Policy to AuthPoint
  4. Add Users to AuthPoint

Add a SAML Resource in AuthPoint

From the AuthPoint management UI:

  1. From the navigation menu, select Resources. Click Add Resource.
    The Add Resource page opens.

  1. From the Type drop-down list, select SAML.
    Additional fields appear.

Screenshot of WGC, add SAML resource

  1. In the Name text box, type a name for this resource.
  2. From the Application Type drop-down list, select Others.
  3. In the Service Provider Entity ID text box, type or paste the EntityID value you copied in the Configure AuthPoint as an Identity Provider in Duo section.
  4. In the Assertion Consumer Service text box, type or paste the Assertion Consumer Service URL value you copied in the Configure AuthPoint as an Identity Provider in Duo section.
  5. From the User ID Sent On Redirection To Service Provider drop-down list, select Email or User Name.
  6. From the Signature Method drop-down list, select SHA-256.
  7. From the AuthPoint Certificate drop-down list, select the certificate to associate with your resource. This must be the same certificate that you downloaded the metadata for in the Download Metadata File From AuthPoint section.
  8. From the Custom Attributes section, click Add Attribute.
  9. Screenshot of WGC, SAML resource attribute

  10. In the Attribute Name text box, type Email.
  11. From the Get Value From drop-down list, select User Email.
  12. Click Save.
  13. (Optional) If you want to use user authentication, skip Steps 15-18.
  14. Click Add Attribute again.
  15. In the Attribute Name text box, type the attribute name you created in the Configure the Authentication Portal as a Service Provider in Duo section. In this example, we type Groupname.
  16. In the Get Value From drop-down list, select User Groups.
  17. To save the attribute, click Save.
  18. To save the resource, click Save.

Add a Group in AuthPoint

You must have at least one group in AuthPoint. If you already have a group, you do not have to add another group.

To add a WatchGuard Cloud-hosted group to the WatchGuard Cloud Directory:

  1. Go to Configure > Directories and Domain Services.
  2. Click the WatchGuard Cloud Directory domain name. If you have not yet added the WatchGuard Cloud Directory, click Add Authentication Domain and select the WatchGuard Cloud Directory.
    The New Group page appears.

Screenshot that shows the Directories and Domain Services page.

  1. In the Groups tab, click Add Group.
  2. In the Group Name text box, type a descriptive name for the group.
  3. (Optional) In the Description text box, type a description of the group.

Screen shot of the Add Group page.

  1. Click Save.
    Your group is added to the WatchGuard Cloud Directory and to AuthPoint.

Add an Authentication Policy to AuthPoint

Authentication policies specify which resources users can authenticate to.

You must have at least one authentication policy in AuthPoint that includes the WatchGuard resource. If you already have authentication policies, you do not have to create a new authentication policy. You can add this resource to your existing authentication policies.

Users that do not have an authentication policy for a specific resource cannot authenticate to log in to that resource.

To configure an authentication policy:

  1. From the navigation menu, select Authentication Policies.
  2. Click Add Policy.
    The Add Policy page opens.
  3. Screenshot of WGC, Add AuthPoint Policy

  4. In the Name text box, type a name for this policy.
  5. From the Select the Authentication Options drop-down list, select Authentication Options, then select the Password check box. Do not select other MFA options.
  6. For Groups, select which groups this policy applies to. You can select more than one group. To configure this policy to apply to all groups, select All Groups.
  7. For Resources, select the resource that you created in the Add a SAML Resource in AuthPoint section. If you want this policy to apply to additional resources, select each resource this policy applies to. To configure this policy to apply to all resources, select All Resources.
  8. (Optional) If you have configured policy objects such as Network Location, select which policy objects apply to this policy. When you add a policy object to a policy, the policy only applies to user authentications that match the conditions of the policy object. For example, if you add a Network Location to a policy, the policy applies to only user authentications that come from that Network Location. Users who have only a policy that includes a Network Location do not get access to the resource when they authenticate outside of that Network Location This is because they do not have a policy that applies, not because authentication is denied.
  9. Click Save.
    Your policy is created and added to the end of the policy list.

When you create a new policy, we recommend that you review the order of your policies. AuthPoint always adds new policies to the end of the policy list.

Add Users to AuthPoint

Before you assign users to a group, you must add the users to AuthPoint. There are two ways to add AuthPoint user accounts:

  • Sync users from an external user database
  • Add WatchGuard Cloud-hosted AuthPoint users

Each user must be a member of a group. You must add at least one group before you can add users to AuthPoint.

Add Users or Groups for the SAML Authentication Server

To add users or groups for the SAML authentication server:

  1. Log in to Fireware Web UI at:
    https://<your Firebox IP address>:8080
  2. From the navigation menu, select Authentication > Users and Groups.
  3. Click Add.
    The Add User or Group page opens.
  4. Screenshot of add User or Group

  5. For Type, select Group.

    To manage users, you can add a group that matches an AuthPoint user group, or you can add a user with a name that matches an AuthPoint user name. In our example, we add a group, but you can add a user instead.

  6. In the Name text box, type your group name. This group name must exactly match your AuthPoint group name. This is case–sensitive.
  7. From the Authentication Server drop-down list, select the SAML authentication server you created. In this example, we select Duo-SAML.
  8. Click OK.
  9. Click Save.

Test the Integration

To test your Firebox Authentication Portal integration with AuthPoint and Duo, you can authenticate with three methods:push, passkey, or phone call. In this example, we use the push authentication method. For more information about Duo Two-Factor Authentication, go to Two-Factor Authentication Guidelines in the Duo documentation.

If you do not create a user in Duo, a user is automatically created in Duo when you log in to Authentication Portal with SSO.

To test multi-factor authentication for your Authentication Portal with AuthPoint and Duo:

  1. In a web browser, go to the Authentication Portal:
    https://<Host Name of Firebox SAML Authentication Server>:4100
    The login page opens with a button for the SAML authentication server you configured.
  2. Screenshot of Authentication Portal with new SAML log-in option

  3. To log in, click the button for the SAML Authentication server. In this example, we click Duo-SAML.
  4. Type your email address or AuthPoint user name, then click Next.
  5. In the Password text box, type your password.
  6. Screenshot of AuthPoint log-in

  7. Click Finish.
    Duo SSO prompts you to complete two-factor authentication.
  8. Screenshot of Duo push notification message

  9. Approve the push notification on your Duo Mobile app.
  10. Tap Yes, This is My Device.
    You are logged in to the Authentication Portal.
  11. Screenshot of successful authentication message in Authentication Portal