在win7下用open***一直报这个错误,配置文件里的路由一直加不上,但是可以拔得上服务器,只好手工加路由。


Thu Apr 07 23:13:51 2011 Notified TAP-Win32 driver to set a DHCP IP/netmask of 192.168.0.4/255.255.255.0 on interface {8FE77B49-DAF1-492B-881F-B15C991EF754} [DHCP-serv: 192.168.0.0, lease-time: 31536000]
Thu Apr 07 23:13:51 2011 NOTE: FlushIpNetTable failed on interface [15] {8FE77B49-DAF1-492B-881F-B15C991EF754} (status=5) : 拒绝访问。 
Thu Apr 07 23:13:52 2011 TEST ROUTES: 1/1 succeeded len=1 ret=1 a=0 u/d=up
Thu Apr 07 23:13:52 2011 route ADD 192.168.1.0 MASK 255.255.255.0 192.168.0.1
Thu Apr 07 23:30:54 2011 ROUTE: route addition failed using CreateIpForwardEntry: 至少有一个参数不正确。   [if_index=15]
Thu Apr 07 23:30:54 2011 Route addition via IPAPI failed
Thu Apr 07 23:30:54 2011 Initialization Sequence Completed


    后来在网络上找了很多资料,自己试了一下可以用,在这里自己做下小结:


open***-2.0.9得:
 1.client.o***下加 route-method exe。
--route-method    : Which method to use for adding routes on Windows?
                    ipapi (default) -- Use IP helper API.
                    exe -- Call the route.exe shell command.


 2.将open***-gui设置成兼容模式运行
 


这样就可以了。

 

open*** 2.1 以后得,不知道是什么情况没有route-method这个指令了,我在help里找到了个script-security
--script-security level mode : mode='execve' (default) or 'system', level=
                  0 -- strictly no calling of external programs
                  1 -- (default) only call built-ins such as ifconfig
                  2 -- allow calling of built-ins and scripts
                  3 -- allow password to be passed to scripts via env


client.o***下加  script-security 2 system

 

转载自:http://blog.sina.com.cn/s/blog_57c70e190100qbjb.html