OpenVPN client settings method detailed

  
 

The previous article introduces the OpenVPN installation method, because the article is too long, the client settings are independent, easy to refer to. In this paper the test environment Windows
7.

1. OpenVPN client installation configuration

1. Download OpenVPN client

Windows: http://openvpn.se/download.html

The default installation path: C:/Program Files/OpenVPN/

2. Configure the key certificate

Copy all the files in the keys directory generated by the server in the previous article to C:/Program Files /OpenVPN/config.

3. Create client.ovpn

and put it in the C:/Program Files/OpenVPN/config directory.

The sample content is as follows: clientdev tun # should be consistent with the configuration in the previous server.conf. Proto udp # is the same as the configuration in the previous server.conf. Remote xxxx 1194 //Your server address, port must also be consistent with server.conf above, example: 12.34.56.78resolv-retry infinitenobindpersist-keypersist-tunca ca.crtcert client1.crtkey client1.keyns-cert-type servercomp-lzoverb 3

Second, OpenVPN several common mistakes

1, ADSL users of VPN connectivity issues

If the local experience and local connections using ADSL VPN problem, try the client. It is best to add a sentence to ovpn: route-method exe

Reference address:

http://blog.roachy.net/tag/error-windows-route-add-command-failed-adaptive -sys/

http://www.awolf.net/content/ros/ros-client-default-gateway.html

2, please run OpenVPN GUI with administrator privileges

Other errors similar to the following may occur:

Wed Nov 30 16:55:08 2011 C:\\WINDOWS\\system32\ oute.exe ADD 12.34.56.78 MASK 255.255.255.255 192.168.1.1Wed Nov 30 16:55:08 2011 ROUTE: route addition failed using CreateIpForwardEntry: Access is denied. [status=5 if_index=12]Wed Nov 30 16:55:08 2011 Route addition via IPAPI failed [adaptive]Wed Nov 30 16:55:08 2011 Route addition fallback to route.exeThe requested operation requires elevation.Wed Nov 30 16:55:08 2011 ERROR: Windows route add command failed [adaptive]: returned error code 1

There is an icon in the system tray area at the bottom right corner of the screen. Clicking on this icon will bring up the server we added in the menu. Click Connect. The OpenVPN client will open the link to the OpenVPN server. After a while, the OpenVPN icon turns green and the link is successful.

3, Common OPENVPN running error

Options error: Unrecognized option or missing parameter(s) in [PUSH-OPTIONS]:6: topology (2.0.9)....ROUTE: Route addition failed using CreateIpForwardEntry: One or more arguments are not correct. [if_index=12]...ROUTE: route addition failed using CreateIpForwardEntry: One or more arguments are not correct. [if_index=31]This run error occurs, then search by URL: http: //logicmd.net/2010/08/config-handbook-for-ssh-and-vpn/found, may be OPENVPN version, so the download from the official openvpn-2.0.9-gui- 1.0.3-install replaced openvpn-2.2.1-install operation connect again, immediately OK.

4, OPENVPN connection OK, still unable to access certain Web site

Make sure that the destination URL is in a normal state, and secondly you can check your DNS settings DNS address whether China, the proposed replacement for the official recommended DNS address. Available DNS:

opendns: 208.67.222.222 and 208.67.220.220; google dns: 8.8.8.8 and 8.8.4.4; nordon dns: 198.153.192.1 and 198.153.194.1;

Copyright © Windows knowledge All Rights Reserved