Always On VPN

On this page 7

Always On VPN is the Microsoft remote access technology that connects managed Windows devices to the corporate network automatically, without the user starting a connection by hand. It is built into the Windows VPN client and configured through policy profiles, so a laptop in a hotel or at home reaches internal servers almost as if it were in the office.

In Windows networking, Always On VPN is the successor to DirectAccess. It arrived with Windows 10 and remains supported in Windows 11. Unlike DirectAccess, it does not require domain membership for every scenario, supports IPv4 and IPv6, and works with Microsoft and many third-party VPN gateways.

How Always On VPN establishes the connection

The client builds the tunnel according to a profile defined in the VPNv2 configuration service provider (CSP). The profile, written as ProfileXML, describes the server address, protocol, authentication method, routes, DNS rules and triggers. Mobile device management such as Microsoft Intune, Configuration Manager or a PowerShell script delivers the profile to the device.

Once the profile is present, Windows watches network changes. When the device leaves the corporate network, trusted network detection notices that the internal DNS suffix is missing and the client connects on its own. When the device returns to the office, the tunnel is torn down to avoid routing traffic twice.

ComponentRoleCommon implementation
VPN clientBuilds and maintains the tunnelBuilt-in Windows client
VPN gatewayTerminates tunnels at the edgeRRAS or a third-party appliance
RADIUS serverAuthenticates users and devicesNetwork Policy Server (NPS)
Certificate authorityIssues user and device certificatesActive Directory Certificate Services
Management platformDeploys the ProfileXMLIntune or Configuration Manager
Main components of a typical deployment

Device tunnel and user tunnel

Always On VPN supports two independent tunnel types that can run at the same time. The device tunnel connects before anyone signs in, which allows management tasks and first-time logons. The user tunnel connects after sign-in and carries the user’s application traffic.

PropertyDevice tunnelUser tunnel
When it connectsBefore user sign-inAfter user sign-in
ProtocolsIKEv2 onlyIKEv2, SSTP or vendor plug-in
AuthenticationMachine certificateUser certificate or EAP methods
Edition requirementEnterprise or Education, domain-joinedMost business editions
Typical trafficDomain controllers, management serversFile shares, intranet, business apps
Device tunnel compared with user tunnel

Best practice limits the device tunnel to a small set of infrastructure routes through traffic filters. A broad device tunnel exposes the network to any process on the machine, even when no user is signed in.

Routing, name resolution and triggers

The profile decides which traffic enters the tunnel. With split tunneling, only routes to internal subnets use the VPN, while internet traffic goes directly out. With force tunneling, all traffic passes through the corporate gateway, which supports central inspection but increases latency and bandwidth costs.

Name resolution relies on the Name Resolution Policy Table (NRPT), which sends queries for internal DNS suffixes to internal DNS servers. Triggers can start the tunnel when a specific application launches or when the user accesses an internal name, while the always-on setting keeps the connection permanently up.

SituationRecommended modeReason
Heavy video meetings from homeSplit tunnelingKeeps media off the VPN gateway
Strict compliance inspectionForce tunnelingAll traffic passes central filters
Limited gateway capacitySplit tunnelingReduces load and bandwidth
Untrusted public Wi-Fi onlyForce tunnelingProtects all outbound traffic
Choosing a tunneling mode

Always On VPN compared with DirectAccess

DirectAccess provided a similar seamless experience but depended on IPv6 transition technologies, domain-joined Enterprise clients and Windows Server only. Microsoft no longer develops DirectAccess and recommends migration to Always On VPN or to newer identity-based access services such as Microsoft Entra Private Access.

  • Always On VPN supports Microsoft Entra joined and Intune-managed devices, not only domain members.
  • It works with third-party VPN gateways through plug-in profiles.
  • It allows conditional access checks based on device compliance before a certificate is issued.
  • DirectAccess remains limited to IP-HTTPS, 6to4 and Teredo transport over IPv6.

Limitations and common deployment problems

Always On VPN is powerful but configuration-sensitive. Most failures trace back to certificates, firewalls or a mistake in the ProfileXML rather than to the client itself.

SymptomLikely causeRemedy
Error 809 on connectIKEv2 ports blocked by a firewallOpen UDP 500 and 4500 or use SSTP
Error 13801Invalid or untrusted server certificateCheck the certificate chain and EKU
Tunnel connects inside the officeTrusted network detection not setAdd the internal DNS suffix to the profile
Large packets fail over IKEv2IP fragmentation dropped on the pathEnable IKEv2 fragmentation support
Frequent errors and remedies

Because profiles are deployed as XML, a single typo can silently break triggers or routes. Testing each profile on a pilot group of devices before broad rollout prevents costly helpdesk waves.

Capacity planning is another frequent gap. A single RRAS server can handle several hundred concurrent IKEv2 connections, but the real limit depends on CPU, encryption overhead and network throughput. Larger organizations place several gateways behind a load balancer and use geographic DNS so that users connect to the nearest site.

Finally, Always On VPN is still a network-level access model: once connected, a device can reach every subnet the routes allow. Organizations moving toward zero trust often combine it with strict traffic filters or replace parts of it with per-application access that checks identity for each connection.

A plain-language summary

A VPN is a private tunnel through the public internet. It links a laptop to the company network. Usually, people must start it by hand.

Always On VPN removes that step. The laptop notices when it is outside the office. It then opens the tunnel by itself. The user simply works as usual. Files, printers and internal websites stay reachable from home or a hotel. When the laptop comes back to the office, the tunnel closes again.

An example from practice

A regional insurance company with 800 field employees used a manual VPN client. Staff often forgot to connect, so laptops missed security updates and password changes for weeks. Helpdesk calls about expired cached credentials averaged about 60 per month.

The IT team deployed Always On VPN through Intune. A device tunnel with IKEv2 now gives domain controllers and update servers access before sign-in, limited by traffic filters. A user tunnel with split tunneling reaches file shares and the claims application, while video calls go directly to the internet.

After a three-month rollout, patch compliance for remote laptops rose to over 95%, and password-related calls dropped to a handful per month. Employees reported that they no longer needed to think about the VPN at all.