Fast Way to Set up an OpenVPN Server on DigitalOcean

Fast Way to Set up an OpenVPN Server on DigitalOcean

OpenVPN is an open-source software application that implements virtual private network (VPN) techniques for creating secure point-to-point or site-to-site connections in routed or bridged configurations and remote access facilities.

This tutorial is going to demonstrate a fast way to set up your own VPN server, as well as connecting to the VPN server on Windows, Mac, iOS, Android, and Linux.

Step 1: Set up OpenVPN server

  • Install OpenVPN Access Server on your DigitalOcean Droplet
$ wget
$ dpkg -i openvpn-as-2.0.3-Ubuntu12.amd_64.deb
  • Configure VPN account
$ passwd openvpn
(Enter new UNIX password)
(Retype new UNIX password)

When this is done, you will see something like this in the terminal:

Admin  UI: https://your.droplet.ip:943/admin  
Client UI: https://your.droplet.ip:943/  

Login the Admin UI with the VPN account you set just now. Select continue if you see any security warnings. Then you will get the following page:
alt OpenVPN Access Server supports only 2 concurrent users.

Step 2: Connect to the VPN server

Now, log in your Client UI (https://your.droplet.ip:943/) with the same account, and download the correct client version of the platform you are using.

For mobile clients, you also need to download the connection settings and open in the OpenVPN app.

Install the OpenVPN client downloaded. Login and connect to your VPN server. Wait for a few seconds, if you see the notification, "The connection to XXX has been established.", then you are done!

For Mac users, you may encounter the following error:alt This is because the System Integrity Protection is enabled in the newer Mac OS. You can easily boot into the Recovery System, and type csrutil disable in the terminal to disable it.

More: Network, VPN