大网数据广告活动
远程桌面与会话

Configure VPN protocols in Routing and Remote Access on Windows Server

· 52CE 我爱测

Learn how to configure VPN protocols in Routing and Remote Access on Windows Server using

In this guide, learn how to enable and disable specific VPN protocols in Routing and Remote Access on Windows Server. You can use Routing and Remote Access to accept VPN connections based on protocols such as PPTP, L2TP, SSTP, and IKEv2. This article shows you how to configure Routing and Remote Access to enable L2TP and PPTP based VPN connections using the Routing and Remote Access Microsoft Management Console (MMC) and using the netsh command in Windows.

Prerequisites

Before you can configure the Routing and Remote Access protocols, you need the following prerequisites.

  • Windows Server with the DirectAccess and VPN (RAS) role service installed and configured. To learn how to configure the Routing and Remote Access Service, see Install Remote Access as a VPN server.

  • Membership to the Administrators group, or equivalent. If the RAS server is domain joined, an account with administrative privileged to the server is required.

Enable VPN protocols

Routing and Remote Access Services (RRAS) supports remote user or site-to-site connectivity by using virtual private network (VPN) or dial-up connections. It accepts VPN connections based on protocols such as PPTP, L2TP, SSTP, and IKEv2. These protocols are all enabled by default when the RRAS role is installed and setup with default configuration. By default an authorized client can establish a VPN connection based using any of the enabled protocols. Beginning with Windows Server 2025, new RRAS setups don't accept VPN connections based on PPTP and L2TP protocols. You can still enable these protocols if necessary. SSTP and IKEv2 based VPN connections are still accepted without any change.

Existing configurations and Windows Server releases retain their behavior. For example, if you're running Windows Server 2019 and accept PPTP and L2TP connections, when you update to Windows Server 2025 using an in-place update, L2TP and PPTP based connections are still accepted. This change doesn't affect Windows clients operating systems.

Note: Instead of IKEv2, you can also choose to use SSTP. We don't recommend that you use L2TP or PPTP, due to their lack of security features.

In this section, configure Remote Access to allow L2TP VPN connections. Select the tab that corresponds to the method you want to use to configure VPN protocols.

To enable L2TP VPN connections using the Routing and Remote Access MMC, follow these steps:

  1. On the VPN server, in Server Manager, select Tools and then select Routing and Remote Access to open the Routing and Remote Access Microsoft Management Console (MMC).

  2. In the Routing and Remote Access MMC, expand the VPN server node, right-click Ports, and then select Properties to open the Ports Properties dialog box.

  3. Select WAN Miniport (L2TP) and select Configure to open the Configure Device - WAN Miniport (L2TP) dialog box.

    1. Check both Remote access connections (inbound only).

    2. Enter the maximum number of ports you want to allow for L2TP connections in the Maximum ports field. By default, the maximum number of ports is set to 128.

    3. Select OK to close the Configure Device - WAN Miniport (L2TP) dialog.

    4. Select No to restart the Routing and Remote Access service later.

    5. Select OK again to close the Ports Properties dialog.

  4. Optional: Repeat the previous steps for WAN Miniport (PPTP) to enable PPTP VPN connections.

  5. To apply the changes, restart the Routing and Remote Access service. In the Routing and Remote Access MMC, right-click the VPN server and select All Tasks > Restart to restart the service.

Your VPN server is now configured to accept L2TP and if selected PPTP VPN connections.

Related content

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.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Server documentation
适用范围
Windows Server · Source date 06/07/2024
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。