From a while, I used OpenVPN-AS on Digital Ocean because is cheap to pay for a VPS and install different services.
One of the benefits of installing OpenVPN-AS is that it include a web client, the limitation is that the free license is only for 2 users.
The package is on the official OpenVPN website and is available for some linux distributions, the first thing that we have to do is access to the server via ssh and download the package, for this example I will use Debian:
The command below is to install the package:
sudo dpkg -i openvpn-as-2.1.4-Debian8.amd_64.deb
After the installation it will show you something similar to this:
The next step is to change the password to the
sudo passwd openvpn
After the installation appears the web client URL, you can check if everything is working from the web interface and also you can download the desktop clients.
The web client URL:
![OpenVPN AS Web Interface](/content/images/2017/04/openvpn-as-webclient.jpg)
Binding the wrong interface (connection refused).
If the connection is refused with you are trying to enter into the web client for the first time the problem could be OpenVPN-AS is binding the wrong interface, to fix it is simple, you only need reconfigure manually with this command:
And when it prompt for the interface, choose all the interfaces:
![OpenVPN AS interfaces](/content/images/2017/04/openvpn-as-interface.png)
TUN/TAP error after upgrade the kernel.
The error in the message below appears when the service starts and after you upgrade the kernel:
process started and then immediately exited: ['Mon Dec 1 16:58:24 2014 ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19)']
service failed to start or returned error status process started and then immediately exited: ['Mon Dec 1 16:58:24 2014 ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19)'] service failed to start or returned error status
- You need to go to the Digital Ocean control panel.
- Enter to the Dropplet where you installed OpenVPN-AS.
- Click on the Setting tabs and click on the kernel.
- Change the kernel to the last version.
- Turn off the server
poweroff, because restart won't work.
- Enter to the Dropplet and check that the message doesn't appear anymore.