我们找了一台 Windows 11 企业版的电脑连接L2TP VPN
出现了如下错误
无法建立计算机与L2TP服务器之间的网络连接,因为远程服务器未响应。这可能是因为未将计算机与远程服务器之间的某种网络设备(如防火墙、NAT、路由器等)配置为允许L2TP连接。请与管理员或服务提供商联系以确定哪种设备可能 产生此问题。
在我们保证输入密钥、账号、密码没问题的情况下
解决方法如下
WIN+R 打开运行框,输入 regedit 打开注册表
![](https://notepad.com.cn/wp-content/uploads/2022/12/2022-12-18_205208.png)
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RasMan\Parameters
![](https://notepad.com.cn/wp-content/uploads/2022/12/2022-12-18_205312-1024x536.png)
AllowL2TPWeakCrypto 数值修改成1
![](https://notepad.com.cn/wp-content/uploads/2022/12/2022-12-18_205503.png)
AllowPPTPWeakCrypto 数值也修改成1
![](https://notepad.com.cn/wp-content/uploads/2022/12/2022-12-18_205611.png)
新建 DWORD (32 位) 值 ProhibitIpSec 修改数值0
![](https://notepad.com.cn/wp-content/uploads/2022/12/2022-12-18_205729.png)
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PolicyAgent
![](https://notepad.com.cn/wp-content/uploads/2022/12/2022-12-18_210413-1024x544.png)
AssumeUDPEncapsulationContextOnSendRule 修改数值 2
![](https://notepad.com.cn/wp-content/uploads/2022/12/2022-12-18_210500.png)
在电脑 WIN+R 打开运行框,输入 services.msc
![](https://notepad.com.cn/wp-content/uploads/2022/12/2022-12-18_210544.png)
找到Routing and Remote Access服务 双击 启动类型选择为自动
![](https://notepad.com.cn/wp-content/uploads/2022/12/2022-12-18_210727.png)
![](https://notepad.com.cn/wp-content/uploads/2022/12/2022-12-18_210836.png)
最后重启我们的电脑