Files
windows-itpro-docs/windows/security/identity-protection/vpn/how-to-configure-diffie-hellman-protocol-over-ikev2-vpn-connections.md
Jitin Mathew 23cd1973a3 Updated-6020449-B3
Bulk metadata update.
2022-06-25 01:19:29 +05:30

1.9 KiB
Raw Blame History

title, description, ms.prod, author, ms.author, ms.localizationpriority, ms.date, ms.reviewer, manager
title description ms.prod author ms.author ms.localizationpriority ms.date ms.reviewer manager
How to configure Diffie Hellman protocol over IKEv2 VPN connections (Windows 10 and Windows 11) Learn how to update the Diffie Hellman configuration of VPN servers and clients by running VPN cmdlets to secure connections. m365-security dansimp dansimp medium 09/23/2021 dansimp

How to configure Diffie Hellman protocol over IKEv2 VPN connections

Applies To: Windows Server (General Availability Channel), Windows Server 2016, Windows 10, Windows 11

In IKEv2 VPN connections, the default configuration for Diffie Hellman group is Group 2, which is not secure for IKE exchanges.

To secure the connections, update the configuration of VPN servers and clients by running VPN cmdlets.

VPN server

For VPN servers that run Windows Server 2012 R2 or later, you need to run Set-VpnServerConfiguration to configure the tunnel type. This makes all IKE exchanges on IKEv2 tunnel use the secure configuration.

Set-VpnServerConfiguration -TunnelType IKEv2 -CustomPolicy

On an earlier version of Windows Server, run Set-VpnServerIPsecConfiguration. Since Set-VpnServerIPsecConfiguration doesnt have -TunnelType, the configuration applies to all tunnel types on the server.

Set-VpnServerIPsecConfiguration -CustomPolicy

VPN client

For VPN client, you need to configure each VPN connection. For example, run Set-VpnConnectionIPsecConfiguration (version 4.0) and specify the name of the connection:

Set-VpnConnectionIPsecConfiguration -ConnectionName <String>