DirectAccess

On this page 7

DirectAccess is a Microsoft remote access technology that gives domain-joined Windows computers an automatic, always-on connection to the corporate network whenever they have internet access, without the user starting a VPN. In Windows networking, it was introduced with Windows 7 and Windows Server 2008 R2 and is built on IPsec tunnels over IPv6, carried across IPv4 networks by transition technologies.

DirectAccess is now a legacy technology. Microsoft recommends Always On VPN for new deployments, but many organizations still run DirectAccess on Windows Server, so administrators need to understand how it works, how to troubleshoot it and how to migrate away from it.

How DirectAccess connects a client to the intranet

A DirectAccess client decides whether it is inside or outside the corporate network by trying to reach the network location server, an internal HTTPS website. If the site answers, the client assumes it is on the intranet and does nothing. If it does not answer, the client activates DirectAccess and builds tunnels to the Remote Access server at the network edge.

The client uses two IPsec tunnels. The infrastructure tunnel is authenticated with the computer certificate or computer account and starts before any user logs on, so domain controllers, management servers and update services are reachable. The intranet tunnel adds user authentication and opens access to the remaining internal resources.

Name resolution relies on the Name Resolution Policy Table, or NRPT, delivered by Group Policy. The NRPT tells the client to send queries for internal namespaces, such as corp.example.com, to internal DNS servers through the tunnel, while all other queries go to the public DNS server of the local network.

ComponentLocationRole
Remote Access serverNetwork edge or behind a NAT deviceTerminates IPsec tunnels and translates traffic
Network location serverInternal network onlyLets clients detect that they are inside
NRPTClient, via Group PolicyRoutes internal DNS queries through the tunnel
DNS64 and NAT64Remote Access serverGive IPv6 clients access to IPv4-only resources
Public key infrastructureInternal certificate authorityIssues computer and IP-HTTPS certificates
Core components of a DirectAccess deployment

IPv6 transition technologies in DirectAccess

DirectAccess carries all client traffic as IPv6, yet most home and hotel networks offer only IPv4. The client therefore wraps IPv6 packets in one of three transition technologies, chosen automatically in order of preference. When none of them can be used, the connection fails.

TechnologyWhen it is usedPractical note
6to4Client has a public IPv4 addressRare today and often blocked by providers
TeredoClient is behind NAT, UDP 3544 allowedRequires two consecutive public IPv4 addresses on the server
IP-HTTPSAll other cases, over TCP 443Most reliable through firewalls and proxies
Native IPv6Client and server both have IPv6No encapsulation overhead
Transition technologies used by DirectAccess clients

IP-HTTPS became the dominant method because it passes almost any firewall. Older Windows versions encrypted traffic twice, once with IPsec and once with TLS, which cost performance. Windows 8 and later use null encryption for TLS inside IP-HTTPS, which significantly reduces the overhead.

Requirements and limitations of DirectAccess

DirectAccess works only with domain-joined clients running Enterprise or Education editions of Windows. Windows Pro and Home editions cannot act as DirectAccess clients, and devices that are joined only to Microsoft Entra ID are not supported. The server role is the Remote Access role in Windows Server.

  • No support for non-Windows clients: macOS, iOS, Android and Linux devices need a different remote access solution.
  • Limited protocol support: some applications that embed IPv4 addresses in their payloads fail through NAT64.
  • Complex troubleshooting: failures may lie in certificates, NRPT, IPsec policy or the transition layer.
  • No active development: Microsoft keeps DirectAccess for compatibility but adds no new features.

A frequent outage is caused by an unreachable network location server. If the server fails while clients are inside the office, they wrongly assume they are outside, start DirectAccess and may lose access to internal names, so the network location server should be highly available.

DirectAccess compared with VPN alternatives

DirectAccess and Always On VPN both provide automatic remote connectivity, but they differ in protocol design, client support and management. Always On VPN uses standard VPN protocols such as IKEv2 and SSTP and supports device and user tunnels with similar behavior to DirectAccess.

FeatureDirectAccessAlways On VPNTraditional VPN
Connection startAutomatic, before logonAutomatic, device or user tunnelManual by the user
Client editionsEnterprise and Education onlyMost Windows editionsDepends on vendor client
Network layerIPv6 over IPsecIPv4 and IPv6IPv4 and IPv6
ManagementGroup PolicyIntune or configuration profilesVendor tools
Future statusLegacy, no new featuresRecommended by MicrosoftVendor dependent
DirectAccess and related remote access options

Operating and migrating DirectAccess

Administrators diagnose client state with PowerShell and netsh. The cmdlet Get-DAConnectionStatus reports whether the client is connected, and netsh namespace show effectivepolicy displays the active NRPT rules. The Remote Access Management console on the server shows operations status and connected clients.

SymptomLikely causeTypical fix
Clients inside the office lose internal namesNetwork location server downRestore or cluster the server
IP-HTTPS shows error 0x2af9Certificate or name mismatchCorrect the IP-HTTPS certificate
Only the infrastructure tunnel connectsUser authentication failureCheck user Kerberos and IPsec policy
Internal app works by IP but not by nameMissing NRPT entryAdd the namespace to the NRPT
Common DirectAccess problems

Migration to Always On VPN usually runs in parallel: the new VPN profiles are deployed to a pilot group, the pilot computers are removed from the DirectAccess security group, and the Remote Access server is retired once all clients have moved. Running both on the same client for a long time can cause routing and name resolution conflicts.

In plain words

DirectAccess lets a company laptop reach the office network from anywhere. The user does not click anything. The laptop notices it is outside the office and connects on its own.

It is like a private road that opens whenever the car leaves the company parking lot. It works only on business editions of Windows. It is older technology, and most companies now replace it with Always On VPN.

A real-world example

A regional engineering firm with 350 Windows laptops deployed DirectAccess years ago so that site engineers could open drawings from internal file servers while traveling. Laptops connect over IP-HTTPS on port 443 from hotels and client sites, and IT staff push updates and Group Policy changes even when nobody is logged on, because the infrastructure tunnel starts at boot.

When the firm introduced Microsoft Intune and several Windows Pro devices, DirectAccess could not cover them. IT ran a pilot of Always On VPN with 30 users, then moved the rest in four weekly waves. After eight weeks, the Remote Access server was decommissioned, and remote access worked on all devices, including those that DirectAccess had never supported.