轉載自https://blog.csdn.net/Robotzzg/article/details/81176117
個人記錄用途
處理方法01 (可以跳過,直接看處理方法02)
- 單擊“開始”,單擊“運行”,鍵入“regedit”,然后單擊“確定”
- 找到注冊表的幾項
a) HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RasMan\Parameters中的
AllowL2TPWeakCrypto項、AllowPPTPWeakCrypto項;
以及HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PolicyAgent中的
AssumeUDPEncapsulationContextOnSendRule項,再將所有“數值數據”,改為“1”。
b) HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RasMan\Parameters中的 ProhibitIpSec項 改為“0”
(若沒有則按照下面步驟創建即可)
3. 沒有該項則“新建”->“DWORD值”
4. 在“名稱”框中,鍵入“項名字”
5. 在“數值數據”框中,鍵入“1”
7. 單擊“開始”,單擊“運行”,鍵入“services.msc”,然后單擊"確定"
- 開啟以R字母開頭的Routing and Remote Access服務,如果不行就將以R字母開始的全部開啟,然后建議重啟一次電腦
處理方法02 (這個比較好)
原因是L2TP連接需要IPSec加密,遠程服務器未響應說明IPSec加密被禁用了,需要在注冊表啟用它,具體步驟如下:
1、以管理員賬號身份打開CMD,win10 是 win+x鍵
2、找到:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RasMan\Parameters
3、找到:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PolicyAgent
4、重啟計算機。