OpenVPN还是相当方便的VPN工具,Win7下的使用与XP基本相同,但有两点是需要注意的。
1、安装
从http://openvpn.se下载安装包后,需要先选择为“Win XP SP3的兼容模式”。
即,右键点击安装文件,选择“属性”,从“兼容性”选择栏上,把“兼容模式”选上“Windows XP (Service Pack3)”的方式来运行:
“以管理员身份运行”。这样才能成功的安装的虚拟网卡。
2、修改连接配置文件
配置文件与XP基本相同,但还需要增加两个配置:
引用
route-method exe
route-delay 2
route-delay 2
否则,在连接时,用route add添加路由,会报错:
引用
Tue May 11 02:31:31 2010 route ADD 192.168.228.0 MASK 255.255.255.0 10.8.3.5
Tue May 11 02:31:31 2010 ROUTE: route addition failed using CreateIpForwardEntry: 至少有一个参数不正确。 [if_index=14]
Tue May 11 02:31:31 2010 Route addition via IPAPI failed
Tue May 11 02:31:31 2010 route ADD 10.8.3.0 MASK 255.255.255.0 10.8.3.5
Tue May 11 02:31:31 2010 ROUTE: route addition failed using CreateIpForwardEntry: 至少有一个参数不正确。 [if_index=14]
Tue May 11 02:31:31 2010 Route addition via IPAPI failed
Tue May 11 02:31:31 2010 Initialization Sequence Completed
Tue May 11 02:31:31 2010 ROUTE: route addition failed using CreateIpForwardEntry: 至少有一个参数不正确。 [if_index=14]
Tue May 11 02:31:31 2010 Route addition via IPAPI failed
Tue May 11 02:31:31 2010 route ADD 10.8.3.0 MASK 255.255.255.0 10.8.3.5
Tue May 11 02:31:31 2010 ROUTE: route addition failed using CreateIpForwardEntry: 至少有一个参数不正确。 [if_index=14]
Tue May 11 02:31:31 2010 Route addition via IPAPI failed
Tue May 11 02:31:31 2010 Initialization Sequence Completed
至此,安装配置完毕,可成功连接:
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/104529.html