Remote-Access VPN / L2TP-IPsec Series

🔐 Understanding Always On VPN (AOVPN) From a Top 1% Perspective — Device Tunnel vs User Tunnel, and the Decisive Difference From L2TP/IPsec

Introduction

This article is part of the Top 1% Series Complete Article Guide, and article 7.1 in the Remote Access VPN / L2TP+IPsec Series.

Prerequisite Knowledge

Getting the Big Picture

L2TP/IPsec was a VPN built on the premise that the user takes an explicit “Connect” action: establishing an IPsec tunnel with a pre-shared key (PSK), then authenticating the user themselves with a username and password. Always On VPN stands on a fundamentally different premise. Its goal is to authenticate using only IKEv2 and certificates, and establish a connection automatically — either before the user even logs on, or the instant the device connects to a network. The name “Always On VPN” doesn’t refer to a specific product, or a single feature that works once enabled — it refers to an entire distribution design pattern, combining multiple elements: certificate authentication, IKEv2, and ProfileXML.

graph TB
    subgraph L2TP["Traditional: L2TP/IPsec"]
        A1["User manually clicks \"Connect\""] --> A2["Authenticates with PSK + username/password"]
    end
    subgraph AOVPN["Always On VPN"]
        B1["Device Tunnel: auto-connects pre-logon, via machine certificate"] --> B2["User Tunnel: auto-connects post-logon, via user certificate"]
    end

Deep Dive Into the Fundamentals

Why Two Tunnels Are Needed: the Device Tunnel and the User Tunnel

Always On VPN holds two independent kinds of tunnels: the device tunnel and the user tunnel. The device tunnel is established automatically using a machine certificate (computer certificate), even at the stage before the user has logged on at all. This makes possible management work that doesn’t presuppose a user logon at all — communication with a domain controller, applying Group Policy, or remote operations from the help desk — even at a stage before any user has logged on. The user tunnel, meanwhile, is established using a user certificate, after the user has actually logged on, and provides that specific user with access to the resources they use for their own work.

Why Does the Device Tunnel Require the Windows Enterprise or Education Edition?

The device tunnel overlaps significantly, in functionality, with the now-deprecated legacy DirectAccess that Microsoft retired, and it requires both domain membership and a machine certificate issued by a PKI, carrying the Client Authentication EKU (Extended Key Usage). This requirement carries over to the device tunnel for the same reason DirectAccess itself was originally limited to the Enterprise/Education editions. The user tunnel, by contrast, is also available on the Pro edition, and doesn’t carry constraints as strict as the device tunnel’s.

Distribution via ProfileXML Is Fundamentally Different From RRAS’s “Connection Icon”

With a traditional VPN, users either created the VPN connection themselves through Control Panel or Windows Settings, or clicked a connection icon an administrator had distributed. With Always On VPN, the connection’s own configuration information is bundled into a single XML document called ProfileXML, and distributed to devices from MDM software like Intune, through a Windows configuration-management mechanism called the VPNv2 CSP (Configuration Service Provider). In other words, rather than a user manually entering each setting one by one, the entire profile an administrator defined gets applied to the device as-is — an entirely different distribution model.

What a Pro Sees Here (Top 1% Understanding)

IKEv2’s MOBIKE Keeps the Connection Alive Across a Network Switch

One reason Always On VPN adopts IKEv2 is an extension called MOBIKE (IKE Mobility and Multihoming Protocol). A traditional VPN connection would often get disconnected, requiring reconnection, whenever a device’s network environment changed — switching from Wi-Fi to cellular data, for instance. IKEv2 with MOBIKE support can keep an existing IKE session alive even when the IP address changes, switching the tunnel’s endpoint over to the new IP address — so a user moving around never perceives the connection as having dropped at all. You need to understand that the “always connected” nature behind the name “Always On” doesn’t just mean connecting automatically — it also includes this resilience to network changes, via MOBIKE. It’s also worth not overlooking, in real-world practice, that RRAS’s default setup alone can’t achieve the device tunnel’s machine-certificate authentication — you need to additionally configure NPS (Network Policy Server) as a RADIUS server.

Common Misconceptions and Pitfalls

Troubleshooting Perspective

  1. The device tunnel never establishes: Check whether the device is domain-joined, whether it’s running the Windows Enterprise or Education edition, and whether the machine certificate carries the Client Authentication EKU.
  2. The user tunnel doesn’t establish even after the user logs on: Check whether the user certificate was issued and deployed correctly, and whether the ProfileXML distribution completed successfully on the MDM side.
  3. The connection frequently drops in mobile environments: Check whether IKEv2 and MOBIKE are correctly enabled, and whether the tunnel’s endpoint is switching over correctly when the network changes.

Summary

Takeaways to Apply Today

  1. Understand the name “Always On VPN” not as a single feature, but as a design pattern combining multiple elements.
  2. Before deploying the device tunnel, always confirm the target devices’ edition and domain membership status in advance.

References

Comments

Feel free to leave thoughts, questions, or corrections below (sign in with a GitHub account to comment or react).