Step 1 Plan the Basic DirectAccess Infrastructure | Microsoft Learn
The first step for a basic DirectAccess deployment on a single server is to perform planning for the infrastructure required for the deployment. This topic describes the infrastructure planning steps:
| Task | Description |
| --- | --- |
| Plan network topology and settings | Decide where to place the DirectAccess server (at the edge, or behind a Network Address Translation (NAT) device or firewall), and plan IP addressing and routing. |
| Plan firewall requirements | Plan for allowing DirectAccess through edge firewalls. |
| Plan certificate requirements | DirectAccess can use Kerberos or certificates for client authentication. In this basic DirectAccess deployment a Kerberos Proxy is automatically configured and authentication is accomplished using Active Directory credentials. |
| Plan DNS requirements | Plan DNS settings for the DirectAccess server, infrastructure servers, and client connectivity. |
| Plan Active Directory | Plan your domain controllers and Active Directory requirements. |
| Plan Group Policy Objects | Decide what GPOs are required in your organization and how to create or edit the GPOs. |
The planning tasks do not need to be done in a specific order.
Plan network topology and settings
Plan network adapters and IP addressing
-
Identify the network adapter topology you want to use. DirectAccess can be set up with either of the following:
-
With two network adapters - Either at the edge with one network adapter connected to the Internet and the other to the internal network, or behind a NAT, firewall, or router device, with one network adapter connected to a perimeter network and the other to the internal network.
-
Behind a NAT device with one network adapter - The DirectAccess server is installed behind a NAT device, and the single network adapter is connected to the internal network.
-
Identity your IP addressing requirements:
DirectAccess uses IPv6 with IPsec to create a secure connection between DirectAccess client computers and the internal corporate network. However, DirectAccess does not necessarily require connectivity to the IPv6 Internet or native IPv6 support on internal networks. Instead, it automatically configures and uses IPv6 transition technologies to tunnel IPv6 traffic across the IPv4 Internet (6to4, Teredo, IP-HTTPS) and across your IPv4-only intranet (NAT64 or ISATAP). For an overview of these transition technologies, see the following resources:
-
Configure required adapters and addressing according to the following table. For deployments behind a NAT device using a single network adapter, configure your IP addresses using only the Internal network adapter column.
| Description | External network adapter | Internal network adapter^1^ | Routing requirements |
| --- | --- | --- | --- |
| IPv4 intranet and IPv4 Internet | Configure the following:<br>- One static public IPv4 address with the appropriate subnet mask.- A default gateway IPv4 address of your Internet firewall or local Internet service provider (ISP) router. | Configure the following:<br>- An IPv4 intranet address with the appropriate subnet mask.- A connection-specific DNS suffix of your intranet namespace. A DNS server must also be configured on the internal interface.- Do not configure a default gateway on any intranet interfaces. | To configure the DirectAccess server to reach all subnets on the internal IPv4 network do the following:<br>1. List the IPv4 address spaces for all the locations on your intranet.2. Use the route add -p or netsh interface ipv4 add route commands to add the IPv4 address spaces as static routes in the IPv4 routing table of the DirectAccess server. |
| IPv6 Internet and IPv6 intranet | Configure the following:<br>- Use the autoconfigured address configuration provided by your ISP.- Use the route print command to ensure that a default IPv6 route pointing to the ISP router exists in the IPv6 routing table.- Determine whether the ISP and intranet routers are using default router preferences described in RFC 4191, and using a higher default preference than your local intranet routers. If both of these are true, no other configuration for the default route is required. The higher preference for the ISP router ensures that the active default IPv6 route of the DirectAccess server points to the IPv6 Internet.<br><br>Because the DirectAccess server is an IPv6 router, if you have a native IPv6 infrastructure, the Internet interface can also reach the domain controllers on the intranet. In this case, add packet filters to the domain controller in the perimeter network that prevent connectivity to the IPv6 address of the Internet-facing interface of the DirectAccess server. | Configure the following:<br>- If you are not using default preference levels, configure your intranet interfaces with the netsh interface ipv6 set InterfaceIndex ignoredefaultroutes=enabled command. This command ensures that additional default routes pointing to intranet routers will not be added to the IPv6 routing table. You can obtain the InterfaceIndex of your intranet interfaces from the display of the netsh interface show interface command. | If you have an IPv6 intranet, to configure the DirectAccess server to reach all of the IPv6 locations, do the following:<br>1. List the IPv6 address spaces for all the locations on your intranet.2. Use the netsh interface ipv6 add route command to add the IPv6 address spaces as static routes in the IPv6 routing table of the DirectAccess server. |
| IPv4 Internet and IPv6 intranet | The DirectAccess server forwards default IPv6 route traffic using the Microsoft 6to4 Adapter interface to a 6to4 relay on the IPv4 Internet. You can configure a DirectAccess server for the IPv4 address of the Microsoft 6to4 relay on the IPv4 Internet (used when native IPv6 is not deployed in the corporate network) with the following command : netsh interface ipv6 6to4 set relay name=192.88.99.1 state=enabled command. | | |
Note
Note the following:
-
If the DirectAccess client has been assigned a public IPv4 address, it will use the 6to4 transition technology to connect to the intranet. If the DirectAccess client cannot connect to the DirectAccess server with 6to4, it will use IP-HTTPS.
-
Native IPv6 client computers can connect to the DirectAccess server over native IPv6, and no transition technology is required.
Plan firewall requirements
If the DirectAccess server is behind an edge firewall, the following exceptions will be required for DirectAccess traffic when the DirectAccess 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.
-
If you are deploying DirectAccess with a single network adapter, and installing the network location server on the DirectAccess server, TCP port 62000 should also be exempted.
Note
This exemption is on the DirectAccess server. All the other exceptions are on the edge firewall.
The following exceptions will be required for DirectAccess traffic when the DirectAccess 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 DirectAccess traffic:
-
ISATAP - Protocol 41 inbound and outbound
-
TCP/UDP for all IPv4/IPv6 traffic
Plan certificate requirements
Certificate requirements for IPsec include a computer certificate used by DirectAccess client computers when establishing the IPsec connection between the client and the DirectAccess server, and a computer certificate used by DirectAccess servers to establish IPsec connections with DirectAccess clients. For DirectAccess in Windows Server 2012 R2 and Windows Server 2012, the use of these IPsec certificates is not mandatory. The Getting Started Wizard configures the DirectAccess server to act as a Kerberos proxy to perform IPsec authentication without requiring certificates.
-
IP-HTTPS server. When you configure DirectAccess, the DirectAccess server is automatically configured to act as the IP-HTTPS web listener. The IP-HTTPS site requires a website certificate, and client computers must be able to contact the certificate revocation list (CRL) site for the certificate. The Enable DirectAccess wizard tries to use the SSTP VPN certificate. If SSTP is not configured, it checks if a certificate for IP-HTTPS is present in the machine personal store. If none is available, it automatically creates a self-signed certificate.
-
Network location server. The network location server is a website used to detect whether client computers are located in the corporate network. The network location server requires a web site certificate. DirectAccess clients must be able to contact the CRL site for the certificate. The Enable Remote Access wizard checks if a certificate for Network Location Server is present in the machine personal store. If not present, it automatically creates a self-signed certificate.
The certification requirements for each of these are summarized in the following table:
| IPsec authentication | IP-HTTPS server | Network location server |
| --- | --- | --- |
| An internal CA is required to issue computer certificates to the DirectAccess server and clients for IPsec authentication when you don't use the Kerberos proxy for authentication | Public CA - It is recommended to use a public CA to issue the IP-HTTPS certificate, this ensures that the CRL distribution point is available externally. | Internal CA - You can use an internal CA to issue the network location server website certificate. Make sure that the CRL distribution point is highly available from the internal network. |
| | Internal CA - You can use an internal CA to issue the IP-HTTPS certificate; however, you must make sure that the CRL distribution point is available externally. | Self-signed certificate - You can use a self-signed certificate for the network location server website; however, you cannot use a self-signed certificate in multisite deployments. |
| | Self-signed certificate - You can use a self-signed certificate for the IP-HTTPS server; however, you must make sure that the CRL distribution point is available externally. A self-signed certificate cannot be used in a multisite deployment. | |
Plan certificates for IP-HTTPS and network location server
If you want to provision a certificate for these purposes, refer to Deploy a Single DirectAccess Server with Advanced Settings. If no certificates are available, the Getting Started wizard automatically creates self-signed certificates for these purposes.
Note
If you provision certificates for IP-HTTPS and the network location server manually, ensure that the certificates have a subject name. If the certificate does not have a subject name, but does have an alternative name, it will not be accepted by the DirectAccess wizard.
Plan DNS requirements
In a DirectAccess deployment, DNS is required for the following:
- DirectAccess client requests. DNS is used to resolve requests from DirectAccess client computers that are not located on the internal network. DirectAccess clients attempt to connect to the DirectAccess network location server in order to determine whether they are located on the Internet, or on the corporate network: If the connection is successful, then clients are determined to be on the intranet and DirectAccess is not used, and client requests are resolved using the DNS server configured on the network adapter of the client computer. If the connection does not succeed, clients are assumed to be on the Internet. DirectAccess clients will use the name resolution policy table (NRPT) to determine which DNS server to use when resolving name requests. You can specify that clients should use DirectAccess DNS64 to resolve names, or an alternative internal DNS server. When performing name resolution, the NRPT is used by DirectAccess clients to identify how to handle a request. Clients request an FQDN or single-label name such as http://internal. If a single-label name is requests, a DNS suffix is appended to make an FQDN. If the DNS query matches an entry in the NRPT, and DNS4 or an intranet DNS server is specified for the entry, then the query is sent for name resolution using the specified server. If a match exists but no DNS server is specified, then this indicates an exemption rule and normal name resolution is applied.
