Step 1 Plan the Basic DirectAccess Infra·续
When a new suffix is added to the NRPT in the DirectAccess Management console, the default DNS servers for the suffix can be automatically discovered by clicking the Detect button. Auto detection works as follows:
-
If the corporate network is IPv4-based, or IPv4 and IPv6, the default address is the DNS64 address of the internal adapter on the DirectAccess server.
-
If the corporate network is IPv6-based, the default address is the IPv6 address of DNS servers in the corporate network.
Note
Starting with the Windows 10 May 2020 Update, a client no longer registers its IP addresses on DNS servers configured in a Name Resolution Policy Table (NRPT). If DNS registration is needed, for example Manage Out, it can be explicitly enabled with this registry key on the client:
Path: HKLM\System\CurrentControlSet\Services\Dnscache\Parameters Type: DWORD Value name: DisableNRPTForAdapterRegistration Values:1 - DNS Registration disabled (default since the Windows 10 May 2020 Update)0 - DNS Registration enabled
-
Infrastructure servers
-
Network location server. DirectAccess clients attempt to reach the network location server to determine if they are on the internal network. Clients on the internal network must be able to resolve the name of the network location server, but must be prevented from resolving the name when they are located on the Internet. To ensure this occurs, by default, the FQDN of the network location server is added as an exemption rule to the NRPT. In addition, when you configure DirectAccess, the following rules are created automatically:
-
A DNS suffix rule for root domain or the domain name of the DirectAccess server, and the IPv6 addresses corresponding to the intranet DNS servers configured on the DirectAccess server. For example, if the DirectAccess server is a member of the corp.contoso.com domain, a rule is created for the corp.contoso.com DNS suffix.
-
An exemption rule for the FQDN of the network location server. For example, if the network location server URL is
https://nls.corp.contoso.com, an exemption rule is created for the FQDN nls.corp.contoso.com.
IP-HTTPS server. The DirectAccess server acts as an IP-HTTPS listener and uses its server certificate to authenticate to IP-HTTPS clients. The IP-HTTPS name must be resolvable by DirectAccess clients using public DNS servers.
Connectivity verifiers. DirectAccess creates a default web probe that is used by DirectAccess client computers use to verify connectivity to the internal network. To ensure the probe works as expected the following names must be registered manually in DNS:
-
directaccess-webprobehost - should resolve to the internal IPv4 address of the DirectAccess server, or to the IPv6 address in an IPv6-only environment.
-
directaccess-corpconnectivityhost - should resolve to localhost (loopback) address. A and AAAA record should be created, A record with value 127.0.0.1 and AAAA record with value constructed out of NAT64 prefix with the last 32 bits as 127.0.0.1. The NAT64 prefix can be retrieved by running the cmdlet get-netnattransitionconfiguration.
You can create additional connectivity verifiers using other web addresses over HTTP or PING. For each connectivity verifier, a DNS entry must exist.
DNS server requirements
- For DirectAccess clients, you must use a DNS server that is running Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server 2016, or any DNS server that supports IPv6.
Note
It is not recommended that you use DNS servers that are running Windows Server 2003 when you are deploying DirectAccess. Although Windows Server 2003 DNS servers do support IPv6 records, Windows Server 2003 is no longer supported by Microsoft. In addition, you should not deploy DirectAccess if your domain controllers are running Windows Server 2003 due to an issue with the File Replication Service. For more information, see DirectAccess Unsupported Configurations.
Plan the network location server
The network location server is a website used to detect whether DirectAccess clients are located in the corporate network. Clients in the corporate network do not use DirectAccess to reach internal resources, but instead connect directly.
The Getting Started Wizard automatically sets up network location server on the DirectAccess server and the website is created automatically when you deploy DirectAccess. This allows for a simple installation without the use of a certificate infrastructure.
If you want to deploy a Network Location Server and not use self-signed certificates, refer to Deploy a Single DirectAccess Server with Advanced Settings.
Plan Active Directory
DirectAccess uses Active Directory and Active Directory Group policy objects as follows:
-
Authentication. Active Directory is used for authentication. The DirectAccess tunnel uses Kerberos authentication for the user to access internal resources.
-
Group policy objects. DirectAccess gathers configuration settings into group policy objects that are applied to DirectAccess servers, and clients.
-
Security groups. DirectAccess uses security groups to gather together and identify DirectAccess client computers, and DirectAccess servers. The group policies are applied to the required security group.
Active Directory Requirements
When planning Active Directory for a DirectAccess deployment, the following is required:
- At least one domain controller installed on Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 R2, or Windows Server 2008.
If the domain controller is on a perimeter network (and therefore reachable from the Internet-facing network adapter of DirectAccess server) prevent the DirectAccess server from reaching it by adding packet filters on the domain controller, to prevent connectivity to the IP address of the Internet adapter.
-
The DirectAccess server must be a domain member.
-
DirectAccess clients must be domain members. Clients can belong to:
-
Any domain in the same forest as the DirectAccess server.
-
Any domain that has a two-way trust with the DirectAccess server domain.
-
Any domain in a forest that has a two-way trust with the forest to which the DirectAccess domain belongs.
Note
-
The DirectAccess server cannot be a domain controller.
-
The Active Directory domain controller used for DirectAccess must not be reachable from the external Internet adapter of the DirectAccess server (the adapter must not be in the domain profile of Windows Firewall).
Plan Group Policy Objects
DirectAccess settings configured when you configure DirectAccess are collected into Group policy objects (GPO). Two different GPOs are populated with DirectAccess settings, and distributed as follows:
-
DirectAccess client GPO. This GPO contains client settings, including IPv6 transition technology settings, NRPT entries, and Windows Firewall with Advanced Security connection security rules. The GPO is applied to the security groups specified for the client computers.
-
DirectAccess server GPO. This GPO contains the DirectAccess configuration settings that are applied to any server configured as a DirectAccess server in your deployment. It also contains Windows Firewall with Advanced Security connection security rules.
GPOs can be configured in two ways:
-
Automatically. You can specify that they are created automatically. A default name is specified for each GPO. GPOs are created automatically by the Getting Started Wizard.
-
Manually. You can use GPOs that have been predefined by the Active Directory administrator.
Note that once DirectAccess is configured to use specific GPOs, it cannot be configured to use different GPOs.
Important
Whether you are using automatically or manually configured GPOs, you will need to add a policy for slow link detection if your clients will use 3G. The Group Policy path for Policy: Configure Group Policy slow link detection is: Computer configuration / Polices / Administrative Templates / System / Group Policy.
Caution
Use the following procedure to backup all DirectAccess Group Policy Objects before executing DirectAccess cmdlets: Back up and Restore DirectAccess Configuration
Automatically-created GPOs
Note the following when using automatically-created GPOs:
Automatically created GPOS are applied according to the location and link target parameter, as follows:
-
For the DirectAccess server GPO, both the location and link parameters point to the domain containing the DirectAccess server.
-
When client GPOs are created, the location is set to a single domain in which the GPO will be created. The GPO name is looked up in each domain, and filled with DirectAccess settings if it exists. The link target is set to the root of the domain in which the GPO was created. A GPO is created for each domain that contains client computers, and the GPO is linked to the root of its respective domain.
When using automatically created GPOs, to apply DirectAccess settings, the DirectAccess server administrator requires the following permissions:
-
GPO create permissions for each domain.
-
Link permissions for all the selected client domain roots.
-
Link permissions for the server GPO domain roots.
-
Create, edit, delete, and modify security permissions are required for the GPOs.
-
It is recommended that the DirectAccess administrator has GPO read permissions for each required domain. This enables DirectAccess to verify that GPOs with duplicate names do not exist when creating GPOs.
Note that if the correct permissions for linking GPOs do not exist, a warning is issued. The DirectAccess operation will continue but linking will not occur. If this warning is issued links will not be created automatically, even after the permissions are added later. Instead the administrator will need to create the links manually.
Manually-created GPOs
Note the following when using manually-created GPOs:
-
The GPOs should exist before running the Remote Access Getting Started wizard.
-
When using manually-created GPOs, to apply DirectAccess settings the DirectAccess administrator requires full GPO permissions (Edit, Delete, Modify security) on the manually-created GPOs.
-
When using manually created GPOs a search is made for a link to the GPO in the entire domain. If the GPO is not linked in the domain then a link is automatically created in the domain root. If the required permissions to create the link are not available a warning is issued.
Note that if the correct permissions for linking GPOs do not exist, a warning is issued. The DirectAccess operation will continue but linking will not occur. If this warning is issued links will not be created automatically, even when the permissions are added later. Instead the administrator will need to create the links manually.
Recovering from a deleted GPO
If a DirectAccess server, client, or application server GPO has been deleted by accident and there is no backup available, you must remove the configuration settings and re-configure again. If a backup is available, you can restore the GPO from the backup.
DirectAccess Management will display the following error message: GPO <GPO name> cannot be found. To remove the configuration settings, take the following steps:
-
Run the PowerShell cmdlet Uninstall-remoteaccess.
-
Re-open DirectAccess Management.
-
You will see an error message that the GPO is not found. Click Remove configuration settings. After completion, the server will be restored to an un-configured state.
