In this (video)-tutorial I’ll show you how to setup your own OpenVPN access server in just a few minutes! OpenVPN is an open source software application that implements VPN techniques for creating secure point-to-point connections.
In order to proceed, you’ll need the following:
- A basic installation of CentOS 5.8 (32- or 64-bit)
- A dedicated or virtual machine
After the installation of CentOS, head over to the OpenVPN website at http://www.openvpn.net and go to “VPN Solution”. Now click on “Access Server Software Packages”. Select the appropriate operating system. In my case it’s CentOS. Copy the URL of your OS version and make a choice between 32- or 64-bit. In my case it’s CentOS 5, 64-bit.
Head over to your terminal and execute the following command:
# wget http://swupdate.openvpn.org/as/openvpn-as-1.8.4-CentOS5.x86_64.rpm
The download process will now start. Please be patient until it’s finished. Next, we’ll use rpm to install the software on our machine.
# rpm -i openvpn-as-1.8.4-CentOS5.x86_64.rpm
The installation process will now start. This will take a few seconds. Next, we want to set a password for the default VPN user “openvpn”.
# passwd openvpn
Next, open a browser and go to the URL mentioned after “Admin UI:” just after installing and try to log in with the username and password that you’ve just set.
The next thing you’ll have to do is test it from a remote location. You can use either the OpenVPN Connect or OpenVPN Client software to connect on a windows machine. Both packages can be found here.