1.環境:win7/10
2.解決:
a.修改注冊表(新建一個文本文件,復制以下內容,保存后文件擴展名改為.reg,雙擊運行文件。)
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\RasMan\Parameters] "ProhibitIpSec"=dword:00000001 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PolicyAgent] "AssumeUDPEncapsulationContextOnSendRule"=dword:00000002
b.啟動相關服務(Win+R打開“運行”對話框,輸入services.msc,打開“服務"(或者在控制面板里搜索“服務”,查看本地服務))
將一下幾個服務設為自動:
IPsec Policy Agent
Routing and Remote Access
Remote Access Auto Connection Manager
Remote Access Connection Manager
Secure Socket Tunneling Protocol Service
參考(轉自)有改動:http://blog.csdn.net/joanna_yan/article/details/50084945