Firebox Mobile VPN with SSL and SAML Integration with Duo and AuthPoint

This integration guide describes SAML authentication through the Mobile VPN with SSL client with Duo as the Identity Provider.

The SAML authentication server in Fireware v12.11 or higher can integrate with several identity providers. After you configure the SAML authentication server on the Firebox, you can integrate it with the WatchGuard Mobile VPN with SSL client.

The Mobile VPN with SSL client for Windows supports SAML authentication with v12.11 and higher. The Mobile VPN with SSL client for macOS supports SAML authenticatiopn with v12.11.2 and higher. Third-party Open VPN clients are not supported.

Contents

Integration Summary

The hardware and software used in this guide include:

  • Duo administrator account
  • Token assigned to a user in Duo mobile
  • WatchGuard Firebox with Fireware v12.11 or higher
  • WatchGuard Mobile VPN with SSL client for Windows or macOS
  • Fully qualified domain name (FQDN) that resolves to the external IP address of the Firebox

Additional charges might apply for the use of Duo.

Test Topology

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

Screenshot of Topology diagram

To configure SAML authentication through the Mobile VPN with SSL client with Duo as the Identity Provider:

  1. Enable the Firebox SAML Authentication Server
  2. Configure Firebox Mobile VPN with SSL
  3. Configure Duo
  4. Complete SAML Authentication Server Setup
  5. Configure AuthPoint
  6. Complete Firebox Mobile VPN with SSL Setup

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.
  3. Select SAML.
    The SAML settings page opens.
  4. Screenshot of Firebox, Firebox Auth Server setup 1

  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, we add the IdP settings later.
  9. Click Save.

Configure Firebox Mobile VPN with SSL

To configure Mobile VPN with SSL on the Firebox:

  1. Log in to Fireware Web UI at: https://<your Firebox IP address>:8080
  2. From the navigation menu, select VPN > Mobile VPN.
  3. From the SSL section, click Manually Configure.
    The Mobile VPN with SSL configuration settings page opens.
  4. Screenshot of Firebox, Firebox Access Portal config 1

  5. Select the Activate Mobile VPN with SSL check box.
  6. In the Primary text box, type the FQDN that resolves to the Firebox external interface. This is the domain name that Mobile VPN with SSL clients connect to by default and must be the same as the Host Name you configure in the Enable the Firebox SAML Authentication Server section.
  7. Select the Authentication tab.
    The Authentication page opens.
  8. Screenshot of Firebox, Firebox Access Portal config 2

  9. In the Authentication Server Settings section, from the Authentication Server drop-down list, select the SAML authentication server you created in the Enable the Firebox SAML Authentication Server section. In our example, we select Duo_SAML.
  10. Click Add.
  11. Click Save.
    The Update IdP Configuration page opens.
  12. Screenshot of Firebox, Firebox Access Portal config 3

  13. Copy the SP Metadata URL, then click Done.
  14. From a web browser, go to the SP Metadata URL you copied in the previous step:
    https://[Host name or Firebox IP address]/auth/saml
    The SAML 2.0 Configuration page opens.
  15. Screenshot of Firebox, Firebox SAML SP info

  16. From the Option 2 section, copy these details to Create a SAML Application in Duo:
    • SAML Entity ID in this format:
      https://<host name>/auth/saml
    • Assertion Consumer Service (ACS) URL in this format:
      https://<host name>/auth/saml/acs
    • Single Logout Service (SLS) URL in this format:
      https://<host name>/auth/saml/sls
  17. To download the X.509 Certificate, click Download Certificate.

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. Create a SAML Application in Duo.

Configure AuthPoint as an Identity Provider in Duo

To configure AuthPoint as an identity provider in Duo, you must:

  1. Download the metadata file from the AuthPoint management UI.
  2. Configure AuthPoint as an identity provider in Duo.

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 , 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 value of the entityID, SingleLogoutService Location, and SingleSignOnService Location parameters. You need this information when you configure AuthPoint as an identity provider in Duo.

Configure AuthPoint as 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 Configure the SAML Identity Provider section, copy the value of the Entity ID and Assertion Consumer Service URL parameters. You need this information when you configure AuthPoint.
  7. Scroll down to the Configure Duo Single Sign-On section.
  8. Screenshot of the Duo SSO settings for AuthPoint.

  9. In the Display Name text box, type a descriptive name to identify AuthPoint.
  10. 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.
  11. 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.
  12. 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.
  13. To upload the certificate from the identity provider (AuthPoint), click Choose File and upload the AuthPoint certificate you downloaded in the Download Metadata File From AuthPoint section.
  14. Keep the default values for all other settings.
  15. Click Save.
  16. Click Yes, Enable This Source.
  17. From the navigation menu, select Applications > Routing Rules.
    The Routing Rules page opens.
  18. Screenshot of Duo, Routing Rules page

  19. From the Use This Authentication Source drop-down list, select the authentication source you added. In our example, we select WatchGuard AuthPoint.
  20. When you add your first authentication source, the default rule is set to your configured authentication source (by name). If you add additional authentication sources, make sure to set the default rule to the SAML authentication source (by name) you need. Alternatively, you can add a routing rule. For more information, go to How to use Duo Single Sign-On.

  21. Click Save.

Add Users and Groups in Duo

To allow access to the specific application in Duo, you must always assign a user 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. Screenshot of Duo, Add a user

  10. In the Username text box, type a user name. The Duo user name must be same as the AuthPoint user name.
  11. In the Display Name text box, type a display name.
  12. 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.
  13. For Groups, select the group you created in Step 4. In this example, we select SAMLTest.
  14. Keep the default values for all other settings.
  15. Click Save Changes.
  16. After you save the changes, the user you created must be enrolled. For more information, go to the Duo enrollment documentation.

Create a SAML Application in Duo

To create a SAML application 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 page

  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, Generic SAML Service Provider page

  6. (Optional) In the Application Name text box, type a name for this SAML application.
  7. For User Access:
    • To allow access to users in a specific group, select Enable Only for Permitted Groups, then select the group you created in the Add Users and Groups in Duo section. In this example, we select SAMLTest.
    • To allow access to all users, select Enable for all users. By default, no users are assigned to the application. This setting only applies to users with the Active status in Duo.
  8. From the Metadata section, copy the value of the Metadata URL parameter. You need this URL to Complete SAML Authentication Server Setup.
  9. Scroll down to the Service Provider section.
  10. Screenshot of Duo, SSO Service Provider config

  11. From the Metadata Discovery drop-down list, select None (Manual Input).
  12. In the Entity ID text box, paste the value of the SAML Entity ID parameter you copied from the SAML 2.0 Configuration page in the Configure Firebox Mobile VPN with SSL section.
  13. In the Assertion Consumer Service (ACS) URL text box, paste the value of the Assertion Consumer Service (ACS) URL parameter you copied from the SAML 2.0 Configuration page in the Configure Firebox Mobile VPN with SSL section.
  14. In the Single Logout URL text box, paste the value of the Single Logout Service (SLS) URL parameter you copied from the SAML 2.0 Configuration page in the Configure Firebox Mobile VPN with SSL section.
  15. Scroll down to the SAML Response section.
  16. Screenshot of Duo, SAML Attributes

  17. From the NameID Format drop-down list, select urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified.
  18. From the NameID Attribute drop-down list, select <Email Address>.
  19. From the Assertion Encryption section:
    1. Select the Encrypt the SAML Assertion check box.
    2. For Existing Certificate, click Choose File to upload the X.509 Certificate you downloaded from the SAML 2.0 Configuration page in the Configure Firebox Mobile VPN with SSL section.
    3. From the Assertion Encryption Algorithm drop-down list, select AES256-CBC.
  20. Screenshot of Duo, SAML Attributes

  21. For user authentication only, additional attributes are not required, and you can skip this step. For group authentication, from the Map attributes section, in the IdP Attribute text box, type Groupname. In SAML Response Attribute, type memberOf.
  22. Screenshot of Duo, SAML Attributes

    When you configure an authentication server on the Firebox, the memberOf is the default Group Attribute Name for the SAML Response Attribute parameter. You can edit the value for the Group Attribute Name, as needed.

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

Complete SAML Authentication Server Setup

To complete SAML authentication server setup, from Fireware Web UI:

  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 Entra ID, Firebox Auth Server setup 3

  5. In the IdP Metadata URL text box, paste the value of the Metadata URL parameter you copied in the Create a SAML Application in Duo section.
  6. Add ?slo=true to the end of the URL.
    The URL format is case-sensitive.
  7. 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 value of the EntityID parameter you copied in the Configure AuthPoint as Identity Provider in Duo section.
  4. In the Assertion Consumer Service text box, type or paste the value of the AssertionConsumerService Location parameter you copied in the Configure AuthPoint as Identity Provider in Duo section.
  5. From the User ID Sent On Redirection To Service Provider drop-down list, select Email.
  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. In the Attribute Name text box, type Email.
  10. From the Get Value From drop-down list, select User email.
  11. Click Save.
  12. (Optional) If you want to use user authentication, skip Steps 15 —18.
  13. Click Add Attribute again.
  14. In the Attribute Name text box, type Groupname.
  15. In the Get Value From drop-down list, select User Groups.
  16. To save the attribute details, click Save.
  17. Screenshot of WGC, SAML resource attribute

  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 who 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. In the Name text box, type a name for this policy.
  4. From the Select the Authentication Options drop-down list, select Authentication Options, then select the Password check box. Do not select other MFA options.
  5. In the Groups option, 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.
  6. In the Resources option, 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.
  7. (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 are the same as the conditions of the policy objects. For example, if you add a Network Location to a policy, the policy only applies to user authentications that come from that Network Location. Users who only have a policy that includes a Network Location do not have access to the resource when they authenticate outside of that Network Location (because they do not have a policy that applies, not because authentication is denied).
  8. Screenshot of WGC, Add AuthPoint Policy

  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.

Complete Firebox Mobile VPN with SSL Setup

To complete Firebox Mobile VPN with SSL setup, from Fireware Web UI:

  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. There are two methods to manage your users. You can add a user for user authentication or a group for group authentication. For user authentication, the user name must be the same as the AuthPoint user name. For group authentication, the group name must be the same as the AuthPoint group name. In our example, we add a group for group authentication.

    Screenshot of Firebox, Firebox Access Portal config 6

  5. For Type, select Group.
  6. In the Name text box, type your group name. This group name must be the same as your AuthPoint group name. The name is case–sensitive.
  7. From the Authentication Server drop-down list, select the authentication server where the user or group exists.
  8. Click OK.
  9. Click Save.
  10. From the navigation menu, select VPN > Mobile VPN.
  11. From the SSL section, click Configure.
  12. Click the Authentication tab.
    The Authentication settings page opens.
  13. Screenshot of Firebox, Firebox Access Portal config 7

  14. From the Users and Groups section, select the groups or users you created previously.
  15. Click Save.

Test the Integration

To test Mobile VPN with SSL authentication integration with 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 Duo Two-Factor Authentication Guidelines in the Duo documentation.

  1. Open the WatchGuard Mobile VPN with SSL client.
  2. Screenshot of Access Portal, Integration test 1

  3. In the Server text box, type the host name of your Firebox SAML authentication server.
  4. Select the Use SAML Authentication check box.
  5. Click Connect.
  6. In the User Name or Email text box, enter the email address or AuthPoint user name, then click Next.
  7. Screenshot of Access Portal, Integration test 2

  8. In the Password text box, type your user password, then click Finish.
    Duo Single Sign-On prompts the user to complete two-factor authentication.
  9. Approve the push notification on your Duo Mobile app.
  10. Screenshot of Access Portal, Integration test 3

  11. Click Yes, This is my Device.
  12. After successful authentication, you connect to the VPN.