Firebox Mobile VPN with IPSec Integration with Azure AD Users
Deployment Overview
WatchGuard provides integration instructions to help our customers configure WatchGuard products to work with products created by other organizations. If you need more information or technical support about how to configure a third-party product, see the documentation and support resources for that product.
This document describes how to set up Active Directory authentication for Mobile VPN with IPSec.
Integration Summary
The hardware and software used in this guide include:
- Firebox with Fireware v12.7.1
- Microsoft Azure
Topology
This topology diagram shows the data flow for Active Directory authentication with a WatchGuard Firebox and Azure AD Domain Services.
Before You Begin
Before you begin these procedures, make sure that:
- You have an Azure Active Directory global administrator account within the Azure Active Directory tenant.
- You have an active Azure subscription.
- You have created and configured Azure Active Directory Domain Services (Azure AD DS).
Additional charges might apply for the use of Microsoft Azure. To learn more about Microsoft Azure, go to What is Microsoft Entra Domain Services.
Configure Azure
The steps in this section cover how to configure Azure AD.
Configure Secure LDAP
To configure Secure LDAP:
- Log in to the Azure portal with your Microsoft Azure account credentials.
- Click Resource groups.
- Select your Azure AD Domain Services resource group.
- Click the Azure AD Domain Services.
- Select Settings > Secure LDAP.
- Enable the Secure LDAP toggle.
- Enable the Allow secure LDAP access over the internet toggle.
- Next to the .PFX file with secure LDAP certificate text box, click the folder icon and upload your certificate. For information about how to create and export the certificate, see Configure Secure LDAP in the Microsoft documentation.
- In the Password to decrypt .PFX file text box, type the password.
- Click Save.
- Select Properties.
- Copy the Secure LDAP external IP addresses value. You need this information when you configure the Firebox.
Configure a Security Rule in Azure
To configure a security rule in Azure:
- In the Azure portal, click Resource groups.
- Select your Azure AD Domain Services resource group.
- Select the network security group.
- Select Settings > Inbound security rules > Add.
- From the Source drop-down list, select IP Addresses.
- In the Source IP addresses/CIDR ranges text box, type the public IP address or range for your environment.
- From the Destination drop-down list, select Any.
- From the Service drop-down list, select Custom.
- In the Destination port ranges text box, type 636.
- For Protocol, select TCP.
- In the Priority text box, type a number between 100 and 4096. In our example, we type 311.
- In the Name text box, type a name.
- Leave the default value for all other settings.
- Click Add.
Add an Azure Group and User
To add an Azure group and user:
- Go back to the Azure home page.
- Click Azure Active Directory.
- Select Manage > Groups.
- Click + New group.
- From the Group type drop-down list, select Security.
- In the Group name text box, type a group name.
- From the Membership type drop-down list, select Assigned.
- Click Create.
- To add a user in Azure, select Manage > Users.
- Click + New user and enter your user information.
- Click Create.
Users must change their passwords before they can use Azure AD DS. The password change process causes the password hashes for Kerberos and NTLM authentication to be generated and stored in Azure AD. The account is not synced from Azure AD to Azure AD DS until the password is changed. It might take a few minutes after the password change before the new password can be used in Azure AD DS.
Configure the Firebox
You must configure the Active Directory authentication settings and enable Mobile VPN with IPSec on your Firebox.
Configure Active Directory Authentication
To configure Active Directory authentication:
- Log in to Fireware Web UI (https://<your Firebox IP address>:8080).
- Select Authentication > Servers.
The Authentication Servers page opens.
- From the Authentication Servers list, click Active Directory.
The Active Directory page opens. - Click Add.
- Click Next.
- In the Domain Name text box, type the domain name. You cannot change the domain name after you save the settings.
- Click Next.
- In the Server Address text box, type or paste the secure LDAP external IP address you copied in the previous section.
- Select the Enable secure SSL connections to your Active Directory server (LDAPS) check box.
- Click Next.
- Click Finish.
Configure Mobile VPN with IPSec
To configure Mobile VPN with IPSec:
- Select VPN > Mobile VPN.
- In the IPSec section, click Configure.
- Click Add to add a new group.
- In the Name text box, type a group name that matches the name of the Azure Active Directory group your users belong to.
- From the Authentication Server drop-down list, select your authentication server.
- In the Passphrase and Confirm text boxes, type a passphrase to encrypt the mobile VPN profile (.wgx file) that you distribute to users in this group. The passphrase can only use standard ASCII characters. If you use a certificate for authentication, this passphrase is also used to encrypt the exported certificate file you send to users.
- In the Primary text box, type the external IP address of the Firebox that the VPN client connects to.
- Select the Resources tab.
- Select the Allow All Traffic Through Tunnel check box.
- In the Virtual IP Address Pool section, click Add.
- From the Choose Type drop-down list, select Host Range IPv4.
- In the From and To text boxes, type a range for your virtual IP addresses. The range should not be in your interface range. The IP addresses in the virtual IP address pool cannot be used for anything else on your network.
- Click OK.
- Click Save.
- In the Groups list, select your group.
- From the Client drop-down list, select WatchGuard Mobile VPN.
- Click Generate and save the <group name>.ini file.
Test the Integration
To test the integration of Azure AD Users and the WatchGuard Mobile VPN with IPSec.
- Open your WatchGuard Mobile VPN with IPSec client.
- Select Configuration > Profiles and import the <group name>.ini config file. This is the file you generated at the end of the Configure Mobile VPN with IPSec section.
- Click Add / Import.
- Select Profile Import. Click Next.
- Select your file. Click Next to finish.
- Select your profile as default. Click OK.
- Select Connection > Connect.
- Type your Azure AD user name and password.
- Click OK.
You are connected successfully.