Step 1 Configure Advanced DirectAccess Infrastructure | Microsoft Learn
This topic describes how to configure the infrastructure that is required for an advanced Remote Access deployment that uses a single DirectAccess server in a mixed IPv4 and IPv6 environment. Before you begin the deployment steps, ensure that you have completed the planning steps that are described in Plan an Advanced DirectAccess Deployment.
| Task | Description |
| --- | --- |
| 1.1 Configure server network settings | Configure the server network settings on the DirectAccess server. |
| 1.2 Configure force tunneling | Configure force tunneling. |
| 1.3 Configure routing in the corporate network | Configure routing in the corporate network. |
| 1.4 Configure firewalls | Configure additional firewalls, if required. |
| 1.5 Configure CAs and certificates | Configure a certification authority (CA), if required, and any other certificate templates that are required in the deployment. |
| 1.6 Configure the DNS server | Configure the Domain Name System (DNS) settings for the DirectAccess server. |
| 1.7 Configure Active Directory | Join client computers and the DirectAccess server to the Active Directory domain. |
| 1.8 Configure GPOs | Configure GPOs for the deployment, if required. |
| 1.9 Configure security groups | Configure security groups that will contain DirectAccess client computers, and any other security groups that are required in the deployment. |
| 1.10 Configure the network location server | Configure the network location server, including installing the network location server website certificate. |
Note
This topic includes sample Windows PowerShell cmdlets that you can use to automate some of the procedures described. For more information, see Using Cmdlets.
1.1 Configure server network settings
The following network interface settings are required for a single server deployment in an environment that is using IPv4 and IPv6. All IP addresses are configured by using Change adapter settings in the Windows Networking and Sharing Center.
Edge topology
- Two Internet-facing consecutive public static IPv4 or IPv6 addresses
Note
Two public addresses are required for Teredo. If you are not using Teredo, you can configure a single public static IPv4 address.
- A single internal static IPv4 or IPv6 address
Behind NAT device (with two network adapters)
-
A single Internet-facing static IPv4 or IPv6 address
-
A single internal network-facing static IPv4 or IPv6 address
Behind NAT device (with one network adapter)
- A single internal network-facing static IPv4 or IPv6 address
Note
If a DirectAccess server with two or more network adapters (one classified in the domain profile and the other in a public or private profile) is configured with a single network adapter topology, we recommend the following:
-
Ensure that the second network adapter and any additional network adapters are classified in the domain profile.
-
If the second network adapter cannot be configured for the domain profile, the DirectAccess IPsec policy must be manually scoped to all profiles by using the following Windows PowerShell command after DirectAccess is configured:
$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
1.2 Configure force tunneling
Force tunneling can be configured through the Remote Access Setup Wizard. It is presented as a check box in the Configure Remote Clients Wizard. This setting only affects DirectAccess clients. If VPN is enabled, VPN clients will by default use force tunneling. Administrators can change the setting for VPN clients from the client profile.
Selecting the check box for force tunneling does the following:
-
Enables force tunneling on DirectAccess clients
-
Adds an Any entry in the Name Resolution Policy Table (NRPT) for DirectAccess clients, which means that all DNS traffic will go to the internal network DNS servers
-
Configures DirectAccess clients to always use the IP-HTTPS transition technology
To make Internet resources available to DirectAccess clients that use force tunneling, you can use a proxy server, which can receive IPv6-based requests for Internet resources and translate them to requests for IPv4-based Internet resources. To configure a proxy server for Internet resources, you need to modify the default entry in NRPT to add the proxy server. You can accomplish this by using the Remote Access PowerShell cmdlets or the DNS PowerShell cmdlets. For example, use the Remote Access PowerShell cmdlet as follows:
Set-DAClientDNSConfiguration "DNSSuffix "." "ProxyServer <Name of the proxy server:port>
Note
If DirectAccess and VPN are enabled on the same server, and VPN is in force-tunnel mode, and the server is deployed in an edge topology or a behind NAT topology (with two network adapters, one connected to the domain and one to a private network), VPN Internet traffic cannot be forwarded through the external interface of the DirectAccess server. To enable this scenario, organizations must deploy Remote Access on the server behind a firewall in single network adapter topology. Alternatively, organizations can use a separate proxy server in the internal network to forward the Internet traffic from VPN clients.
Note
If an organization is using a web proxy for DirectAccess clients to access Internet resources, and the corporate proxy is not capable of handling internal network resources, DirectAccess clients will not be able to access internal resources if they are outside the intranet. In such a scenario, to enable DirectAccess clients to access internal resources, manually create NRPT entries for the internal network suffixes by using the DNS page of the infrastructure wizard. Do not apply proxy settings on these NRPT suffixes. The suffixes should be populated with default DNS server entries.
1.3 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 DirectAccess server.
-
Manually configure the organization"s IPv4 and IPv6 routes on the DirectAccess servers. Add a published route so that all traffic with an organization (/48) IPv6 prefix is forwarded to the internal network. For IPv4 traffic, add explicit routes so that IPv4 traffic is forwarded to the internal network.
1.4 Configure firewalls
When using additional firewalls in your deployment, apply the following Internet-facing firewall exceptions for Remote Access traffic when the DirectAccess server is on the IPv4 Internet:
-
Teredo traffic"User Datagram Protocol (UDP) destination port 3544 inbound, and UDP source port 3544 outbound.
-
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 DirectAccess server has a single network adapter, and the network location server is on the DirectAccess server, then TCP port 62000 is also required.
Note
This exemption must be configured on the DirectAccess server, while all the other exemptions have to be configured on the edge firewall.
Note
For Teredo and 6to4 traffic, these exceptions should be applied for both of the Internet-facing consecutive public IPv4 addresses on the DirectAccess server. For IP-HTTPS the exceptions need only be applied to the address where the public name of the server resolves.
When using additional firewalls, apply the following Internet-facing firewall exceptions for Remote Access traffic when the DirectAccess server is on the IPv6 Internet:
-
IP Protocol 50
-
UDP destination port 500 inbound, and UDP source port 500 outbound.
-
Internet Control Message Protocol for IPv6 (ICMPv6) traffic inbound and outbound " for Teredo implementations only.
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
-
ICMP for all IPv4/IPv6 traffic
1.5 Configure CAs and certificates
Remote Access in Windows Server 2012 allows you to choose between using certificates for computer authentication or using a built in Kerberos proxy that authenticates using user names and passwords. You must also configure an IP-HTTPS certificate on the DirectAccess server.
For more information, see Active Directory Certificate Services.
1.5.1 Configure IPsec authentication
A computer certificate is required on the DirectAccess server and on all DirectAccess clients to use IPsec authentication. The certificate must be issued by an internal certification authority (CA), and DirectAccess servers and DirectAccess clients must trust the CA chain that issues root and intermediate certificates.
To configure IPsec authentication
- In the internal CA, decide if you will use the Computer certificate template, or if you will create a new certificate template as described in Creating Certificate Templates.
Note
If you create a new template, it must be configured for Client Authentication.
-
Deploy the certificate template, if required. For more information, see Deploying Certificate Templates.
-
Configure the certificate template for autoenrollment, if required. For more information, see Configure Certificate Autoenrollment.
1.5.2 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
-
In the internal CA, create a certificate template as described in Creating Certificate Templates.
-
Deploy the certificate template as described in Deploying Certificate Templates.
1.5.3 Configure the IP-HTTPS certificate
Remote Access requires an IP-HTTPS certificate to authenticate IP-HTTPS connections to the DirectAccess server. There are three certificate options that are available for IP-HTTPS authentication:
Public certificate
A public certificate is supplied by a third party. If the certificate subject name does not contain wildcard characters, it must be the externally resolvable fully qualified domain name (FQDN) URL that is used only for the DirectAccess server IP-HTTPS connections.
Private certificate
If you use a private certificate, the following are required, if they do not already exist:
-
A website certificate that is used for IP-HTTPS authentication. The certificate subject should be an externally resolvable FQDN that is reachable from the Internet. The certificate is based on the certificate template that you created by following the instructions in 1.5.2 Configure certificate templates.
-
A certificate revocation list (CRL) distribution point that is reachable from a publicly resolvable FQDN.
Self-signed certificate
If you use a self-signed certificate, the following are required, if they do not already exist:
- A website certificate that is used for IP-HTTPS authentication. The certificate subject should be an externally resolvable FQDN that is reachable from the Internet.
