Building a Highly Available LDAPS Service for Active Directory

Many third-party products authenticate users against Active Directory (AD) using the Lightweight Directory Access Protocol (LDAP) [RFC 4511]. Firewalls, VPN gateways, storage arrays, virtualization platforms, and countless line-of-business applications need a reliable way to query the directory and validate user credentials. Too often, these services are configured to use clear-text LDAP to a single domain controller, a design that exposes credentials on the network and fails when that domain controller goes offline. A better approach is to provide a highly available LDAP over Transport Layer Security (TLS) service, commonly called LDAPS, behind a load balancer, with certificates that renew automatically and never require manual intervention. Michael Waterman covers the architecture well in Building High Available LDAPS Architectures, and I build on that foundation here with automated certificate binding and renewal.

LDAP Security

Microsoft has been tightening LDAP security defaults for some time, and Windows Server 2025 continues that trend. Administrators deploying new domain controllers should be aware of the following changes.

  • LDAP Signing: Windows Server 2025 requires LDAP signing by default for new AD deployments. Domain controllers upgraded in place keep any existing signing policy.
  • Channel Binding: Windows Server 2025 sets LDAP channel binding to “When supported” by default. Domain controllers accept channel binding tokens when clients provide them but do not yet require them.
  • Channel Binding Auditing: Auditing for LDAP channel binding is enabled by default, allowing administrators to identify clients that do not support it.

Importantly, LDAP signing applies only to Simple Authentication and Security Layer (SASL) [RFC 4422] binds. Most third-party services use simple binds, which send the username and password in clear text when using LDAP on TCP port 389. Signing does nothing to protect these credentials, and Windows Server 2025 domain controllers that require signing reject simple binds over unencrypted connections entirely. Regardless of the domain controller’s signing configuration, clear-text LDAP is never recommended. LDAPS encrypts the entire session, including the bind, and should be used by any service that authenticates to AD.

LDAPS Clients

LDAPS clients are typically network appliances, non-Windows servers, and applications that need to authenticate users against AD but cannot take advantage of native AD features. These clients usually share the following traits.

  • Not Domain-Joined: The client is not a member of the domain and cannot use the domain controller locator to find a nearby, healthy domain controller.
  • Simple Bind: The client authenticates using a simple bind with a username and password instead of Kerberos.
  • Single Server: The client is configured with a single hostname or IP address for the directory server, with no awareness of AD sites or domain controller health. Some devices allow a secondary server, but failover behavior varies widely.
  • Separate Trust Store: The client does not automatically trust the enterprise public key infrastructure (PKI). Administrators must import the root and issuing Certification Authority (CA) certificates into the device’s trust store before LDAPS will work.

Examples beyond those mentioned previously include network access control platforms such as Cisco ISE and Aruba ClearPass, Linux hosts using the System Security Services Daemon (SSSD), and multifunction printers.

LDAPS Overview

LDAPS is simply LDAP protected by TLS, with the client connecting to the domain controller on TCP port 636. For the TLS handshake to succeed, the domain controller must present a certificate that meets the following requirements.

  • Server Authentication: The certificate must include the Server Authentication Enhanced Key Usage (EKU) (1.3.6.1.5.5.7.3.1).
  • Subject Name: The certificate must include the name the client uses to connect to the service in the Subject Alternative Name (SAN).
  • Private Key: The domain controller must have the certificate’s associated private key.
  • Trust: The certificate must chain to a root CA that the client trusts.

Certificate Selection

Domain controllers look for an LDAPS certificate in two places. A valid certificate in the NTDS service’s personal certificate store is always preferred. The local computer’s personal certificate store is used only when the NTDS store does not contain a suitable certificate. When multiple eligible certificates exist in the same store, the domain controller selects the one with the latest expiration date, which can lead to unexpected results when domain controllers have accumulated several Server Authentication certificates over time. Also, the certificate’s subject must match the domain controller’s FQDN for the certificate to be considered at all. Marc-André Moreau explains the selection process in detail in his excellent article, Active Directory LDAPS certificate selection deep dive.

Avoid Individual Domain Controllers

Configuring an LDAPS client to connect directly to a specific domain controller is a common practice, but it is problematic for many reasons. Domain controllers are routinely added, retired, and rebuilt, and each change requires updating every device that references the old server. In addition, a client configured with a single domain controller has a single point of failure. If that domain controller is offline for maintenance or fails unexpectedly, authentication for that service fails with it.

Domain Name Workaround

A simple workaround is to configure LDAPS clients to use the AD domain name (for example, corp.example.net) instead of an individual domain controller name (for example, dc1.corp.example.net). The AD domain name resolves to the IP addresses of all domain controllers in the domain, and no new certificate is required because the default Kerberos Authentication certificate template includes the domain name in the SAN. However, this approach relies on DNS alone. DNS has no awareness of domain controller health; clients may cache records for a failed server, and the domain name resolves to domain controllers in every site, including remote sites across slow WAN links. It works in a pinch, but it is not a substitute for a load balancer in enterprise deployments.

Load Balanced LDAPS

The recommended approach for enterprise deployments is to place domain controllers behind a load balancer and publish a dedicated LDAPS service name (for example, ldaps.corp.example.net) that resolves to the load balancer’s virtual IP address. Load balancer configuration is out of scope here, as it varies by vendor and operator preference. However, the load balancer must meet the following requirements.

  • TCP Port 636: The load balancer must distribute connections on TCP port 636.
  • TLS Passthrough: The load balancer must operate in TCP (layer 4) mode and must not terminate TLS. Terminating TLS on the load balancer prevents clients from validating the domain controller’s certificate and breaks LDAP channel binding.
  • Health Checks: I strongly recommend configuring health checks that validate the LDAPS service itself, not simply that TCP port 636 is open. Most commercial and open source load balancers support this configuration.

Note: Read-Only Domain Controllers (RODCs) should not be included in the load balanced pool. RODCs hold a read-only copy of the directory and return referrals for write operations, which can cause unexpected behavior for services that perform password changes or other directory updates.

Global Catalog

Some clients also require access to the global catalog (GC) over LDAPS on TCP port 3269. This is common in multi-domain forests, where a single LDAP server definition must locate and authenticate users from any domain, and with applications configured to use the GC port by default. In these scenarios, publish TCP port 3269 on the load balancer using the same TLS passthrough configuration and health checks, and ensure every domain controller in the pool is a GC server. The LDAPS certificate serves both ports, so no additional certificate configuration is required. Keep in mind that the GC holds only a partial set of attributes for objects in other domains. In a single-domain forest, TCP port 636 provides access to all directory data, and TCP port 3269 is not required.

Domain-Joined Clients

The load balanced LDAPS service is designed primarily for non-Windows systems using simple binds over LDAPS. Domain-joined Windows devices should not be configured to use the LDAPS service name. They should continue to use the DC locator and Kerberos natively, and the domain’s LDAP SRV records (for example, _ldap._tcp.corp.example.net), which domain controllers register and maintain automatically, must not be modified to point to the load balancer. Clients that attempt Kerberos authentication (SASL with the Generic Security Service Application Program Interface (GSSAPI)) to the service name will not work as expected because the required Service Principal Name (SPN) (ldap/ldaps.corp.example.net) can be registered on only one domain controller computer account. These clients will fall back to NTLM or fail entirely.

Certificate Requirements

Every domain controller in the load balanced pool must present a certificate that includes the LDAPS service name. To ensure consistent name coverage, the certificate’s subject should be the domain controller’s fully qualified domain name (FQDN), and the SAN should include the following names.

  • Domain controller FQDN (for example, dc1.corp.example.net)
  • Domain controller single-label hostname (for example, dc1)
  • Domain FQDN (for example, corp.example.net)
  • LDAPS service name (for example, ldaps.corp.example.net)
  • LDAPS service short name (for example, ldaps)

Not all of these names are strictly required for the load balanced service. However, the certificate bound to the NTDS store is used for every LDAPS connection to the domain controller, regardless of the name the client uses. Including all of these names ensures that clients connecting to the domain controller directly, to the domain name, or to the load balanced service name continue to work.

Note: The domain controller’s FQDN is used as the subject, rather than the LDAPS service name, so that each domain controller’s certificate is uniquely identifiable when approving requests, reviewing issued certificates, and troubleshooting connections through the load balancer. Modern TLS clients validate the server name against the SAN, not the subject, so the LDAPS service name only needs to appear in the SAN. Legacy clients that validate only the subject’s common name are rare but should be tested before deployment.

Create the Certificate Template

To create the certificate template, open the Certificate Templates management console (certtmpl.msc), right-click the Web Server template, choose Duplicate Template, and configure the following settings.

Compatibility Tab

On the Compatibility tab, select Windows Server 2016 for the Certification Authority and Windows 10/Windows Server 2016 for the Certificate recipient.

Certificate template Compatibility tab with Certification Authority set to Windows Server 2016 and Certificate recipient set to Windows 10 / Windows Server 2016

Certificate Template Compatibility Settings

Note: If any issuing CAs or domain controllers in the environment run an operating system older than Windows Server 2016, set the Compatibility Settings to match the oldest version in use. Selecting a version newer than the oldest CA or domain controller may prevent those servers from issuing or enrolling for the certificate.

General Tab

On the General tab, enter a descriptive name in the Template display name field (for example, LDAPS Service) and define the validity and renewal periods. The validity period should be no more than one year, and I recommend shorter lifetimes where practical. See The Case for Short-Lived Certificates in Enterprise Environments for more details.

Certificate template General tab with the display name LDAPS Service, a 14-day validity period, and a 2-day renewal period

Certificate Template General Settings

Note: The example shown here uses a short 14-day validity period with a 2-day renewal period. I strongly recommend testing the deployment with short-lived certificates (1 to 2 weeks) first. Short lifetimes allow administrators to observe several renewal cycles in a short period and confirm the automation is working as expected. Be sure the renewal period is shorter than the validity period. Once renewal automation is validated, update the template to use a longer validity period. Existing certificates adopt the new lifetime when they next renew.

Request Handling Tab

On the Request Handling tab, ensure that Allow private key to be exported is not selected.

Certificate template Request Handling tab with Allow private key to be exported not selected

Certificate Template Request Handling Settings

Cryptography Tab

On the Cryptography tab, select Key Storage Provider from the Provider Category drop-down list, RSA from the Algorithm name drop-down list, enter 2048 for the Minimum key size, and select SHA256 from the Request hash drop-down list. I recommend RSA 2048 because it provides the broadest compatibility with LDAPS clients. Elliptic Curve (EC) certificates are arguably a better choice from a security and performance perspective, but some services that require LDAPS may not support them.

Certificate template Cryptography tab with Key Storage Provider, RSA algorithm, 2048-bit minimum key size, and SHA256 request hash

Certificate Template Cryptography Settings

Subject Name Tab

On the Subject Name tab, select Supply in the request and check the box next to Use subject information from existing certificates for autoenrollment renewal requests. This allows the administrator to specify the subject and SAN when initially requesting the certificate, while ensuring the same names are included automatically when the certificate is renewed.

Certificate template Subject Name tab with Supply in the request selected and Use subject information from existing certificates for autoenrollment renewal requests checked

Certificate Template Subject Name Settings

Issuance Requirements Tab

On the Issuance Requirements tab, check the box next to CA certificate manager approval. Allowing the requester to supply the subject name means a certificate could be requested for any name, so requiring approval ensures that an administrator reviews each initial request before the certificate is issued. Next, select Valid existing certificate under Require the following for reenrollment. With this setting, renewal requests signed with the existing valid certificate are issued automatically without approval, which is essential for unattended renewal.

Certificate template Issuance Requirements tab with CA certificate manager approval checked and Valid existing certificate selected for reenrollment

Certificate Template Issuance Requirements Settings

Extensions Tab

On the Extensions tab, confirm that Application Policies includes Server Authentication only. The Web Server template includes only Server Authentication by default, so no changes should be required.

Certificate template Extensions tab with Application Policies selected and Server Authentication listed as the only application policy

Certificate Template Extensions Settings

Security Tab

On the Security tab, add the Domain Controllers group and grant Read, Enroll, and Autoenroll permissions. Do not grant permissions to the Read-Only Domain Controllers group.

Certificate template Security tab with the Domain Controllers group granted Read, Enroll, and Autoenroll permissions

Certificate Template Security Settings

Note: Only the Domain Controllers group should have Enroll permissions on this template. Do not grant Enroll or Autoenroll permissions to any other users or groups.

Publish Template

Once complete, publish the certificate template on the issuing CA. This can be done using the Certification Authority management console (certsrv.msc) or by running the following PowerShell command on the issuing CA.

Add-CATemplate -Name 'LDAPSService' -Force

Note: The Add-CATemplate cmdlet uses the template name, not the template display name. The template name is the display name without spaces by default.

Autoenrollment

Certificate autoenrollment must be enabled on domain controllers to renew LDAPS certificates automatically. I prefer to enable autoenrollment in a Group Policy Object (GPO) linked at the domain level, but at a minimum, the GPO must apply to the Domain Controllers organizational unit (OU). In the GPO, navigate to Computer Configuration > Policies > Windows Settings > Security Settings > Public Key Policies, open Certificate Services Client – Auto-Enrollment, and configure the following settings.

  • Configuration Model: Enabled
  • Renew expired certificates, update pending certificates, and remove revoked certificates: Checked
  • Update certificates that use certificate templates: Checked
Certificate Services Client Auto-Enrollment Properties with Configuration Model set to Enabled and both renewal and update options selected

Certificate Services Client Auto-Enrollment Settings

Note: Because the template requires the subject to be supplied in the request, autoenrollment will not enroll for the initial certificate. Autoenrollment only renews the certificate once it has been issued.

Certificate Enrollment

The initial certificate must be requested on each domain controller. Run the following PowerShell commands in an elevated PowerShell window on the domain controller. The domain controller’s hostname and domain name are determined automatically, so only the template name and LDAPS service name need to be updated to match your environment.

$ServiceFqdn = 'ldaps.corp.example.net'
$ServiceName = $ServiceFqdn.Split('.')[0]
$Domain = (Get-CimInstance -ClassName Win32_ComputerSystem).Domain.ToLower()
$Hostname = $env:COMPUTERNAME.ToLower()
$Fqdn = "$Hostname.$Domain"
Get-Certificate -Template 'LDAPSService' -SubjectName "CN=$Fqdn" -DnsName $Fqdn, $Hostname, $Domain, $ServiceFqdn, $ServiceName -CertStoreLocation 'Cert:\LocalMachine\My'

Note: The LDAPS service name does not have to be in the same DNS namespace as the AD domain. For example, ldaps.example.net is perfectly acceptable for the corp.example.net domain.

Because the template requires CA certificate manager approval, the request status will be Pending.

PowerShell Get-Certificate command requesting an LDAPS certificate with the request status shown as Pending

Certificate Request Pending Approval

Next, an administrator must approve the request. Open the Certification Authority management console (certsrv.msc) on the issuing CA and expand Pending Requests. Before issuing the certificate, inspect the request to ensure it is legitimate, confirming that the requester, subject name, and SAN entries match the expected domain controller and LDAPS service names. Once verified, right-click the request and choose All Tasks > Issue.

Certification Authority console showing a pending request with All Tasks and Issue selected

Issue Pending Certificate Request

Note: If role separation is enforced on the CA, or if the administrator requesting the certificate does not have certificate manager (Issue and Manage Certificates) permissions on the CA, another administrator may need to approve the request.

Once the request is approved, retrieve and install the certificate by running the following PowerShell commands on the domain controller.

$Request = Get-ChildItem -Path 'Cert:\LocalMachine\Request'
Get-Certificate -Request $Request
PowerShell Get-Certificate command retrieving the approved request with the status shown as Issued

Certificate Request Issued

Note: If the certificate cannot be retrieved in the same PowerShell session (for example, after waiting for approval), or if Get-Certificate returns an error because other requests are pending, use certreq.exe instead. Retrieve the issued certificate using the Request ID shown in the Certification Authority management console, then install it by running the following commands.

certreq.exe -retrieve 8636 .\ldaps.cer
certreq.exe -accept .\ldaps.cer

Bind the Certificate

Certificates issued from the new template are installed in the local computer’s personal certificate store. However, the domain controller’s existing certificates are also in that store, and any of them could be selected for LDAPS. To ensure the domain controller always presents the correct certificate, it must be added to the NTDS service certificate store. The Update-DcLdapsCertificate.ps1 PowerShell script, available on GitHub, automates this process. The script performs the following actions.

  • Searches the local computer’s personal certificate store for valid certificates issued from the specified template that include the LDAPS service name in the SAN, have an associated private key, include the Server Authentication EKU, and chain to a trusted root. If more than one certificate qualifies, the certificate with the latest expiration date is selected.
  • Imports the selected certificate into the NTDS service certificate store and confirms the import was successful.
  • Removes any other certificates from the NTDS service certificate store.
  • Forces Active Directory Domain Services (AD DS) to reload its certificate immediately, without a restart, then performs a TLS handshake on TCP port 636 to confirm the domain controller is serving the new certificate.

The script requires the ServiceCertStore PowerShell module. Install it by running the following PowerShell command.

Install-Module -Name ServiceCertStore

The script also requires the certificate template’s Object Identifier (OID). Find the OID on the Extensions tab of the template in the Certificate Templates management console (certtmpl.msc) under Certificate Template Information, or by running the following PowerShell command on the issuing CA.

Get-CATemplate
Get-CATemplate PowerShell output listing published certificate templates with the LDAPSService template OID highlighted

Certificate Template OID

Next, run Update-DcLdapsCertificate.ps1 manually to bind the initial certificate to the NTDS service certificate store.

.\Update-DcLdapsCertificate.ps1 -TemplateOid '1.3.6.1.4.1.311.21.8.8722825.6961687.14830235.11733548.12561660.205.581940.14651236' -LdapsServiceName 'ldaps.corp.example.net'
Update-DcLdapsCertificate.ps1 verbose output showing the LDAPS certificate imported into the NTDS service store and verified on port 636

Update-DcLdapsCertificate.ps1 Output

Confirm that the certificate was added to the NTDS service certificate store by running the following PowerShell command.

Get-ServiceCertificates -ServiceName NTDS
Get-ServiceCertificates output showing the LDAPS certificate in the NTDS service certificate store

NTDS Service Certificate Store

Automate Renewal

Autoenrollment renews the LDAPS certificate automatically, but it places the renewed certificate in the local computer’s personal certificate store, not the NTDS service certificate store. Left alone, the domain controller continues to serve the old certificate until it expires. The Register-DcLdapsCertificateTask.ps1 PowerShell script, also available on GitHub, closes this gap by creating a scheduled task that runs Update-DcLdapsCertificate.ps1 whenever a new certificate is installed. The scheduled task has the following characteristics.

  • The task is triggered by event ID 1006 (certificate installed) or event ID 1001 (certificate replaced) in the Microsoft-Windows-CertificateServicesClient-Lifecycle-System/Operational event log. Only certificates installed in the computer context that include the Server Authentication EKU trigger the task.
  • The task runs one minute after the event to ensure autoenrollment has finished installing the certificate and private key.
  • The task has no time-based trigger and never runs on a schedule.
  • The task runs as SYSTEM with highest privileges.

Run the following PowerShell command on each domain controller in the load balanced pool, specifying the same template OID and LDAPS service name used previously.

.\Register-DcLdapsCertificateTask.ps1 -TemplateOid '1.3.6.1.4.1.311.21.8.8722825.6961687.14830235.11733548.12561660.205.581940.14651236' -LdapsServiceName 'ldaps.corp.example.net'
Register-DcLdapsCertificateTask.ps1 verbose output showing the Update DC LDAPS Certificate scheduled task registered with an event trigger

Register-DcLdapsCertificateTask.ps1 Output

Note: By default, Register-DcLdapsCertificateTask.ps1 expects Update-DcLdapsCertificate.ps1 to be in the same folder. If Update-DcLdapsCertificate.ps1 is stored elsewhere, use the -ScriptPath parameter to specify its location. Be sure to store both scripts in a permanent location on the domain controller, as the scheduled task references the script at that path.

Validation

Once the certificate is bound and the scheduled task is registered, administrators should confirm that the LDAPS service is working as expected. I recommend using my Get-TlsCertificate.ps1 PowerShell script to view the certificate returned during the TLS handshake. Install the script from the PowerShell Gallery by running the following PowerShell command.

Install-Script -Name Get-TlsCertificate

Next, run the following PowerShell command to view the certificate presented by the load balanced LDAPS service.

Get-TlsCertificate -Hostname 'ldaps.corp.example.net' -Port 636
Get-TlsCertificate output for the LDAPS service name on port 636 showing the certificate subject, SAN entries including the service name, and Server Authentication EKU

LDAPS Service Certificate

Confirm that the subject, SAN, EKU, and expiration date are correct. Since the load balancer determines which domain controller responds, I also recommend running the command against each domain controller’s FQDN and comparing the thumbprint to the certificate in the NTDS service certificate store on that domain controller.

Get-TlsCertificate -Hostname 'dc1.corp.example.net', 'dc2.corp.example.net' -Port 636
Get-TlsCertificate output for two domain controllers on port 636, each presenting its own certificate that includes the LDAPS service name

Domain Controller LDAPS Certificates

Finally, test LDAPS authentication using ldp.exe. Open ldp.exe, select Connection > Connect, enter the LDAPS service name in the Server field, enter 636 in the Port field, check the box next to SSL, and click OK.

ldp.exe Connect dialog with the LDAPS service name in the Server field, port 636, and SSL selected

ldp.exe Connection Settings

A successful connection confirms that TLS was negotiated with the LDAPS service name and returns the domain controller’s rootDSE information. The dnsHostName attribute identifies which domain controller the load balancer selected to service the request.

ldp.exe output showing a successful SSL connection to the LDAPS service name and rootDSE information with dnsHostName identifying the responding domain controller

Successful LDAPS Connection

Next, select Connection > Bind, enter the username and password of a test account in the User and Password fields, choose Simple bind, and click OK.

ldp.exe Bind dialog with a test account username and password entered and Simple bind selected

ldp.exe Simple Bind Settings

A successful bind returns the message Authenticated as followed by the test account name, confirming that the LDAPS service is functioning correctly.

ldp.exe output showing a successful simple bind over LDAPS with the message Authenticated as LAB\svc_ldap

Successful LDAPS Simple Bind

Monitoring

Update-DcLdapsCertificate.ps1 records key outcomes in the Application event log using the event source Update-DcLdapsCertificate. Administrators can monitor these events to confirm renewals are processed successfully and to identify problems before the certificate expires.

Event IDLevelDescription
1000InformationNew certificate imported into the NTDS service certificate store and verified
1001InformationSelected certificate is already bound to the NTDS service certificate store
1002InformationPrevious certificate removed from the NTDS service certificate store
1003InformationLDAPS verified to be serving the new certificate
2000WarningPrevious certificate not found in the NTDS service certificate store during cleanup
2001WarningUnable to signal AD DS to reload its server certificate
2002WarningLDAPS is serving a certificate other than the newly bound certificate
2003WarningUnable to complete a TLS handshake to verify the LDAPS certificate
3000ErrorThe script terminated with an error

In addition, a detailed transcript of each run is written to %ProgramData%\RMHCI\PowerShell\Update-DcLdapsCertificate.log. Administrators can also monitor the LDAPS certificate externally using a certificate monitoring service such as CertKit, which supports internal TLS services, including LDAPS on domain controllers.

Summary

Providing a highly available LDAPS service for non-Windows systems eliminates clear-text credentials on the network and removes the single point of failure that comes with pointing devices at individual domain controllers. Placing domain controllers behind a load balancer with a dedicated service name, issuing certificates that cover every name clients may use, and automating the binding of renewed certificates to the NTDS service certificate store ensures the service remains available and secure without ongoing manual intervention.

Additional Information

Always On VPN Servers and Failover

When configuring Microsoft Always On VPN, one of the first and most crucial settings is defining the public hostname of the VPN server to which clients connect. If you’re deploying Always On VPN client configuration settings using Intune—either with the native VPN policy template or a custom XML profile—you’ll see that multiple server entries are supported. Intune even allows administrators to define a “default server.” At first glance, this might suggest that the client will try the default server first and automatically fail over to the others if it’s unavailable. Unfortunately, that’s not how it works.

Intune VPN Template

When using the native Intune VPN device configuration template, administrators will find multiple entry fields for the servers in the Base VPN section.

In the example below, the Global VPN entry is marked as ‘default’.

Custom XML

When defining VPN settings using XML configuration, administrators can also list multiple servers.

Interestingly, the VPNv2 CSP used by custom XML profiles doesn’t support the concept of a “default server” at all.

How It Really Works

Defining multiple servers in the Always On VPN profile does not enable automatic failover. The client connects only to the first server in the list. The so-called “default server” setting in Intune is ignored, and the GUI even allows you to mark all servers as default, which is meaningless.

However, the configuration isn’t entirely useless. If you define multiple servers, they’ll appear on the client side as manual options. If the first server becomes unavailable, the user can open the Settings app, navigate to the advanced settings of the Always On VPN profile, and select an alternate server to connect manually.

Summary

Although Intune and XML configurations allow multiple VPN servers, Always On VPN does not provide automatic failover. Clients only attempt to connect to the first server in the list, and the “default server” setting in Intune has no effect. Multiple entries are still useful, but only for manual server selection by end-users when the primary server is down. For true automated high availability and redundancy, consider an external solution such as Azure Traffic Manager.

Additional Information

Always On VPN Load Balancing with Loadbalancer.org

Recently, I had the opportunity to deploy the Loadbalancer.org load balancer as part of an enterprise Always On VPN deployment. In the past, I’ve published guidance for using F5 BIG-IP, Citrix ADC (formerly NetScaler), and Kemp LoadMaster, so in this post, I’ll provide guidance for configuring Loadbalancer.org for Always On VPN.

IKEv2

Open the Loadbalancer.org management console and follow the steps below to configure Always On VPN load balancing on the appliance.

Create Virtual Service

Create a layer 4 virtual service for IKEv2.

  1. Click Cluster Configuration.
  2. Click Layer 4 – Virtual Services.
  3. Click Add a new Virtual Service.
  4. Enter a descriptive name for the virtual service in the Label field.
  5. Enter the virtual IP address (VIP) for the service in the IP Address field.
  6. Enter 500,4500 in the Ports field.
  7. Select UDP from the Protocol drop-down list.
  8. Select NAT from the Forwarding Method drop-down list.
  9. Click Update.

Add Real Servers

Add real servers to the virtual service.

  1. Click Layer 4 – Real Servers.
  2. Click Add a new Real Server next to the IKEv2 virtual service.
  3. Enter a descriptive name for the real server in the Label field.
  4. Enter the IP address of the real server in the Real Server IP Address field.
  5. Click Update.
  6. Repeat these steps for each additional VPN server in the cluster.

SSTP

Follow the steps below to configure SSTP load balancing on the appliance.

Create Virtual Service

Create a layer 4 virtual service for SSTP.

  1. Click Cluster Configuration.
  2. Click Layer 4 – Virtual Services.
  3. Click Add a new Virtual Service.
  4. Enter a descriptive name for the virtual service in the Label field.
  5. Enter the virtual IP address (VIP) for the service in the IP Address field.
  6. Enter 443 in the Ports field.
  7. Select TCP from the Protocol drop-down list.
  8. Select NAT from the Forwarding Method drop-down list.
  9. Click Update.

Configure Virtual Service Health Check

Update the health check method for the SSTP virtual service.

  1. Click Layer 4 – Virtual Services.
  2. Click Modify on the SSTP virtual service.
  3. Select Negotiate from the Check Type drop-down list in the Health Checks section.
  4. Enter 443 in the Check Port field.
  5. Select HTTPS from the Protocol drop-down list.
  6. Enter /sra_{BA195980-CD49-458b-9E23-C84EE0ADCD75}/ in the Request to send field.
  7. Enter 401 in the Response expected field.
  8. Click Update.

Note: Using the Negotiate health check type for the SSTP monitor on Loadbalancer.org appliances requires version 8.13.0 or later. Administrators can use the External script option when using earlier releases of Loadbalancer.org appliances. An SSTP health check script for Loadbalancer.org can be found here.

Add Real Servers

Add real servers to the virtual service.

  1. Click Layer 4 – Real Servers.
  2. Click Add a new Real Server next to the SSTP virtual service.
  3. Enter a descriptive name for the real server in the Label field.
  4. Enter the IP address of the real server in the Real Server IP Address field.
  5. Click Update.
  6. Repeat these steps for each additional VPN server in the cluster.

Review

Once complete, click System Overview to view the overall health of your VPN servers.

Summary

The Loadbalancer.org appliance is an efficient, cost-effective, and easy-to-configure load-balancing solution that works well with Always On VPN implementations. It’s available as a physical or virtual appliance. There’s also a cloud-based version. It also includes advanced features such as TLS offload, web application firewall (WAF), global server load balancing (GSLB), and more. If you are looking for a layer 4-7 load balancer for Always On VPN and other workloads, be sure to check them out.

Additional Information

DirectAccess and CVE-2024-38063

With the August 2024 Windows security updates, Microsoft released a fix to address a Remote Code Execution vulnerability in the Windows TCP/IP stack (CVE-2024-38063). Critically, this vulnerability affects IPv6 only and does not require authentication or user interaction to exploit. An attacker would only need to send specially crafted IPv6 packets to a Windows host, which could allow them to run arbitrary code on the server. This vulnerability presents some unique challenges for organizations that have deployed DirectAccess.

Exposure

DirectAccess servers are deployed to provide secure remote access and are, necessarily, exposed to the public Internet. Sometimes, this is a direct connection (not recommended) or behind an edge firewall or load balancer. In either case, anyone can establish a TCP connection from the Internet to the DirectAccess server by default. If the DirectAccess server has a global unicast IPv6 address assigned to its external interface, that presents a worst-case scenario for exposure. Administrators should update their DirectAccess servers immediately. There are some other mitigation options, though. See below for more details.

IPv6 Transition

DirectAccess servers are usually reachable on the public Internet via IPv4 only. The lack of direct IPv6 connectivity significantly reduces the attack vector for this vulnerability. However, DirectAccess servers use various IPv6 transition technologies that could present additional risks.

Tunnel Establishment

Clients on the Internet can establish an IPv6 transition tunnel to the DirectAccess server without authentication. Once the tunnel is established, the client will receive a router advertisement (RA) and establish an IPv6 address on link. However, communication over the link requires IPsec. Although an attacker can obtain an IPv6 address, they require authentication to send TCP and UDP traffic inside the tunnel.

ICMP

It’s important to know that ICMP traffic inside the DirectAccess IPv6 transition tunnel is exempt from IPsec policy processing, by default. It is unclear whether the “specially crafted packets” an attacker must send to exploit this vulnerability can be ICMP packets. If that’s the case, this introduces significant risks and increases exposure exponentially. I will update this post if I learn anything more about this specifically.

Mitigation

The best and most obvious way to mitigate this attack is to immediately apply the Microsoft security updates. However, some additional controls can be effective in mitigating this risk.

Authentication

As mentioned, DirectAccess allows IPv6 transition tunnels to be established by default without authentication. However, it is possible to update the DirectAccess configuration to support authentication, as described here.

https://directaccess.richardhicks.com/2016/06/13/directaccess-ip-https-preauthentication/

Note: Updating the DirectAccess configuration can be impactful for remote users. Be sure to test this change in a lab environment before implementing in production.

Load Balancers

If the DirectAccess server is behind a load balancer, it can be configured to require authentication for DirectAccess IPv6 transition tunnels. Below is published guidance for configuring popular load balancers to support this.

F5 BIG-IP

Citrix ADC (formerly NetScaler)

Additional Information

Considerations for Always On VPN with Azure VPN Gateway and Virtual WAN

Always On VPN Device Tunnel and Custom Cryptography Native Support Now in Intune

Organizations migrating on-premises applications, data, and infrastructure to the cloud may also consider terminating Always On VPN connections there. Using one of the native Azure VPN services might be compelling at first glance. After all, having an Azure-managed VPN gateway service sounds intuitive. However, some severe limitations exist for using Azure VPN services for Always On VPN deployments.

Azure VPN Gateway

The following are limitations for Always On VPN with Azure VPN gateway.

Authentication Methods

Azure VPN gateway supports both EAP and machine certificate authentication. However, it can only support one authentication method at a time. With only EAP or certificate authentication, administrators must choose between a device or user tunnel. A single Azure VPN gateway cannot support both at the same time. For native Entra ID joined devices, this is not a problem. However, for native on-premises Active Directory or hybrid Entra ID joined devices, this is a problem, as the device tunnel is essential in these scenarios.

Note: Technically speaking, administrators could deploy another Azure VPN gateway to work around this limitation. However, Azure limits VPN gateway deployments to one per virtual network. This requires administrators to deploy a second VPN gateway in a separate virtual network, which then requires virtual network peering to be enabled, complicating the configuration greatly.

SSTP

Although the Azure VPN gateway supports SSTP, it is, unfortunately, a second-class citizen. Today, all SKUs of the Azure VPN gateway are limited to just 128 SSTP connections (256 in active/active mode). There is currently no way to increase this. If more than 256 connections are required, you must use IKEv2.

RADIUS

In addition, there is currently no option to change the default timeout value (30 seconds) for RADIUS authentication requests. This short timeout value presents a challenge when using MFA with the NPS extension or with Azure Conditional Access, as users may be unable to respond to the push notification before the timeout expires, resulting in failed authentication attempts.

In addition, Azure does not support routing traffic to on-premises RADIUS servers over ExpressRoute connections. In this scenario, administrators must route RADIUS traffic to on-premises servers over a site-to-site connection.

Geographic Redundancy

Geographic redundancy using Azure Traffic Manager (or another global server load balancer) with two or more gateways is not supported when using the Azure VPN gateway. Azure manages the certificate used on the gateway, which includes a certificate with the subject name of the individual gateway. There is no option to supply a custom certificate with a global hostname in the subject, which is required to support geographic redundancy. With that, administrators are limited to the redundancy provided natively by the Azure VPN gateway.

IPv6

Azure does not support Azure VPN gateway in a virtual network that includes IPv6 addressing.

Azure Virtual WAN

Azure Virtual WAN includes many of the same limitations as the Azure VPN gateway, in addition to the following.

SSTP

Unlike the Azure VPN gateway, there is no support for SSTP in Azure Virtual WAN.

IPv6

IPv6 is not currently supported at all in Azure Virtual WAN.

Summary

Intuitively, it seems that leveraging native Azure VPN gateway services would be ideal. However, due to the limitations outlined in this article, administrators must decide carefully if any of these prevent adoption in their environment. Although not formally supported, many organizations deploy Windows Server Routing and Remote Access (RRAS) servers in Azure to address these limitations.

Additional Information

Always On VPN July 2023 Security Updates

Hello, Always On VPN administrators! It’s the second Tuesday of the month, so you know what that means. Yes, it’s Patch Tuesday! This month’s security updates include several fixes for vulnerabilities potentially affecting Microsoft Always On VPN deployments.

RRAS Vulnerabilities

Microsoft’s July 2023 security updates include fixes affecting Windows Servers with the Routing and Remote Access Service (RRAS) role installed. Security vulnerabilities CVE-2023-35365, CVE-2023-35366, and CVE-2023-35367 are all Remote Code Execution (RCE) vulnerabilities with a Critical security rating and a CVSS score of 9.8. These security vulnerabilities in Windows Server RRAS are particularly troublesome due to the nature of the workload. RRAS servers are, by design, exposed to the public Internet. Although there are no known exploits in the wild at this time, this attack requires no special privileges other than network access. Administrators running Windows Server with RRAS installed are encouraged to update as soon as possible.

AD CS Vulnerabilities

Most Always On VPN implementations leverage enterprise PKI certificates for user and device authentication. Administrators commonly deploy Microsoft Active Directory Certificate Services (AD CS) to support this. This month there are two security vulnerabilities in AD CS marked as Important. CVE-2023-35350 and CVE-2023-35351 address RCE vulnerabilities that exploit a race condition on the server. However, AD CS servers are not exposed to untrusted networks. In addition, attackers would require administrative rights on the server to exploit these vulnerabilities.

Network Load Balancing

Finally, of importance to Always On VPN administrators using Windows Network Load Balancing (NLB) to provide load balancing for their RRAS servers, there is a vulnerability in the NLB service. CVE-2023-33163 addresses an RCE vulnerability in NLB identified as Important.

Additional Information

Always On VPN IKEv2 Load Balancing and NAT

Always On VPN IKEv2 Load Balancing and NATOver the last few weeks, I’ve worked with numerous organizations and individuals troubleshooting connectivity and performance issues associated with Windows 10 Always On VPN, and specifically connections using the Internet Key Exchange version 2 (IKEv2) VPN protocol. An issue that appears with some regularity is when Windows 10 clients fail to connect with error 809. In this scenario, the server will accept connections without issue for a period of time and then suddenly stop accepting requests. When this happens, existing connections continue to work without issue in most cases. Frequently this occurs with Windows Server Routing and Remote Access Service (RRAS) servers configured in a clustered array behind an External Load Balancer (ELB).

Network Address Translation

It is not uncommon to use Network Address Translation (NAT) when configuring Always On VPN. In fact, for most deployments the public IP address for the VPN server resides not on the VPN server, but on an edge firewall or load balancer connected directly to the Internet. The firewall/load balancer is then configured to translate the destination address to the private IP address assigned to the VPN server in the perimeter/DMZ or the internal network. This is known a Destination NAT (DNAT). Using this configuration, the client’s original source IP address is left intact. This configuration presents no issues for Always On VPN.

Source Address Translation

When troubleshooting these issues, the common denominator seems to be the use of Full NAT, which includes translating the source address in addition to the destination. This results in VPN client requests arriving at the VPN server as appearing not to come from the client’s original IP address, but the IP address of the network device (firewall or load balancer) that is translating the request. Full NAT may be explicitly configured by an administrator, or in the case of many load balancers, configured implicitly because the load balancer is effectively proxying the connection.

Known Issues

IKEv2 VPN connections use IPsec for encryption, and by default, Windows limits the number of IPsec Security Associations (SAs) coming from a single IP address. When a NAT device is performing destination/full NAT, the VPN server sees all inbound IKEv2 VPN requests as coming from the same IP address. When this happens, clients connecting using IKEv2 may fail to connect, most commonly when the server is under moderate to heavy load.

Resolution

The way to resolve this issue is to ensure that any load balancers or NAT devices are not translating the source address but are performing destination NAT only. The following is configuration guidance for F5, Citrix ADC (formerly NetScaler), and Kemp load balancers.

F5

On the F5 BIG-IP load balancer, navigate to the Properties > Configuration page of the IKEv2 UDP 500 virtual server and choose None from the Source Address Translation drop-down list. Repeat this step for the IKEv2 UDP 4500 virtual server.

Always On VPN IKEv2 Load Balancing and NAT

Citrix ADC

On the Citrix ADC load balancer, navigate to System > Settings > Configure Modes and check the option to Use Subnet IP.

Always On VPN IKEv2 Load Balancing and NAT

Next, navigate to Traffic Management > Load Balancing > Service Groups and select the IKEv2 UDP 500 service group. In the Settings section click edit and select Use Client IP. Repeat these steps for the IKEv2 UDP 4500 service group.

Always On VPN IKEv2 Load Balancing and NAT

Kemp

On the Kemp LoadMaster load balancer, navigate to Virtual Services > View/Modify Services and click Modify on the IKEv2 UDP 500 virtual service. Expand Standard Options and select Transparency. Repeat this step for the IKEv2 UDP 4500 virtual service.

Always On VPN IKEv2 Load Balancing and NAT

Caveat

Making the changes above may introduce routing issues in your environment. When configuring these settings, it may be necessary to configure the VPN server’s default gateway to use the load balancer to ensure proper routing. If this is not possible, consider implementing the workaround below.

Workaround

To fully resolve this issue the above changes should be made to ensure the VPN server can see the client’s original source IP address. If that’s not possible for any reason, the following registry key can be configured to increase the number of established SAs from a single IP address. Be advised this is only a partial workaround and may not fully eliminate failed IKEv2 connections. There are other settings in Windows that can prevent multiple connections from a single IP address which are not adjustable at this time.

To implement this registry change, open an elevated PowerShell command window on the RRAS server and run the following commands. Repeat these commands on all RRAS servers in the organization.

New-ItemProperty -Path ‘HKLM:SYSTEM\CurrentControlSet\Services\IKEEXT\Parameters\’ -Name IkeNumEstablishedForInitialQuery -PropertyType DWORD -Value 50000 -Force

Restart-Service IKEEXT -Force -PassThru

Additional Information

Always On VPN Load Balancing

IPsec Traffic May Be Blocked When A Computer is Behind a Load Balancer

Windows 10 Always On VPN IKEv2 Load Balancing with Citrix NetScaler ADC

Windows 10 Always On VPN IKEv2 Load Balancing with F5 BIG-IP

Windows 10 Always On VPN IKEv2 Load Balancing with Kemp LoadMaster

Always On VPN IKEv2 Load Balancing with Citrix NetScaler ADC

Always On VPN SSTP Load Balancing with Citrix NetScaler ADCThe Internet Key Exchange version 2 (IKEv2) VPN protocol is the protocol of choice when the highest level of security is required for Always On VPN connections. It uses IPsec and features configurable security parameters that allow administrators to adjust policies to meet their specific security requirements. IKEv2 is not without some important limitations, but organizations may insist on the use of IKEv2 to provide the greatest protection possible for remote connected clients. Due to complexities of the IKEv2 transport, special configuration on the Citrix ADC (formerly NetScaler) is required when load balancing this workload.

Special Note: In December 2019 a serious security vulnerability was discovered on the Citrix ADC that gives an unauthenticated attacker the ability to arbitrarily execute code on the appliance. As of this writing a fix is not available (due end of January 2020) but a temporary workaround can be found here.

Load Balancing IKEv2

When an Always On VPN client establishes a connection using IKEv2, communication begins on UDP port 500, but switches to UDP port 4500 if Network Address Translation (NAT) is detected in the communication path between the client and the server. Because UDP is connectionless, custom configuration is required to ensure that VPN clients maintain connectivity to the same backend VPN server during this transition.

Initial Configuration

Load balancing IKEv2 using the Citrix ADC is similar to other workloads. Below are specific settings and parameters required to load balance IKEv2 using the Citrix ADC.

Note: This article is not a comprehensive configuration guide for the Citrix ADC. It assumes the administrator is familiar with basic load balancing concepts and has experience configuring the Citrix ADC.

Service Settings

The load balancing services for IKEv2 VPN will use UDP ports 500 and 4500. Create the service group and assign group members for UDP 500 as follows.

Always On VPN IKEv2 Load Balancing with Citrix NetScaler ADC

Always On VPN IKEv2 Load Balancing with Citrix NetScaler ADC

Repeat the steps above to create the service group for UDP port 4500.

Virtual Server Settings

Two virtual servers are required, one for UDP port 500 and one for UDP port 4500. Ensure that the service group using UDP port 500 is bound to the virtual server using the same port.

Always On VPN IKEv2 Load Balancing with Citrix NetScaler ADC

Always On VPN IKEv2 Load Balancing with Citrix NetScaler ADC

Repeat the steps above to create the virtual service for UDP port 4500.

Service Monitoring

Since IKEv2 uses the UDP protocol, the only option for service monitoring is to use PING, which is configured by default. Ensure that the firewall on the VPN server allows inbound ICMPv4 and ICMPv6 Echo Request. The default PING monitor on the Citrix ADC will ping the resource every 5 seconds. If a different interval is required, the administrator can edit the PING monitor and bind that to the service or service group as necessary.

Persistency Group

A Persistency Group on the Citrix ADC will be configured to ensure that IKEv2 VPN client requests from the same client are always routed to the same backend server. Follow the steps below to create a Persistency Group and assign it to both IKEv2 virtual servers created previously.

  1. In the Citrix ADC management console expand Traffic Management > Load Balancing > Persistency Groups.
  2. Click Add.
  3. Enter a descriptive name for the Persistency Group.
  4. Select SOURCEIP from the Persistence drop-down list.
  5. Next to the Virtual Server Name section click the Add button.
  6. Add both previously configured IKEv2 virtual servers for UDP 500 and 4500.
  7. Click Create.

Always On VPN IKEv2 Load Balancing with Citrix NetScaler ADC

Use Client IP

To ensure reliable connectivity for IKEv2 VPN connections it is necessary for the VPN server to see the client’s original source IP address. Follow the steps below to configure the Service Group to forward the client’s IP address to the VPN server.

  1. In the Citrix ADC management console expand System, click Settings, and then click Configure Modes.
  2. Select Use Subnet IP.
  3. Click Ok.Always On VPN IKEv2 Load Balancing and NAT
  4. Expand Traffic Management, click Load Balancing, and then click Service Groups.
  5. Select the IKEv2 UDP 500 Service Group.
  6. Click Edit in the Settings section.
  7. Select Use Client IP.
  8. Repeat these steps on the IKEv2 UDP 4500 Service Group.Always On VPN IKEv2 Load Balancing and NAT

Note: Making the above changes will require configuring the VPN server to use the Citrix ADC as its default gateway.

Additional Information

Always On VPN Load Balancing

Windows 10 Always On VPN IKEv2 Load Balancing and NAT

Windows 10 Always On VPN SSTP Load Balancing with Citrix NetScaler ADC

Windows 10 Always On VPN IKEv2 Features and Limitations

Windows 10 AlWAYS On VPN and IKEv2 Fragmentation

Windows 10 Always On VPN IKEv2 Security Configuration

Windows 10 Always On VPN Certificate Requirements for IKEv2

Always On VPN SSTP Load Balancing with Citrix NetScaler ADC

Always On VPN SSTP Load Balancing with Citrix NetScaler ADCOne of the many advantages of using Windows Server Routing and Remote Access Service (RRAS) as the VPN server to support Windows 10 Always On VPN connections is that it includes support for the Secure Socket Tunneling Protocol (SSTP). SSTP is a TLS-based VPN protocol that is easy to configure and deploy and is very firewall friendly. This ensures consistent and reliable connectivity even behind restrictive firewalls. The Citrix ADC (formerly NetScaler) is a popular platform for load balancing Always On VPN connections. In this article I’ll describe how to configure load balancing on the Citrix ADC for RRAS VPN connections using the SSTP VPN protocol.

Special Note: In December 2019 a serious security vulnerability was discovered on the Citrix ADC that gives an unauthenticated attacker the ability to arbitrarily execute code on the appliance. As of this writing a fix is not available (due end of January 2020) but a temporary workaround can be found here.

Load Balancing SSTP

Previously I’ve written about some of the use cases and benefits of SSTP load balancing as well as the options for offloading TLS for SSTP VPN connections. Load balancing SSTP eliminates single points of failure and enables support for multiple RRAS VPN servers to increase scalability. It is generally recommended that the Citrix ADC be configured to pass through encrypted SSTP VPN connections. However, TLS offloading can be configured to improve performance and reduce resource utilization on VPN servers, if required.

Configuration

Load balancing SSTP on the Citrix ADC is straightforward and not unlike load balancing a common HTTPS web server. Below are specific settings and parameters required to load balance SSTP using the Citrix ADC.

Note: This article is not a comprehensive configuration guide for the Citrix ADC. It assumes the administrator is familiar with basic load balancing concepts and has experience configuring the Citrix ADC.

Service Settings

The load balancing service for SSTP VPN should be configured to use TCP port 443 and the SSL_BRIDGE protocol. If TLS offload is required, TCP port 80 and the HTTP protocol can be configured. Additional configuration is required on the RRAS server when TLS offload is enabled, however. Detailed information for configuring RRAS and SSTP for TLS offload can be found here.

Always On VPN SSTP Load Balancing with Citrix NetScaler ADC

Virtual Server Settings

The virtual server is configured to use TCP port 443. It is recommended to use SSLSESSION persistence.

Always On VPN SSTP Load Balancing with Citrix NetScaler ADC

The LEASTCONNECTION load balancing method is the recommend option for load balancing method.

Always On VPN SSTP Load Balancing with Citrix NetScaler ADC

Service Monitoring

Using the default TCP monitor (tcp-default) is not recommended for monitoring SSTP, as a simple TCP port check does not accurately reflect the health of the SSTP service running on the RRAS server. To more precisely monitor the SSTP service status, a new custom monitor must be created and bound to the load balancing services. Follow the steps below to configure a custom SSTP VPN monitor on the Citrix ADC.

  1. Open the Citrix ADC management console and expand Traffic Management.
  2. Select Monitors.
  3. Click Add.
  4. Enter a descriptive name in the Name field.
  5. Select HTTP form the Type drop-down list and click Select.
  6. Adjust the Interval and Response Time-out values according to your requirements.
  7. Enter 401 in the Response Codes field and click the “+” button.
  8. In the Response Codes field click the “x” next to 200.
  9. In the HTTP Request field enter HEAD /sra_{BA195980-CD49-458b-9E23-C84EE0ADCD75}/.
  10. Check the box next to Secure (not required if TLS offload is enabled).
  11. Select ns_default_ssl_profile_backend from the SSL profile drop-down list (not required if TLS offload is enabled).
  12. Click Create.

Always On VPN SSTP Load Balancing with Citrix NetScaler ADC

Once complete, bind the new service monitor to the load balancing services or service groups accordingly.

TLS Offload

It is generally recommended that TLS offload not be enabled for SSTP VPN. However, if TLS offload is desired, it is configured in much the same way as a common HTTPS web server. Specific guidance for enabling TLS offload on the Citrix ADC can be found here. Details for configuring RRAS and SSTP to support TLS offload can be found here.

Certificates

When enabling TLS offload for SSTP VPN connections it is recommended that the public SSL certificate be installed on the RRAS server, even though TLS processing will be handled on the Citrix ADC and HTTP will be used between the Citrix ADC and the RRAS server. If installing the public SSL certificate on the RRAS server is not an option, additional configuration will be required. Specifically, TLS offload for SSTP must be configured using the Enable-SSTPOffload.ps1 PowerShell script, which can be found here.

Once the script has been downloaded, open an elevated PowerShell command window and enter the following command.

.\Enable-SSTPOffload.ps1 -CertificateHash [SHA256 Certificate Hash of Public SSL Certificate] -Restart

Example:

.\Enable-SSTPOffload.ps1 -CertificateHash ‘C3AB8FF13720E8AD9047DD39466B3C8974E592C2FA383D4A3960714CAEF0C4F2’ -Restart

Re-Encryption

When offloading TLS for SSTP VPN connections, all traffic between the Citrix ADC and the RRAS server will be sent in the clear using HTTP. In some instances, TLS offload is required only for traffic inspection, not performance gain. In this scenario the Citrix ADC will be configured to terminate and then re-encrypt connections to the RRAS server. When terminating TLS on the Citrix ADC and re-encrypting connections to the RRAS server is required, the same certificate must be used on both the Citrix ADC and the RRAS server. Using different certificates on the RRAS server and the load balancer is not supported.

Additional Information

Always On VPN Load Balancing

Windows 10 Always On VPN Load Balancing and SSL Offload

SSL Offload Configuration for Citrix ADC (NetScaler)

Windows 10 Always On VPN SSTP Load Balancing with Kemp LoadMaster

Windows 10 Always On VPN SSTP Load Balancing with F5 BIG-IP

Windows 10 Always On VPN Connects then Disconnects

Windows 10 Always On VPN SSL Certificate Requirements for SSTP

Always On VPN IKEv2 Load Balancing Issue with Kemp LoadMaster

Always On VPN IKEv2 Load Balancing Issue with Kemp LoadMasterA recent update to the Kemp LoadMaster load balancer may cause failed connections for Always On VPN connections using IKEv2. SSTP VPN connections are unaffected.

Load Balancing IKEv2

When using the Kemp LoadMaster load balancer to load balance IKEv2, custom configuration is required to ensure proper operation. Specifically, the virtual service must be configured to use “port following” to ensure both the initial request on UDP port 500 and the subsequent request on UDP port 4500 are sent to the same real server. This requires the virtual service to be configured to operate at layer 7. Detailed configuration guidance for load balancing IKEv2 on the Kemp LoadMaster load balancer can be found here.

Always On VPN IKEv2 Load Balancing Issue with Kemp LoadMaster

Issues with LMOS 7.2.48.0

A recent release of the Load Master Operating System (LMOS) v7.2.48.0 introduced a bug that affects UDP services configured to operate at layer 7, which includes IKEv2. This bug breaks Always On VPN connections using IKEv2, resulting in failed connections. When this occurs, the administrator may encounter an error 809 message for device tunnel or user tunnel.

Always On VPN IKEv2 Load Balancing Issue with Kemp LoadMaster

Update Available

Administrators who use the Kemp LoadMaster load balancer to load balance Always On VPN IKEv2 connections and have updated to LMOS 7.2.48.0 are encouraged to update to LMOS 7.2.48.1 immediately. This latest update includes a fix that resolves broken IKEv2 load balancing for Always On VPN. Once the LoadMaster has been updated to 7.2.48.1, Always On VPN connections using IKEv2 should complete successfully.

Additional Information

Windows 10 Always On VPN IKEv2 Load Balancing and NAT

Windows 10 Always On VPN IKEv2 Load Balancing with Kemp LoadMaster Load Balancer

Windows 10 Always On VPN SSTP Load Balancing with Kemp LoadMaster Load Balancer

Windows 10 Always On VPN Load Balancing with Kemp LoadMaster in Azure

Windows 10 Always On VPN Load Balancing Deployment Guide for Kemp Load Balancers