Set up Openvpn client on Centos 6.4

I often use Openvpn to connect my servers toghter over several cloud servers provider.
This is my small how to for setting up the openvpn client.

Install the openvpn server

yum install wget
wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -Uvh epel-release-6-8.noarch.rpm 
yum install openvpn

 

Set up the Vpn client

In /etc/openvpn extract you vpn config

Save you openvpn config file as client.conf

Test you vpn

openvpn --config client.conf 


Now when its working restart you openvpn with

/etc/init.d/openvpn restart

And now you will have vpn between you server.