Think before you speak, read before you think.

Tag: l2tp

  • windows7下用l2tp vpn,连接错误789

    by

    in

    在windows7下用l2tp连接时,在选好配置 连接错误789,如图: 按下面的方法保存.reg文件,双击导入,重启电脑后可以连接 Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RasMan\Parameters] “Medias”=hex(7):72,00,61,00,73,00,74,00,61,00,70,00,69,00,00,00,00,00 “ServiceDll”=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,\ 00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,\ 72,00,61,00,73,00,6d,00,61,00,6e,00,73,00,2e,00,64,00,6c,00,6c,00,00,00 “IpOutLowWatermark”=dword:00000001 “IpOutHighWatermark”=dword:00000005 “ProhibitIpSec”=dword:00000001 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RasMan\Parameters\Quarantine] “Enabled”=dword:00000001 “AutoRefreshEnabled”=dword:00000000 “AutoRefreshTimeout”=dword:01808580 “WorkItemTimeout”=dword:00000bb8 上面的东西如ihipop所说,windows中l2tp与ipsec是一起的,上面的注册表将ipsec的保护给去掉了,显然不能满足要求。 仔细检查,是/etc/ipsec.conf中left=127.0.0.1,这是不行的,需要换成公网ip。 对应的,在/etc/ipsec.secrets中也将对应的127.0.0.1换成公网ip。 配置方法参考:http://www.cnblogs.com/klobohyz/archive/2012/02/04/2338057.html