OpenVPN client

How to set up an OpenVPN client for your OpenVPN server. It is assumed that you have your basic certificates and keys.

First create a folder for the client files on your desktop (e.g. ClientName2).

Then move the following files from “C:/Program Files/OpenVPN/easy-rsa/keys” to your new client folder:

ClientName2.crt
ClientName2.key
ca.crt

Start Notepad.

198-01

Paste in the following text into Notepad:

# config file for ClientName2
client
dev tun
proto udp
remote 192.168.22.1 45022
resolv-retry infinite
nobind
persist-key
persist-tun

ca ca.crt
cert ClientName2.crt
key ClientName2.key

comp-lzo
verb 3
redirect-gateway def1

cipher BF-CBC
auth SHA256

198-02

Save file as ClientName2.ovpn (not as a txt-file) in client folder.

198-03

Move the client folder to “C:/Program Files/OpenVPN/easy-rsa/config”.

198-04

Run OpenVPN client GUI as administator.

198-05

Right-click the OpenVPN GUI and left-click <Connect>.

198-06

Wait a while for the connect message.

198-07

Once connected, open internet explorer and make sure you get online. If you get online, disconnect by right-clicking the OpenVPN icon and chose <Disconnect>.

You now need to modify the config file to include your external IP address (the current config file using local IP address to your DD-WRT router). Right-click the OpenVPN GUI and left-click <Edit Config>.

198-08

Change the internal IP address to your external IP address:

remote xxx.xxx.xxx.xxx 45022

198-09

Save config file and re-connect. If your DD-WRT router is behind another router, then you need to forward port 45022 in the intermediate router.

Leave a Reply