Edge-facing deployments:

Install DirectAccess with Windows Server 2016_第1张图片


External interface connected to the public Internet using public IPv4 addressing

To configure the External interface, right-click the External adapter and choose  
Properties. Highlight Internet Protocol Version 4 (TCP/IPv4) and then click    
Properties. Provide an IPv4 address, subnet mask, and default gateway. DO NOT      
specify any DNS servers!

Install DirectAccess with Windows Server 2016_第2张图片

Click Advanced,Select the DNS tab and uncheck the box next to Register this connection’s addresses in DNS    
Install DirectAccess with Windows Server 2016_第3张图片

Select the WINS tab and uncheck the box next to Enable LMHOSTS lookup.

In addition, in the NetBIOS setting section select the option to Disable NetBIOS over TCP/IP

Install DirectAccess with Windows Server 2016_第4张图片


Internal interface connected to a perimeter or DMZ network or the LAN using private IPv4 addressing

To configure the Internal network interface, right-click the Internal network  
connection and choose Properties. Highlight Internet Protocol Version 4 (TCP/IPv4)      
and then click Properties. Provide an IPv4 address and a subnet mask. DO NOT        
specify a default gateway!
Provide the IP addresses for DNS servers on the corporate    
LAN as necessary

Install DirectAccess with Windows Server 2016_第5张图片

2. Static Routes    
As the Internal network interface does not have a default gateway, it will be necessary to configure static routes to remote internal subnets that will need to be reachable from the DirectAccess server and by DirectAccess clients. For example, if the DirectAccess server is on the 192.168.3.0/24 subnet, but there are systems on the192.168.10.0/24 subnet that must be accessible from the DirectAccess server, a static route will be defined by entering the following commands in an elevated PowerShell command window:    

New-NetRoute -InterfaceAlias –DestinationPrefix   -NextHop 


Using the preceding example, the command to create the static route would look like this:


New-NetRoute -InterfaceAlias Internal -DestinationPrefix 192.168.10.0/24 -NextHop 192.168.3.254

 

3.Join Domain and Apply Updates

Using the Add-Computer PowerShell cmdlet, it is possible to rename the computer, join it to the domain, and place the server in a specific Organizational Unit (OU) with a single command:    

Add-Computer -NewName -OUPath –DomainName 


For example:


Add-Computer –NewName SEN-DAS –OUPath "OU=DAS,DC=sen,DC=hi,DC=cn" –DomainName sen.hi.cn –Restart

Install DirectAccess with Windows Server 2016_第6张图片

Once the DirectAccess server has been joined to the domain, proceed with installing Windows operating updates as necessary using Windows Update (Window Key + I ?Update & Security ? Check for Updates)

4.Certificates

DirectAccess requires two different types of certificates—computer (machine) certificate and an SSL certificate.

computer certificates are used for IPsec authentication and encryption. They must be issued to the DirectAccess server by an internal PKI. The certificate must include the Client Authentication Enhanced Key Usage (EKU) .

To create a certificate template, open the Certificate Services management console on the Active Directory Certificate Services (AD CS) server .

In the navigation tree, expand the server and then right-click Certificate Templates and choose Manage.

Optionally, you can press Windows Key + R and enter certtmpl.msc.

Install DirectAccess with Windows Server 2016_第7张图片    
Right-click the Workstation Authentication template and choose Duplicate Template.

Install DirectAccess with Windows Server 2016_第8张图片

Select the General tab and provide a descriptive name[DirectAccess IPSec] for the new template.  
Specify an appropriate validity and renewal period based on your organization’s security policy

Install DirectAccess with Windows Server 2016_第9张图片

Select the Subject Name tab and choose DNS name for the Subject name format

Install DirectAccess with Windows Server 2016_第10张图片

Select the Security tab and click Add. Specify the names of the DirectAccess client security group and the name of each DirectAccess server.

Optionally, a security group can be created for DirectAccess servers, and that group can be specified here.

Install DirectAccess with Windows Server 2016_第11张图片

For the DirectAccess client group and the DirectAccess servers (or DirectAccess server group),check the Allow box for both Enroll and Autoenroll. Once complete, click OK

Install DirectAccess with Windows Server 2016_第12张图片

In the Certification Authority management console,

Install DirectAccess with Windows Server 2016_第13张图片

right-click Certificate Templates and choose New and Certificate Template to Issue. Highlight the DirectAccess IPsec certificate template and choose OK

Install DirectAccess with Windows Server 2016_第14张图片

Install DirectAccess with Windows Server 2016_第15张图片

Install DirectAccess with Windows Server 2016_第16张图片

Computer certificates can be requested and installed manually on the DirectAccess server using the Certificates management console snap-in.

To request a computer certificate, press Window Key + R on the DirectAccess server to bring up the Run command box and enter certlm.msc    
Expand Certificates (Local Computer), right-click Personal, and choose All Tasks and Request New Certificate. Click Next twice, select the DirectAccess IPsec certificate template, and click Enroll

Install DirectAccess with Windows Server 2016_第17张图片

Install DirectAccess with Windows Server 2016_第18张图片

Install DirectAccess with Windows Server 2016_第19张图片

Install DirectAccess with Windows Server 2016_第20张图片

Install DirectAccess with Windows Server 2016_第21张图片

Install DirectAccess with Windows Server 2016_第22张图片

Install DirectAccess with Windows Server 2016_第23张图片

 

 

Automatic Enrollment

To the provisioning of certificates for DirectAccess servers and clients, and to ensure that certificates are automatically renewed before they expire it is recommended that certificate auto-enrollment be configured. This is accomplished by creating and deploying a Group Policy Object (GPO) in Active Directory.

To create and deploy a computer certificate auto-enrollment GPO, open the Group Policy Management console, [Run gpmc.msc] Expand the Forest, Domains, and the domain where the DirectAccess server and clients are joined. Right-click Group Policy Objects and click New. Provide a descriptive name for the new GPO and click OK.

Install DirectAccess with Windows Server 2016_第24张图片

Install DirectAccess with Windows Server 2016_第25张图片

Install DirectAccess with Windows Server 2016_第26张图片

Install DirectAccess with Windows Server 2016_第27张图片

Right-click the newly created GPO and choose Edit. Expand Computer Configuration, Policies, Windows Settings, and Security Settings, and highlight Public Key Policies.

Double-click Certificate Services Client - Auto-Enrollment

Install DirectAccess with Windows Server 2016_第28张图片

and select Enabled for the Configuration Model. Select the option to Renew expired certificates,update pending certificates, and remove revoked certificates

and Update certificates that use certificate templates and click OK

Install DirectAccess with Windows Server 2016_第29张图片

In the Group Policy Management Console, select the GPO and click Add under Security Filtering. Remove Authenticated Users and specify the DirectAccess client security group and all DirectAccess servers (or the DirectAccess servers security group)

Install DirectAccess with Windows Server 2016_第30张图片

Install DirectAccess with Windows Server 2016_第31张图片

Install DirectAccess with Windows Server 2016_第32张图片

Install DirectAccess with Windows Server 2016_第33张图片

 

Finally, link the GPO to the domain. Optionally, the GPO can be linked directly to the DirectAccess servers and clients OU, if necessary.

Install DirectAccess with Windows Server 2016_第34张图片

Install DirectAccess with Windows Server 2016_第35张图片

Install DirectAccess with Windows Server 2016_第36张图片

 

SSL Certificate

An SSL certificate is required for the IP-HTTPS IPv6 transition protocol. It is recommended that the SSL certificate be obtained from a public certificate authority(CA), although the SSL certificate can be issued by the organization’s internal PKI,if an SSL certificate is issued by the organization’s internal PKI and Windows 7 clients are to be supported, the Certificate Revocation List (CRL) must be publicly accessible.

The first step in requesting a public SSL certificate is to generate a Certificate Signing Request (CSR) . This can be accomplished in a variety of ways, including using the Microsoft Management Console (MMC) Certificates snap-in, the certutil.exe commandline tool, and even the Internet Information Services (IIS) management tool:

To obtain an additional certificate for IP-HTTPS

  1. On the DirectAccess server, click Start,  click Run, type mmc, and then press ENTER. Click Yes at the User Account Control prompt.        
    Install DirectAccess with Windows Server 2016_第37张图片

  2. Click File, and then click Add/Remove Snap-ins.        
    Install DirectAccess with Windows Server 2016_第38张图片

  3. Click Certificates, click Add, click Computer account, click Next, select Local computer, click Finish, and then click OK.        
    Install DirectAccess with Windows Server 2016_第39张图片        
    Install DirectAccess with Windows Server 2016_第40张图片        
    Install DirectAccess with Windows Server 2016_第41张图片

  4. In the console tree of the Certificates snap-in, open Certificates (Local Computer)\Personal\Certificates.        
    Install DirectAccess with Windows Server 2016_第42张图片

  5. Right-click Certificates, point to All Tasks, and then click Request New Certificate.        
    Install DirectAccess with Windows Server 2016_第43张图片

  6. Click Next twice.        
    Install DirectAccess with Windows Server 2016_第44张图片        
    Install DirectAccess with Windows Server 2016_第45张图片

  7. On the Request Certificates page, click the Web Server certificate template, and then click More information is required to enroll for this certificate.        
    Install DirectAccess with Windows Server 2016_第46张图片        

    If the Web Server certificate template does not appear, ensure that the DirectAccess server computer account has enroll permissions for the Web Server certificate template. For more information, see Configure Permissions on the Web Server Certificate Template.        

    To configure permissions for the Web Server certificate template


    1. On the CA computer, click Start,click Run, type certtmpl.msc, and then press ENTER.            
      Install DirectAccess with Windows Server 2016_第47张图片

    2. In the contents pane, right-click the Web Server template, and then click Properties.            
      Install DirectAccess with Windows Server 2016_第48张图片

    3. Click the Security tab, and then click Add.            
      Install DirectAccess with Windows Server 2016_第49张图片

    4. In Enter the object names to select, type the name of the security group that contains the computers that are allowed to request customized certificates, and then click OK.

      This security group should contain, at least temporarily when requesting custom certificates, the computer accounts of the DirectAccess server and network location server. As a security best practice, do not use the Authenticated Users group.          
      Install DirectAccess with Windows Server 2016_第50张图片

    5. In Permissions, click Enroll under Allow, and then click OK.            
      Install DirectAccess with Windows Server 2016_第51张图片

  8. On the Subject tab of the Certificate Properties dialog box, in Subject name, for Type, select Common name.        
    Install DirectAccess with Windows Server 2016_第52张图片

  9. In Value, type the fully qualified domain name (FQDN) of the Internet name of the DirectAccess server (for example,da.sen.hi.cn), and then click Add.        
    Install DirectAccess with Windows Server 2016_第53张图片        
    Install DirectAccess with Windows Server 2016_第54张图片

  10. Click OK, click Enroll, and then click Finish.        
    Install DirectAccess with Windows Server 2016_第55张图片        
    Install DirectAccess with Windows Server 2016_第56张图片        
    Install DirectAccess with Windows Server 2016_第57张图片

  11. In the details pane of the Certificates snap-in, verify that a new certificate with the FQDN was enrolled with Intended Purposes of Server Authentication.        
    Install DirectAccess with Windows Server 2016_第58张图片

  12. Right-click the certificate, and then click Properties.        
    Install DirectAccess with Windows Server 2016_第59张图片

  13. In Friendly Name, type IP-HTTPS Certificate, and then click OK.        
    Install DirectAccess with Windows Server 2016_第60张图片

5. Installing the DirectAccess-××× Role

Installing the DirectAccess-××× role using PowerShell:  
   
Install-WindowsFeature DirectAccess-××× -IncludeManagementTools

Install DirectAccess with Windows Server 2016_第61张图片    

6. Configure DirectAccess with the Getting Started Wizard

To launch the Getting Started Wizard, open the Remote Access Management Console on the DirectAccess server.    
The Remote Access Management Console can be found by clicking on the Start menu and navigating to All Apps ? Windows Administrative Tools ? Remote Access Management Conso le. Expand Configuration, highlight DirectAccess and ×××, and then click Run the Getting Started Wizard:    
Install DirectAccess with Windows Server 2016_第62张图片      
Install DirectAccess with Windows Server 2016_第63张图片      
Install DirectAccess with Windows Server 2016_第64张图片      
Install DirectAccess with Windows Server 2016_第65张图片      
Install DirectAccess with Windows Server 2016_第66张图片      
Install DirectAccess with Windows Server 2016_第67张图片      
Install DirectAccess with Windows Server 2016_第68张图片

Install DirectAccess with Windows Server 2016_第69张图片    
Install DirectAccess with Windows Server 2016_第70张图片    
Install DirectAccess with Windows Server 2016_第71张图片

Step 1: Remote Clients

 

Install DirectAccess with Windows Server 2016_第72张图片

Install DirectAccess with Windows Server 2016_第73张图片

Install DirectAccess with Windows Server 2016_第74张图片

Install DirectAccess with Windows Server 2016_第75张图片

Install DirectAccess with Windows Server 2016_第76张图片    
Install DirectAccess with Windows Server 2016_第77张图片

NCA settings apply only to Windows 8.x and Windows 10 clients. These settings are not used by Windows 7 clients.

The Resources that validate connectivity to the internal network field is initially blank. Intuitively, information should be supplied here. However, it is not necessary (or recommended) to do so at this time. Resource validation is performed by Windows 8.x and Windows 10 clients by checking connectivity to this URL after the DirectAccess connection is made. During initial configuration, the DirectAccess deployment wizard will automatically populate this field with the URL http://DirectAccess-WebProbeHost.sen.hi.cn, which is hosted on the DirectAccess server (a corresponding host record in DNS resolving to the internal IPv4 address of the DirectAccess server is also configured). This setting can later be changed after the initial configuration has been completed.

Install DirectAccess with Windows Server 2016_第78张图片    
Install DirectAccess with Windows Server 2016_第79张图片

auto add dns to the DNS Server:

Install DirectAccess with Windows Server 2016_第80张图片    
Step 2: Remote Access Server

Install DirectAccess with Windows Server 2016_第81张图片

Install DirectAccess with Windows Server 2016_第82张图片

Install DirectAccess with Windows Server 2016_第83张图片    
Install DirectAccess with Windows Server 2016_第84张图片

Step 3: Infrastructure Servers

Install DirectAccess with Windows Server 2016_第85张图片

Install DirectAccess with Windows Server 2016_第86张图片

Install DirectAccess with Windows Server 2016_第87张图片

Install DirectAccess with Windows Server 2016_第88张图片

Install DirectAccess with Windows Server 2016_第89张图片

Install DirectAccess with Windows Server 2016_第90张图片

Install DirectAccess with Windows Server 2016_第91张图片

Step 4: Application Servers (Optional)

Step 4 of the Remote Access Setup Wizard is optional. By default, DirectAccess client communication is authenticated and encrypted only between the DirectAccess client and the server.  
Communication between the DirectAccess server and hosts on the Internal network is not authenticated or encrypted.

If full end-to-end authentication—and, optionally, encryption—from the DirectAccess server to specific application servers is required, click Edit under Application Servers on Step 4.    
Install DirectAccess with Windows Server 2016_第92张图片    
   
Select the option to Extend authentication to selected application servers, click Add, and specify an Active Directory security group that includes servers requiring end-to-end authentication    
Install DirectAccess with Windows Server 2016_第93张图片

7.Client Configure and test

Add to AD:

Add-Computer –NewName DA-Win10  –OUPath "OU=DAClients,OU=DAS,DC=sen,DC=hi,DC=cn" –DomainName sen.hi.cn –Restart

Install DirectAccess with Windows Server 2016_第94张图片

Install DirectAccess with Windows Server 2016_第95张图片

Install DirectAccess with Windows Server 2016_第96张图片