What is OpenVPN?
OpenVPN is an open-source software application that implements virtual private network techniques to create secure point-to-point or site-to-site connections in routed or bridged configurations and remote access facilities
Lets get started with tutorial now,
We suggest using a freshly installed CentOS 6 server.
Connect to the server using SSH and update the server using command mentioned below, it will take 5-10 minutes depending on the speed of your server.
$ yum update -y
And now we will install the dependencies of OpenVPN. The command below will install the dependencies required by OpenVPN.
$ yum install gcc make rpm-build autoconf.noarch zlib-devel pam-devel openssl-devel iptables -y
We will fetch RPM file from OpenVPN servers by using this command
$ wget http://swupdate.openvpn.org/as/openvpn-as-2.0.17-CentOS6.x86_64.rpm
After fetching RPM file, we will run it.
$ rpm -i openvpn-as-2.0.17-CentOS6.x86_64.rpm
And after running it, you will get something like this.
You should get a link with “https://IPHERE”, now go to it and you should see the OpenVPN access server page.
Login with root or create user and login. You will be able to download OpenVPN client from the same link after logging in.
At the end, run the OpenVPN the client, login and enjoy!