Though seem it successful connectting to the openvpn server.
But 1: the IP seem is still same to noting using vpn
2: the client info alert some error i do not know why.
Below is the server config and client config.
----------- Server config:
port 1194
proto udp
dev tap
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 202.106.195.68"
client-to-client
duplicate-cn
keepalive 10 120
comp-lzo
persist-key
persist-tun
log openvpn.log
verb 6
---------------
some hint: my openvpn server is in my home, where is connect to ISP by my wireless route, the ISP assigned IP to me is 222.129.49.246, so i in my wireless route setting , mapping all 1194 prot request to a local IP 192.168.1.104( the openvpn server is under this machine)
another strange thing is that , though i set the "log openvpn.log", there still no openvpn.log file, so i can just copy the terminal content here for analysing(I run the openvpn server by right click the server.ovpn "start openvpn server using this config file")
aslo because under windows, i also can not copy the content from the terminal this time(just when i copy it the terminla will end),so i attched the screenspot of the server terminal
----------------------
client config file is like this: client.ovpn
------
client
dev tap
proto udp
remote 222.129.49.246 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client1.crt
key client1.key
comp-lzo
verb 1
--------------
client log is like this:
------------
Tue Nov 26 11:56:19 2013 OpenVPN 2.1.3 i686-pc-mingw32 [SSL] [LZO2] [PKCS11] built on Aug 20 2010
Tue Nov 26 11:56:19 2013 WARNING: No server certificate verification method has been enabled. See
http://openvpn.net/howto.html#mitm for more info.
Tue Nov 26 11:56:19 2013 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Tue Nov 26 11:56:20 2013 LZO compression initialized
Tue Nov 26 11:56:20 2013 UDPv4 link local: [undef]
Tue Nov 26 11:56:20 2013 UDPv4 link remote: 222.129.49.246:1194
Tue Nov 26 11:56:21 2013 WARNING: 'dev-type' is used inconsistently, local='dev-type tap', remote='dev-type tun'
Tue Nov 26 11:56:21 2013 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1574', remote='link-mtu 1542'
Tue Nov 26 11:56:21 2013 WARNING: 'tun-mtu' is used inconsistently, local='tun-mtu 1532', remote='tun-mtu 1500'
Tue Nov 26 11:56:21 2013 [SW] Peer Connection Initiated with 222.129.49.246:1194
Tue Nov 26 11:56:23 2013 WARNING: Since you are using --dev tap, the second argument to --ifconfig must be a netmask, for example something like 255.255.255.0. (silence this warning with --ifconfig-nowarn)
Tue Nov 26 11:56:23 2013 OpenVPN ROUTE: OpenVPN needs a gateway parameter for a --route option and no default was specified by either --route-gateway or --ifconfig options
Tue Nov 26 11:56:23 2013 OpenVPN ROUTE: failed to parse/resolve route for host/network: 10.8.0.1
Tue Nov 26 11:56:23 2013 TAP-WIN32 device [本地连接 3] opened: \\.\Global\{28CCFEDC-C6BA-4542-991A-F61A0E57AE17}.tap
Tue Nov 26 11:56:23 2013 Notified TAP-Win32 driver to set a DHCP IP/netmask of 10.8.0.6/10.8.0.5 on interface {28CCFEDC-C6BA-4542-991A-F61A0E57AE17} [DHCP-serv: 10.8.0.4, lease-time: 31536000]
Tue Nov 26 11:56:23 2013 Successful ARP Flush on interface [32] {28CCFEDC-C6BA-4542-991A-F61A0E57AE17}
SYSTEM ROUTING TABLE
0.0.0.0 0.0.0.0 192.168.0.1 p=0 i=11 t=4 pr=3 a=8563 h=0 m=20/0/0/0/0
127.0.0.0 255.0.0.0 127.0.0.1 p=0 i=1 t=3 pr=3 a=8717 h=0 m=306/0/0/0/0
127.0.0.1 255.255.255.255 127.0.0.1 p=0 i=1 t=3 pr=3 a=8717 h=0 m=306/0/0/0/0
127.255.255.255 255.255.255.255 127.0.0.1 p=0 i=1 t=3 pr=3 a=8717 h=0 m=306/0/0/0/0
169.254.0.0 255.255.0.0 169.254.30.25 p=0 i=32 t=3 pr=3 a=24 h=0 m=286/0/0/0/0
169.254.30.25 255.255.255.255 169.254.30.25 p=0 i=32 t=3 pr=3 a=24 h=0 m=286/0/0/0/0
169.254.255.255 255.255.255.255 169.254.30.25 p=0 i=32 t=3 pr=3 a=24 h=0 m=286/0/0/0/0
192.168.0.0 255.255.255.0 192.168.0.104 p=0 i=11 t=3 pr=3 a=8563 h=0 m=276/0/0/0/0
192.168.0.104 255.255.255.255 192.168.0.104 p=0 i=11 t=3 pr=3 a=8563 h=0 m=276/0/0/0/0
192.168.0.255 255.255.255.255 192.168.0.104 p=0 i=11 t=3 pr=3 a=8563 h=0 m=276/0/0/0/0
192.168.36.0 255.255.255.0 192.168.36.1 p=0 i=20 t=3 pr=3 a=8620 h=0 m=276/0/0/0/0
192.168.36.1 255.255.255.255 192.168.36.1 p=0 i=20 t=3 pr=3 a=8620 h=0 m=276/0/0/0/0
192.168.36.255 255.255.255.255 192.168.36.1 p=0 i=20 t=3 pr=3 a=8620 h=0 m=276/0/0/0/0
224.0.0.0 240.0.0.0 127.0.0.1 p=0 i=1 t=3 pr=3 a=8717 h=0 m=306/0/0/0/0
224.0.0.0 240.0.0.0 192.168.36.1 p=0 i=20 t=3 pr=3 a=8624 h=0 m=276/0/0/0/0
224.0.0.0 240.0.0.0 169.254.30.25 p=0 i=32 t=3 pr=3 a=8584 h=0 m=286/0/0/0/0
224.0.0.0 240.0.0.0 192.168.0.104 p=0 i=11 t=3 pr=3 a=8583 h=0 m=276/0/0/0/0
255.255.255.255 255.255.255.255 127.0.0.1 p=0 i=1 t=3 pr=3 a=8717 h=0 m=306/0/0/0/0
255.255.255.255 255.255.255.255 192.168.36.1 p=0 i=20 t=3 pr=3 a=8624 h=0 m=276/0/0/0/0
255.255.255.255 255.255.255.255 169.254.30.25 p=0 i=32 t=3 pr=3 a=8584 h=0 m=286/0/0/0/0
255.255.255.255 255.255.255.255 192.168.0.104 p=0 i=11 t=3 pr=3 a=8583 h=0 m=276/0/0/0/0
SYSTEM ADAPTER LIST
TAP-Win32 Adapter V9
Index = 32
GUID = {28CCFEDC-C6BA-4542-991A-F61A0E57AE17}
IP = 169.254.30.25/255.255.0.0
MAC = 00:ff:28:cc:fe:dc
GATEWAY = 0.0.0.0/255.255.255.255
DHCP SERV = 0.0.0.0/255.255.255.255
DHCP LEASE OBTAINED = Tue Nov 26 11:56:58 2013
DHCP LEASE EXPIRES = Tue Nov 26 11:56:58 2013
DNS SERV =
O2Micro Succendo NC Adapter
Index = 22
GUID = {9F64B483-185F-46E9-86D6-7A24C68AA1C9}
IP = 0.0.0.0/0.0.0.0
MAC = 00:ff:2a:3a:4b:5b
GATEWAY = 0.0.0.0/255.255.255.255
DHCP SERV =
DHCP LEASE OBTAINED = Tue Nov 26 11:56:58 2013
DHCP LEASE EXPIRES = Tue Nov 26 11:56:58 2013
DNS SERV =
Atheros AR5B97 Wireless Network Adapter
Index = 11
GUID = {57F5CA3F-3855-457E-8FE6-2A182DD88170}
IP = 192.168.0.104/255.255.255.0
MAC = ec:55:f9:a8:d8:1f
GATEWAY = 192.168.0.1/255.255.255.255
DHCP SERV = 192.168.0.1/255.255.255.255
DHCP LEASE OBTAINED = Tue Nov 26 11:34:18 2013
DHCP LEASE EXPIRES = Tue Nov 26 13:34:18 2013
DNS SERV = 202.106.46.151/255.255.255.255 202.106.195.68/255.255.255.255
Atheros AR8151 PCI-E Gigabit Ethernet Controller (NDIS 6.20)
Index = 10
GUID = {6101ED17-76FE-49B7-824B-C9C19F113188}
IP = 0.0.0.0/0.0.0.0
MAC = b8:70:f4:6f:71:49
GATEWAY = 0.0.0.0/255.255.255.255
DHCP SERV =
DHCP LEASE OBTAINED = Tue Nov 26 11:56:58 2013
DHCP LEASE EXPIRES = Tue Nov 26 11:56:58 2013
DNS SERV =
VMware Virtual Ethernet Adapter for VMnet1
Index = 20
GUID = {09FB8886-A602-4B50-B701-C26C46158C3C}
IP = 192.168.36.1/255.255.255.0
MAC = 00:50:56:c0:00:01
GATEWAY = 0.0.0.0/255.255.255.255
DNS SERV =
Tue Nov 26 11:56:58 2013 Initialization Sequence Completed With Errors ( see
http://openvpn.net/faq.html#dhcpclientserv )
--------------------------------
why it say "Initialization Sequence Completed With Errors "
-------
i do not konw how to insert a picture.
this is the server terminal content:
http://v1.freep.cn/3tb_131126120620s6q3512293.png