先安装openVPN之后,然后在目录C:\Program Files\openVPN\bin下替换自己编译出来的openvpn.exe、openssl.exe、libeay32.dll、ssleay32.dll。
安装之后连接测试,连接上了。替换后提示一下错误:null) Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
(null) [server] Peer Connection Initiated with 192.168.100.1:1194
(null) SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
(null) PUSH: Received control message: 'PUSH_REPLY,route 10.2.33.0 255.255.255.0,redirect-gateway def1 bypass-dhcp,route-gateway 172.16.13.1,ping 10,ping-restart 120,ifconfig 172.16.13.4 255.255.255.0'
(null) Options error: unknown --redirect-gateway flag: bypass-dhcp
(null) OPTIONS IMPORT: timers and/or timeouts modified
(null) OPTIONS IMPORT: --ifconfig/up options modified

解决方案 »

  1.   

    (null) OpenVPN 2.0.9 Win32-MSVC++ [SSL] [LZO] built on Oct 31 2014
    (null) IMPORTANT: OpenVPN's default port number is now 1194, based on an official port number assignment by IANA.  OpenVPN 2.0-beta16 and earlier used 5000 as the default port.
    (null) Control Channel MTU parms [ L:1575 D:140 EF:40 EB:0 ET:0 EL:0 ]
    (null) Data Channel MTU parms [ L:1575 D:1450 EF:43 EB:4 ET:32 EL:0 ]
    (null) Local Options hash (VER=V4): '10f35004'
    (null) Expected Remote Options hash (VER=V4): 'a917298a'
    (null) Attempting to establish TCP connection with 192.168.100.1:1194
    (null) TCP connection established with 192.168.100.1:1194
    (null) TCPv4_CLIENT link local: [undef]
    (null) TCPv4_CLIENT link remote: 192.168.100.1:1194
    (null) TLS: Initial packet from 192.168.100.1:1194, sid=c6a5f9d4 9e66452c
    (null) VERIFY OK: depth=1, /C=CN/ST=GD/L=SHENZHEN/O=YULONG/OU=changeme/CN=changeme/name=changeme/[email protected]
    (null) VERIFY OK: nsCertType=SERVER
    (null) VERIFY OK: depth=0, /C=CN/ST=GD/L=SHENZHEN/O=YULONG/OU=changeme/CN=server/name=changeme/[email protected]
    (null) Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
    (null) Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
    (null) Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
    (null) Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
    (null) Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
    (null) [server] Peer Connection Initiated with 192.168.100.1:1194
    (null) SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
    (null) PUSH: Received control message: 'PUSH_REPLY,route 10.2.33.0 255.255.255.0,redirect-gateway def1 bypass-dhcp,route-gateway 172.16.13.1,ping 10,ping-restart 120,ifconfig 172.16.13.4 255.255.255.0'
    (null) Options error: unknown --redirect-gateway flag: bypass-dhcp
    (null) OPTIONS IMPORT: timers and/or timeouts modified
    (null) OPTIONS IMPORT: --ifconfig/up options modified
    (null) OPTIONS IMPORT: route options modified
    (null) Error opening registry key: SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}
    (null) Exiting
    这个是openvpn连接的时候的全部提示