1、打开注册表编辑器
2、在 计算机\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PolicyAgent 下,新建DWORD值
3、重命名为AssumeUDPEncapsulationContextOnSendRule
4、修改数值数据为2
5、重启电脑
来源:/en-us/help/926179/how-to-configure-an-l2tp-ipsec-server-behind-a-nat-t-device-in-windows