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.
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
Save file as ClientName2.ovpn (not as a txt-file) in client folder.
Move the client folder to “C:/Program Files/OpenVPN/easy-rsa/config”.
Run OpenVPN client GUI as administator.
Right-click the OpenVPN GUI and left-click <Connect>.
Wait a while for the connect message.
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>.
Change the internal IP address to your external IP address:
remote xxx.xxx.xxx.xxx 45022
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.
Recent Comments