Conditional access and device compliance can require that managed devices meet standards before they can connect to the VPN. VPN conditional access allows you to restrict the VPN connections to devices whose client authentication certificate contains the Microsoft Entra Conditional Access OID of 1.3.6.1.4.1.311.87. VPN clients that try to connect by using a certificate other than the short-lived 1.3.6.1.4.1.311.87 cloud certificate will fail to connect.
This article shows you how to configure VPN conditional access directly on the NPS server. To learn how to restrict the VPN connections with Microsoft Entra Conditional Access, see Conditional access for VPN connectivity using Microsoft Entra ID.
Restrict the VPN connections
To restrict VPN connections:
-
On the NPS server, open the Network Policy Server snap-in.
-
Expand Policies > Network Policies. Right-click the Virtual Private Network (VPN) Connections Network Policy and then select Properties
-
Select the Settings tab.
-
Select Vendor Specific, and then select Add.
-
Select the Allowed-Certificate-OID option, and then select Add.
-
Paste the Microsoft Entra Conditional Access OID of 1.3.6.1.4.1.311.87 as the attribute value, and then select OK.
-
Select OK again.
-
Select Close, and then select Apply.
VPN clients that try to connect by using certificate other than the short-lived 1.3.6.1.4.1.311.87 cloud certificate will now fail to connect.
Related topics
Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
