Step 1 Configure the DirectAccess Infrastructure | Microsoft Learn
This topic describes how to configure the infrastructure required for enabling DirectAccess in an existing VPN deployment. Before beginning the deployment steps, ensure that you have completed the planning steps described in Step 1: Plan DirectAccess Infrastructure.
| Task | Description |
| --- | --- |
| Configure server network settings | Configure the server network settings on the Remote Access server. |
| Configure routing in the corporate network | Configure routing in the corporate network to make sure traffic is appropriately routed. |
| Configure firewalls | Configure additional firewalls, if required. |
| Configure CAs and certificates | The Enable DirectAccess Wizard configures a built in Kerberos proxy that authenticates using user names and passwords. It also configures an IP-HTTPS certificate on the Remote Access server. |
| Configure the DNS server | Configure DNS settings for the Remote Access server. |
| Configure Active Directory | Join client computers to the Active Directory domain. |
| Configure GPOs | Configure GPOs for the deployment, if required. |
| Configure security groups | Configure security groups that will contain DirectAccess client computers, and any other security groups required in the deployment. |
| Configure the network location server | The Enable DirectAccess Wizard configures the network location server on the DirectAccess server. |
Configure server network settings
The following network interface settings are required for a single server deployment in an environment with IPv4 and IPv6. All IP addresses are configured by using Change adapter settings in the Windows Networking and Sharing Center.
-
Edge topology
-
One Internet-facing public static IPv4 or IPv6 address.
-
A single internal static IPv4 or IPv6 address.
-
Behind NAT device (two network adapters)
-
A single internal network-facing static IPv4 or IPv6 address.
-
Behind NAT device (one network adapter)
-
A single static IPv4 or IPv6 address.
Note
In the event that the Remote Access server has two network adapters (one classified in the domain profile and the other in a public/private profile), but a single NIC topology will be used, then the recommendation is as follows:
-
Ensure that the 2nd NIC is also classified in the domain profile - Recommended.
-
If the 2nd NIC cannot be configured for the domain profile for any reason, then the DirectAccess IPsec policy must be manually scoped to all profiles using the following Windows PowerShell commands:
$gposession = Open-NetGPO -PolicyStore <Name of the server GPO>
Set-NetIPsecRule -DisplayName <Name of the IPsec policy> -GPOSession $gposession -Profile Any
Save-NetGPO -GPOSession $gposession
Configure routing in the corporate network
Configure routing in the corporate network as follows:
-
When native IPv6 is deployed in the organization, add a route so that the routers on the internal network route IPv6 traffic back through the Remote Access server.
-
Manually configure organization IPv4 and IPv6 routes on the Remote Access servers. Add a published route so that all traffic with an organization (/48) IPv6 prefix is forwarded to the internal network. In addition, for IPv4 traffic, add explicit routes so that IPv4 traffic is forwarded to the internal network.
Configure firewalls
When using additional firewalls in your deployment, apply the following Internet-facing firewall exceptions for Remote Access traffic when the Remote Access server is on the IPv4 Internet:
-
6to4 traffic-IP Protocol 41 inbound and outbound.
-
IP-HTTPS-Transmission Control Protocol (TCP) destination port 443, and TCP source port 443 outbound. When the Remote Access server has a single network adapter, and the network location server is on the Remote Access server, then TCP port 62000 is also required.
When using additional firewalls, apply the following Internet-facing firewall exceptions for Remote Access traffic when the Remote Access server is on the IPv6 Internet:
-
IP Protocol 50
-
UDP destination port 500 inbound, and UDP source port 500 outbound.
When using additional firewalls, apply the following internal network firewall exceptions for Remote Access traffic:
-
ISATAP-Protocol 41 inbound and outbound
-
TCP/UDP for all IPv4/IPv6 traffic
Configure CAs and certificates
The Enable DirectAccess Wizard configures a built in Kerberos proxy that authenticates using user names and passwords. It also configures an IP-HTTPS certificate on the Remote Access server.
Configure certificate templates
When you use an internal CA to issue certificates, you must configure a certificate template for the IP-HTTPS certificate and the network location server website certificate.
To configure a certificate template
-
On the internal CA, create a certificate template as described in Creating Certificate Templates.
-
Deploy the certificate template as described in Deploying Certificate Templates.
Configure the IP-HTTPS certificate
Remote Access requires an IP-HTTPS certificate to authenticate IP-HTTPS connections to the Remote Access server. There are three certificate options for the IP-HTTPS certificate:
- Public-Supplied by a 3rd party.
A certificate used for IP-HTTPS authentication. In the case that the certificate subject name is not a wild card, then it must be the externally resolvable FQDN URL used only for the Remote Access server IP-HTTPS connections.
-
Private-The following are required, if they do not already exist:
-
A website certificate used for IP-HTTPS authentication. The certificate subject should be an externally resolvable fully qualified domain name (FQDN) reachable from the Internet.
-
A certificate revocation list (CRL) distribution point that is reachable from a publicly resolvable FQDN.
-
Self-signed-The following are required, if they do not already exist:
Note
Self-signed certificates cannot be used in multisite deployments.
-
A website certificate used for IP-HTTPS authentication. The certificate subject should be an externally resolvable FQDN reachable from the Internet.
-
A CRL distribution point that is reachable from a publicly resolvable fully qualified domain name (FQDN).
Make sure that the website certificate used for IP-HTTPS authentication meets the following requirements:
-
The common name of the certificate should match the name of the IP-HTTPS site.
-
In the subject field, specify either the IPv4 address of the external-facing adapter of the Remote Access server, or the FQDN of the IP-HTTPS URL.
-
For the Enhanced Key Usage field, use the Server Authentication object identifier (OID).
-
For the CRL Distribution Points field, specify a CRL distribution point that is accessible by DirectAccess clients that are connected to the Internet.
-
The IP-HTTPS certificate must have a private key.
-
The IP-HTTPS certificate must be imported directly into the personal store.
-
IP-HTTPS certificates can have wildcards in the name.
To install the IP-HTTPS certificate from an internal CA
-
On the Remote Access server: On the Start screen, typemmc.exe, and then press ENTER.
-
In the MMC console, on the File menu, click Add/Remove Snap-in.
-
On the Add or Remove Snap-ins dialog box, click Certificates, click Add, click Computer account, click Next, click Local computer, click Finish, and then click OK.
-
In the console tree of the Certificates snap-in, open Certificates (Local Computer)\Personal\Certificates.
-
Right-click Certificates, point to All Tasks, and then click Request New Certificate.
-
Click Next twice.
-
On the Request Certificates page, select the check box for the certificate template, and if required, click More information is required to enroll for this certificate.
-
On the Certificate Properties dialog box, on the Subject tab, in the Subject name area, in Type, select Common Name.
-
In Value, specify either the IPv4 address of the external-facing adapter of the Remote Access server, or the FQDN of the IP-HTTPS URL, and then click Add.
-
In the Alternative name area, in Type, select DNS.
-
In Value, specify either the IPv4 address of the external-facing adapter of the Remote Access server, or the FQDN of the IP-HTTPS URL, and then click Add.
-
On the General tab, in Friendly name, you can enter a name that will help you identify the certificate.
-
On the Extensions tab, next to Extended Key Usage, click the arrow, and make sure that Server Authentication is in the Selected options list.
-
Click OK, click Enroll, and then click Finish.
-
In the details pane of the Certificates snap-in, verify that new certificate was enrolled with Intended Purposes of Server Authentication.
Configure the DNS server
You must manually configure a DNS entry for the network location server website for the internal network in your deployment.
To create the network location server and web probe DNS records
-
On the internal network DNS server: On the Start screen, type** dnsmgmt.msc**, and then press ENTER.
-
In the left pane of the DNS Manager console, expand the forward lookup zone for your domain. Right click the domain and click New Host (A or AAAA).
-
On the New Host dialog box, in the Name (uses parent domain name if blank) box, enter the DNS name for the network location server website (this is the name the DirectAccess clients use to connect to the network location server). In the IP address box, enter the IPv4 address of the network location server, and then click Add Host. On the DNS dialog box, click OK.
-
On the New Host dialog box, in the Name (uses parent domain name if blank) box, enter the DNS name for the web probe (the name for the default web probe is directaccess-webprobehost). In the IP address box, enter the IPv4 address of the web probe, and then click Add Host. Repeat this process for directaccess-corpconnectivityhost and any manually created connectivity verifiers. On the DNS dialog box, click OK.
