1月 172013
 

在Windows 7 x64系统安装OpenVPN 2.0.9 GUI 1.0.3后查看设备管理器状态

tap-win32-02

连接VPN后出现错误提示,查看OpenVPN GUI的日志输出

tap-win32-03

Thu Jan 17 12:56:23 2013 CreateFile failed on TAP device: 
\\.\Global\{97C6C2D4-0D71-4FFC-BF9A-B13FF8BA0164}.tap
Thu Jan 17 12:56:23 2013 All TAP-Win32 adapters on this system are currently in use.
Thu Jan 17 12:56:23 2013 Exiting

安装OpenVPN 2.2.0后再次查看设备管理器显示TAP-Win32适配器驱动版本为V9

tap-win32-01

查看成功连接后的 OpenVPN GUI日志输出

Thu Jan 17 13:15:57 2013 TAP-WIN32 device [本地连接 4] opened:
 \\.\Global\{993F596C-8A2B-4871-B6F4-7FABE678738A}.tap
Thu Jan 17 13:15:57 2013 TAP-Win32 Driver Version 9.8 
Thu Jan 17 13:15:57 2013 TAP-Win32 MTU=1500
Thu Jan 17 13:15:57 2013 Notified TAP-Win32 driver to set a DHCP IP/netmask
 of 10.8.0.26/255.255.255.252 on interface {993F596C-8A2B-4871-B6F4-7FABE678738A}
 [DHCP-serv: 10.8.0.25, lease-time: 31536000]
Thu Jan 17 13:15:57 2013 Successful ARP Flush on interface [17]
 {993F596C-8A2B-4871-B6F4-7FABE678738A}
Thu Jan 17 13:16:02 2013 TEST ROUTES: 2/2 succeeded len=2 ret=1 a=0 u/d=up
Thu Jan 17 13:16:02 2013
 C:\WINDOWS\system32\route.exe ADD 192.168.11.0 MASK 255.255.255.0 10.8.0.25
 操作完成!
Thu Jan 17 13:16:03 2013
 C:\WINDOWS\system32\route.exe ADD 10.8.0.1 MASK 255.255.255.255 10.8.0.25
 操作完成!
Thu Jan 17 13:16:03 2013 Initialization Sequence Completed

相关下载:
(1) OpenVPN 2.2.0(TAP-Win32 V9)

12月 042012
 

#./vars

#./revoke-full client-name(common name)

#ls crl.pem

#cp crl.pem /usr/local/openvpn/etc/

#vi
crl-verify crl.pem

#service restart openvpn

Static IP
#vi server.conf
client-config-dir /etc/openvpn/ccd

#mkdir /etc/openvpn/ccd

#vi client-name
ifconfig-push 192.168.0.5 192.168.0.6
第一个IP结尾必须是4的倍数+1