How To Install OpenVPN On Ubuntu

If you want to get OpenVPN running on your server, the easiest way is using the OpenVPN-AS ( Access Server ). OpenVPN-AS is the commercial version of opensource OpenVPN project. But they are kind enough to let you use the OpenVPN-AS free for 2 concurrent users. Of course you can buy licenses and increase the user limit, But for personal use its enough.

Installing OpenVPN-AS is very easy compared to the regular OpenVPN and it comes with a nice web based management interface as you can see on above screenshot. Also the web interface has nice options like showing bandwidth usage, connected user info etc. You can run OpenVPN-AS on 128MB ram VPS or higher. 128MB of RAM is more than enough for this purpose. Just grab a 128MB OpenVZ VPS from Ramnode or BuyVM and lets get in to the installation,

Note :- OpenVPN-AS is available for many linux distros but Ill cover the Ubuntu and Debian. Install 32bit version of Ubuntu or Debian if you have less than 256MB of RAM on your VPS or Dedi. Also don’t forget to enable TUN/TAP and PPP if you are using an OpenVZ VPS like shown below


First of all lets update the system and packages

apt-get update
apt-get upgrade

Then lets download the installation files from the OpenVPN web site

For 32bit OS

wget http://swupdate.openvpn.org/as/openvpn-as-1.8.5-Ubuntu12.i386.deb

For 64bit OS

wget http://swupdate.openvpn.org/as/openvpn-as-1.8.5-Ubuntu12.amd_64.deb

Then we just have to install it

On 32bit OS

dpkg -i openvpn-as-1.8.5-Ubuntu12.i386.deb

On 64bit OS

dpkg -i openvpn-as-1.8.5-Ubuntu12.amd_64.deb

Now we have to set a password for the openvpn user by below command. Enter a password you wish and this will be used to login to admin panel and the VPN.

passwd openvpn

Now you can access the admin panel by visiting


Thats it! You can use the OpenVPN clients to connect to your VPN. Download the official clients here .

Leave a Reply

Your email address will not be published. Required fields are marked *