Windows 11 L2TP连接尝试失败,因为安全层在初始化与远程计算机的协商时遇到了一个处理错误

错误描述:“ L2TP连接尝试失败,因为安全层在初始化与远程计算机的协商时遇到了一个处理错误”

事件查看器中没有错误代码显示。

Windows 10 L2TP/IPsec Manual Setup Instructions
Bold items are things you will click or type

To add a necessary registry setting:
Press the Windows Key and R at the same time to bring up the Run box.
Type in: regedit and click OK. Click Yes if asked if you’d like to allow the app to make changes to your PC.
In the left pane, locate and click the folder: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PolicyAgent
Click the Edit menu and hover your cursor over New. Click DWORD Value. A new registry will appear in the right pane, named New Value #1.
Rename that file: AssumeUDPEncapsulationContextOnSendRule (this is case-sensitive and contains no spaces) and press ENTER.
Right-click AssumeUDPEncapsulationContextOnSendRule, then click Modify.
In the Value data box, type 2 and click OK.
Reboot the computer.
只有这个没有错误码。

以下从网上参考 Bob Hou: http://blog.csdn.net/minxihou 博客

首先连接vpn

刚开始设置完成后基本上都没有问题,唯独今天这个电脑出现了错误

查看服务是否开启

windows+r 运行 输入 services.msc

查找ipsec policy agent

重启后还没有解决

然后在注册表添加两条信息

  1. 单击开始,单击运行,键入regedit,然后单击确定

  2. 在注册表编辑器中,找到并单击以下注册表子项︰
    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Rasman\Parameters

  3. 在编辑菜单上,指向新建,然后单击DWORD 值。
    4. 键入ProhibitIpSec,然后按 enter 键。
    5. 在编辑菜单上,单击修改。
    6. 在数值数据框中,键入1,然后单击确定。4.  
    点击allowL2TPweakcryphto  修改值为1点击文件 退出
    重启计算机就可以解决了

  • 4
    点赞
  • 18
    收藏
    觉得还不错? 一键收藏
  • 5
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值