DirectAccess Load Balancing Guide
DirectAccess Load Balancing Guide
DirectAccess
Deployment Guide
Copyright Notices
Copyright © 2002-2021 Kemp Technologies, Inc. All rights reserved. Kemp Technologies and the
Kemp Technologies logo are registered trademarks of Kemp Technologies, Inc.
Kemp Technologies, Inc. reserves all ownership rights for the LoadMaster and Kemp 360 product
line including software and documentation.
Used, under license, U.S. Patent Nos. 6,473,802, 6,374,300, 8,392,563, 8,103,770, 7,831,712, 7,606,912,
7,346,695, 7,287,084 and 6,970,933
Table of Contents
1 Introduction 5
1.5 Assumptions 6
2.2 Prerequisites 9
References 27
1 Introduction
DirectAccess is a remote access technology included with the Unified Remote Access role in
Windows Server 2012 R2. DirectAccess is a unique solution designed to provide secure, seamless,
transparent and always-on remote corporate network access for Windows 7 Enterprise/Ultimate or
Windows 8.x Enterprise and later domain-joined clients. DirectAccess is based on common
Windows platform technologies such as Active Directory Domain Services (AD DS), Active Directory
Certificate Services (AD CS), IPsec, and IPv6. IPv6 transition and translation protocols ensure
interoperability with networks and services that are IPv4 only.
1.5 Assumptions
This document assumes that DirectAccess has been configured and deployed in a single server,
single site configuration and is currently in working order. It also assumes that the DirectAccess
servers will have two network adapters, with the internal network interface on the LAN and the
external network interface in a perimeter (DMZ) network with the Kemp LoadMaster connected
directly to the public Internet. In addition, the features and configuration in this document require
the use of PKI for the issuance and management of digital certificates required for DirectAccess
functionality.
1. DirectAccess Server: The DirectAccess server is the gateway between the corporate
network and remote DirectAccess clients. DirectAccess clients are configured using group
policy to establish DirectAccess sessions with the gateway. The DirectAccess server itself is
a single point of failure and should be configured in a highly available cluster using the
Kemp LoadMaster.
2. Network Location Server: The Network Location Server (NLS) is used by DirectAccess
clients to determine if they are inside or outside of the corporate network. When a
DirectAccess client first establishes network connectivity, a probe is sent to the NLS. If the
NLS does not respond, the client attempts to establish DirectAccess connectivity. If the NLS
is offline for any reason (planned or unplanned) DirectAccess clients on the internal
network may lose connectivity to corporate resources until the NLS is back online. To
prevent service disruption, the NLS should be made highly available using the Kemp
LoadMaster.
4. Global Load Balancing for NLS: DirectAccess uses a single Fully Qualified Domain Name
(FQDN) for NLS. A minimum of two NLSs configured for load balancing is essential to ensure
the highest levels of availability. In some cases, network location servers will be located in
different geographies, and it might be desirable to have DirectAccess clients connect to the
NLS closest to them. The Kemp LoadMaster GEO feature can be used to provide intelligent
traffic routing for internal DirectAccess clients accessing the NLS, ensuring that clients
always connect to a local NLS.
In this documentation example, Windows Server 2012 R2 DirectAccess has been deployed in a
single server, single site deployment. The DirectAccess servers are configured with two network
interfaces; the internal network interface resides on the internal LAN and the external network
interfaces resides in the external perimeter network or DMZ. DirectAccess is configured for
certificate authentication and supports both Windows 7 and Windows 8.x clients. The NLS are
deployed on dedicated systems. Infrastructure is in place to facilitate load balancing DirectAccess
servers in site A, as well as to deploy DirectAccess in a multisite configuration with load balanced
DirectAccess servers in site B. An additional LoadMaster is located in site A to provide internal
geographic load balancing for NLS. Although not specifically documented here, the LoadMasters
themselves are single points of failure and should be configured in a redundant manner to ensure
the highest levels of availability. In all, the deployment includes the following:
The external DNS name space used in this environment is [Link]. The Internal DNS name
space is [Link].
2.2 Prerequisites
A number of prerequisites must be in place before proceeding with this documentation. In addition
to the assumptions outlined earlier in this document, it is assumed that the Kemp LoadMaster has
been configured and that network connectivity to all networks has been verified. In addition, the
following prerequisites must be in place before continuing:
A unique internal hostname for the load balanced NLS, for example [Link]
A unique external hostname for each entry point that resolves to the external IPv4 address
assigned to the DirectAccess Virtual Service on the LoadMaster, for exampleda-
[Link], [Link]
The NLS cannot be collocated on the DirectAccess server. It must reside on a separate system
Intra-Site Automatic Tunnel Addressing Protocol (ISATAP) for outbound DirectAccess client
management is not supported when using external load balancers and must be disabled prior
to implementing the LoadMaster
In a one-armed setup (where the Virtual Service and Real Servers are on the same network/subnet)
Subnet Originating Requests is usually not needed. However, enabling Subnet Originating Requests
should not affect the routing in a one-armed setup.
In a two-armed setup where the Virtual Service is on network/subnet A, for example, and the Real
Servers are on network B, Subnet Originating Requests should be enabled on LoadMasters with
firmware version 7.1-16 and above.
When Subnet Originating Requests is enabled, the Real Server sees traffic originating from
[Link] (LoadMaster eth1 address) and responds correctly in most scenarios.
With Subnet Originating Requests disabled, the Real Server sees traffic originating from [Link]
(LoadMaster Virtual Service address on eth0) and responds to eth0 which could cause asymmetric
routing.
When Subnet Originating Requests is enabled globally, it is automatically enabled on all Virtual
Services. If the Subnet Originating Requests option is disabled globally, you can choose whether to
enable Subnet Originating Requests on a per-Virtual Service basis.
1. In the main menu of the LoadMaster User Interface (UI), go to System Configuration >
Miscellaneous Options > Network Options.
1. In the Windows Server 2012 R2 Remote Access Management console, click Enable Load
Balancing under Load Balanced Cluster in the Tasks pane.
3. Provide a new IPv4 address to be assigned to the internal network interface of the
DirectAccess server.
4. Provide a new IPv4 address to be assigned to the external network interface of the
DirectAccess server.
6. Click Add or Remove Servers under Load Balanced Cluster in the Tasks pane.
7. Click Add Server and enter the hostname of the second DirectAccess server. Confirm the
network and certificate configuration, click Next, and then click Add, Close, and then
Commit.
1. In the main menu, expand Virtual Services and click Add New.
Standard
Force L7 Enabled
Options
Persistence Source IP
Mode Address
Timeout 30 minutes
Scheduling Round
Method Robin
Quality of Normal-
Service Service
8. In the main menu, go to Statistics > Real Time Statistics and then click Virtual Services.
Verify that the Virtual Service is up and that all Real Servers are online and available.
1. In the main menu, expand Virtual Services and click Add New.
2. In the Virtual Address text box, enter the IPv4 address that was originally assigned to the
internal network interface of the first DirectAccess server when load balancing was initially
configured.
Options
Transparency Disabled
Scheduling round
Method robin
Click Add New. In the Real Server Address text box, enter
the address of the internal network interface of the first
Real DirectAccess server. Click Add This Real Server. Repeat
Servers the two steps above for all additional DirectAccess
servers.
6. In the main menu, click Statistics and then click Virtual Services. Verify that the Virtual
Service is up and that all Real Servers are online and available.
To configure an NLS Virtual Service, follow the steps below in the LoadMaster WUI:
1. In the main menu, expand Virtual Services and click Add New.
Standard
Force L7 Enabled
Options
Transparency Enabled
Scheduling round
Method robin
Click Add New. In the Real Server Address text box, enter
the address in the Real Server text box. Click Add This
Real Real Server. Repeat the two steps above for all
Servers additional NLS servers.
7. In the main menu, click Statistics and click Virtual Services. Verify that the Virtual
Service is up and that all Real Servers are online and available.
To configure an NLS (Offloaded) Virtual Service, use the following steps in the LoadMaster WUI:
1. In the main menu, expand Virtual Services and click Add New.
Activate or
Deactivate Selected
Service
Standard
Transparency Selected
Options
Persistence
None
Options
Scheduling
round robin
Method
SSL SSL
Enabled
Properties Acceleration
Supported TLS1.0; TLS1.1; While this workload may not support TLS1.3 yet,
Protocols TLS1.2; TLS1.3 Kemp recommend enabling it for future proofing.
Advanced Content
Disabled
Properties Switching
Legacy
Add HTTP
Operation (X-
Headers
ClientSide)
Redirection
[Link] Click Add HTTP Redirector button.
URL
Real .
Servers
1. In the internal DNS, create a DNS record with a hostname that resolves to the virtual IP
address configured for the NLS Virtual Service.
2. In the Remote Access Management console, click DirectAccess and VPN under the
Configuration node in the navigation tree.
To configure geographic load balancing for NLS, follow the steps below in the LoadMaster WUI:
1. In the main menu, expand Global Balancing and click Manage FQDNs.
3. Enter the New Fully Qualified Domain Name to be used for NLS and click Add FQDN.
4. Click OK.
7. Enter the IP addresses assigned to the NLS Virtual Services in each site, clicking Add
Address after entering each one.
b) Enter the IPv4 address of the NLS Virtual Service in the Addr text box.
10. In the Add a new custom location text box, enter a name for the custom location, for
example US West and click Add Location.
11. In the Add a new IP address text box, enter the IPv4 subnet where each NLS resides and
click Add Address.
13. Then, select the custom location from the drop-down list.
17. From the Available Locations list, select the custom location which was created
previously and click > to add it to the Assigned Locations list
19. Repeat these steps for the second IP address, this time creating and choosing a different
custom location.
1. In the Remote Access Management console, highlight DirectAccess and VPN under the
Configuration node in the navigation tree.
6. Enter the global load balancing FQDN to be used by all entry points.
7. Enter the global load balancing IPv4 address for this entry point. This is the public IPv4
address assigned to the DirectAccess Virtual Service on the LoadMaster. Global Server Load
Balancing (GSLB) on the LoadMaster will be configured later.
8. If Windows 7 client support is required, choose the option to Allow client computers
running Windows 7 to access this entry point, click Add, and then choose a security group.
1. In the Remote Access Management console, click Add an Entry Point under Multisite
Deployment in the Tasks pane.
2. Enter the name of the server that will be the first server in the new entry point and
provide a unique name for this entry point.
3. Enter the global load balancing IPv4 address for this entry point.
7. If Windows 7 client support is required, choose the option to Allow client computers
running Windows 7 to access this entry point, click Add, and then choose a security group.
1. In the Remote Access Management console, highlight DirectAccess and VPN under the
Configuration node in the navigation tree.
2. Click Enable Load Balancing under Load Balanced Cluster in the Tasks pane.
4. Provide a new IPv4 address to be assigned to the external network interface of the
DirectAccess server.
5. Provide a new IPv4 address to be assigned to the internal network interface of the
DirectAccess server.
7. Click Add or Remove Servers under Load Balanced Cluster in the Tasks pane.
8. Click Add Server and enter the hostname of the second DirectAccess server for this entry
point.
10. Confirm the server settings and click Add, Close, and Commit.
11. Follow the steps outlined previously in this document for configuring Virtual Services
for the DirectAccess server, web probe host, and NLS for this site.
1. In the main menu, expand Global Balancing and click Manage FQDNs.
3. Enter the DirectAccess global load balancing FQDN and click Add FQDN.
4. Click OK.
6. Enter the GSLB IPv4 address for each DirectAccess entry point and click Add Address
after entering each IP address.
b) Enter the global load balancing IPv4 address of each DirectAccess entry point in the
Addr text box.
8. If the Selection Criteria is set to Location Based, click Show Locations and assign a
continent or country where the entry point resides.
References
Further information can be found in the links below: