ckaige / chnroutes

Automatically exported from code.google.com/p/chnroutes
0 stars 0 forks source link

当连接成功后无任何路由表加入route list 系统windows 2003 #12

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. put below files in D:\usr\local\programs\openvpn\
vpndown.bat
vpndown.vbs
vpnup.bat
vpnup.vbs

2. change config file add below lines:

route-delay 2
script-security 2
up '"C:/WINDOWS/system32/wscript.exe" 
D:/usr/local/programs/openvpn/config/vpnup.vbs'
down '"C:/WINDOWS/system32/wscript.exe" 
D:/usr/local/programs/openvpn/config/vpndown.vbs'

3. change vpnup.vbs and vpndown.vbs as:

Set objShell = CreateObject("Wscript.shell")
call objShell.Run("D:\usr\local\programs\openvpn\config\vpnup.bat",0,FALSE)

Set objShell = CreateObject("Wscript.shell")
call objShell.Run("D:\usr\local\programs\openvpn\config\vpndown.bat",0,FALSE)

What is the expected output? What do you see instead?
all of the route lines added to local route list.

but there's nothing added and output below:

Sun Jun 20 12:33:26 2010 TAP-WIN32 device [Local Area Connection 3] opened: 
\\.\Global\{56CB6665-E87B-445F-A2F3-F8BE6AF4248B}.tap
Sun Jun 20 12:33:26 2010 TAP-Win32 Driver Version 9.6 
Sun Jun 20 12:33:26 2010 TAP-Win32 MTU=1500
Sun Jun 20 12:33:26 2010 Notified TAP-Win32 driver to set a DHCP IP/netmask of 
10.8.0.22/255.255.255.252 on interface {56CB6665-E87B-445F-A2F3-F8BE6AF4248B} 
[DHCP-serv: 10.8.0.21, lease-time: 31536000]
Sun Jun 20 12:33:26 2010 Successful ARP Flush on interface [6] 
{56CB6665-E87B-445F-A2F3-F8BE6AF4248B}
Sun Jun 20 12:33:26 2010 C:/WINDOWS/system32/wscript.exe 
D:/usr/local/programs/openvpn/config/vpnup.vbs Local Area Connection 3 1500 
1546 10.8.0.22 10.8.0.21 init
Sun Jun 20 12:33:29 2010 TEST ROUTES: 2/2 succeeded len=1 ret=1 a=0 u/d=up
Sun Jun 20 12:33:29 2010 C:\WINDOWS\system32\route.exe ADD 74.82.169.247 MASK 
255.255.255.255 192.168.1.1
Sun Jun 20 12:33:29 2010 C:\WINDOWS\system32\route.exe ADD 0.0.0.0 MASK 
128.0.0.0 10.8.0.21
Sun Jun 20 12:33:29 2010 C:\WINDOWS\system32\route.exe ADD 128.0.0.0 MASK 
128.0.0.0 10.8.0.21
Sun Jun 20 12:33:29 2010 C:\WINDOWS\system32\route.exe ADD 10.8.0.1 MASK 
255.255.255.255 10.8.0.21
Sun Jun 20 12:33:29 2010 Initialization Sequence Completed

What version of the product are you using? On what operating system?
VPN client: OpenVPN 2.1_rc15 i686-pc-mingw32 [SSL] [LZO2] [PKCS11] built on May 
 5 2009
OS: Microsoft Windows [Version 5.2.3790]

Please provide any additional information below.
请开发人员帮忙确认一下,是否在WINDOWS 
2003下成功执行添加路由呢?

谢谢你们为大家提供这么好的解决方案!

Original issue reported on code.google.com by williamr...@gmail.com on 20 Jun 2010 at 4:46

GoogleCodeExporter commented 8 years ago
怎么都不看wiki的. 2.1 就不要再用 script了. 

Original comment by youn...@gmail.com on 20 Jun 2010 at 1:39