当前位置:网站首页 > 更多 > 玩电脑 > 正文

[玩转系统] 修复:无法在 Windows 10 中连接到 L2TP VPN(已解决)

作者:精品下载站 日期:2024-12-14 09:26:40 浏览:14 分类:玩电脑

修复:无法在 Windows 10 中连接到 L2TP VPN(已解决)


如果您无法从 Windows 10 连接到 L2TP/IPsec VPN 服务器,请继续阅读以下内容来解决问题。

VPN 连接错误可能由多种原因引起,但通常是由于 VPN 连接设置不正确(例如不正确的服务器名称/地址、身份验证方法、用户名或密码)。因此,解决 VPN 连接问题的第一步是验证所有 VPN 设置是否正确。

本教程包含在尝试连接到 Windows 10 或 Windows Server 2012/2016 中的 L2TP/IPsec VPN 服务器时解决以下错误的说明:

The network connection between your computer and the VPN server could not be established because the remote server is not responding. This could be because one of the network devices (e.g. firewalls, NAT, routers, etc) between your computer and the remote server is not configured to allow VPN connections. Please contact your Administrator or your service provider to determine which device may be causing the problem. 

[玩转系统] 修复:无法在 Windows 10 中连接到 L2TP VPN(已解决)

The L2TP connection attempt failed because the security layer encountered a processing error during the initial negotiations with the remote computer.

[玩转系统] 修复:无法在 Windows 10 中连接到 L2TP VPN(已解决)

如何修复:无法连接到 VPN。在 Windows 10 上无法在您的计算机和 VPN 服务器之间建立 L2TP 连接。

在继续执行以下说明之前,请执行以下操作:*

* 重要提示: 如果问题于 2022 年 1 月开始,先看下面的文章:

Related Article: FIX: The L2TP connection attempt failed because the security layer encountered a processing error during initial negotiations with the remote computer.

1. 确保在 VPN 服务器端启用所需的 L2TP/IPsec 端口。

登录 VPN Server 端的路由器,并将以下 UDP 端口转发到 VPN Server 的 IP 地址:1701、50、500 和 4500

2.通过其他设备或网络连接到 VPN。

尝试从其他设备(例如您的手机)或网络(例如您的手机的电话网络)连接到 L2TP VPN。

3.删除并重新创建 VPN 连接。

有时,VPN 连接问题可以在删除并重新添加 VPN 连接后得到解决。

如果执行上述步骤后,您仍然无法从 Windows 10 计算机连接到 l2tp/IPsec VPN 服务器,请对注册表和 VPN 连接应用以下修改。

步骤 1. 允许 NAT 后面的 L2TP 连接。

默认情况下,如果计算机或 VPN 服务器位于 NAT 之后,Windows 不支持 L2TP/IPsec 连接。要绕过此问题,请修改注册表,如下所示:

1.打开注册表编辑器。要做到这一点:

1. 同时按下Win + R 键打开运行命令框。

2. 输入regedit,然后按Enter 打开注册表编辑器。

[玩转系统] 修复:无法在 Windows 10 中连接到 L2TP VPN(已解决)

2. 在左侧窗格中,导航到此键:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Sevices\PolicyAgent

3.右键单击右侧窗格的空白处,然后选择新建 -> DWORD(32 位)值

[玩转系统] 修复:无法在 Windows 10 中连接到 L2TP VPN(已解决)

4. 对于新密钥名称,输入:AssumeUDPEncapsulationContextOnSendRule 并按Enter

* 注意: 该值必须如上所示输入,并且末尾不能有空格。

5. 双击 AssumeUDPEncapsulationContextOnSendRule 值,在值数据处键入 2,然后单击确定

[玩转系统] 修复:无法在 Windows 10 中连接到 L2TP VPN(已解决)

6. 关闭注册表编辑器并重新启动计算机。

步骤 2. 修改 VPN 连接的安全设置。

1.右键单击任务栏上的网络图标,然后选择打开网络和 Internet 设置

* 注意: 或者,转到开始 > 设置点击网络和互联网

[玩转系统] 修复:无法在 Windows 10 中连接到 L2TP VPN(已解决)

2. 选择左侧的以太网,然后单击右侧的更改适配器选项

[玩转系统] 修复:无法在 Windows 10 中连接到 L2TP VPN(已解决)

3.右键单击 VPN 连接并选择属性

[玩转系统] 修复:无法在 Windows 10 中连接到 L2TP VPN(已解决)

4a.选项选项卡中,单击PPP 设置

[玩转系统] 修复:无法在 Windows 10 中连接到 L2TP VPN(已解决)

4b. 选中启用 LCP 扩展,然后单击确定

[玩转系统] 修复:无法在 Windows 10 中连接到 L2TP VPN(已解决)

4c.安全选项卡中,选中以下内容并单击确定

Allow these protocols
Challenge Handshake Authentication Protocol (CHAP)
Microsoft CHAP Version 2 (MS-SHAP v2)

[玩转系统] 修复:无法在 Windows 10 中连接到 L2TP VPN(已解决)

5.尝试连接VPN。现在应该可以毫无问题地建立连接。 *

其他帮助:如果应用上述步骤后仍然遇到问题,请尝试以下操作:

1. 检查以下服务是否已启用(启动类型:自动

    1. IKE 和 AuthIP IPsec 密钥模块
  1. IPsec 策略代理

2. 如果您使用第三方防火墙程序,请在连接 VPN 之前尝试将其禁用或完全卸载。

3.尝试将重置Windows防火墙设置为其默认值。为此,请转至控制面板 > Windows Defender 防火墙,然后单击恢复默认值

[玩转系统] 修复:无法在 Windows 10 中连接到 L2TP VPN(已解决)

4. 删除重新创建 VPN 连接。

5. 重启VPN服务器端的路由器。

就是这样!请留下您对您的经历的评论,让我知道本指南是否对您有帮助。请喜欢并分享本指南以帮助他人。

您需要 登录账户 后才能发表评论

取消回复欢迎 发表评论:

关灯