错误描述:“ 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
重启后还没有解决
然后在注册表添加两条信息
-
单击开始,单击运行,键入regedit,然后单击确定
-
在注册表编辑器中,找到并单击以下注册表子项︰
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Rasman\Parameters -
在编辑菜单上,指向新建,然后单击DWORD 值。
4. 键入ProhibitIpSec,然后按 enter 键。
5. 在编辑菜单上,单击修改。
6. 在数值数据框中,键入1,然后单击确定。4.
点击allowL2TPweakcryphto 修改值为1点击文件 退出
重启计算机就可以解决了