win7下open***不能自動加路由轉載

 

    在win7下用open***一直報這個錯誤,配置文件裏的路由一直加不上,可是能夠拔得上服務器,只好手工加路由。html


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 Completedshell


    後來在網絡上找了不少資料,本身試了一下能夠用,在這裏本身作下小結:api


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設置成兼容模式運行
 網絡


這樣就能夠了。ide

 

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 envui


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

 

轉載自:http://blog.sina.com.cn/s/blog_57c70e190100qbjb.htmlblog

相關文章
相關標籤/搜索