You are currently viewing How to install OpenVPN on Ubuntu 20.04

How to install OpenVPN on Ubuntu 20.04

In this tutorial you will see how easy it is to install and setup VPN (OpenVPN) on your Linux (Ubuntu) server.

First of all, you need to connect to your Ubuntu server via FTP and SSH. On Windows you can use WinSCP as FTP and PuTTY as SSH Terminal.

After successfully connecting to your server, make sure to update and upgrade your current server by writing the following:

  • sudo apt-get update && sudo apt-get upgrade

Download OpenVPN installer by writing the following:

  • wget https://raw.githubusercontent.com/Angristan/openvpn-install/master/openvpn-install.sh

After, downloading OpenVPN grant executable permissions to the file you just downloaded.

  • chmod +x openvpn-install.sh

Run the file and leave most of the default values. In the end it will ask you to name your certificate, make sure to give a a solid name. For example openvpn-ubuntu

After finishing the setup process of your VPN, download the certificate to your computer, it should be in your home directory. For example /root/yourname.ovpn

To download your OpenVPN certificate from your Linux server, I would recommend using WinSCP, if you are using Windows.

OpenVPN certificate in FTP

Download OpenVPN to your PC – https://openvpn.net/download-open-vpn/, install and run it.

After completing previous steps, you should be able to see this little icon which reminds of little computer with a lock to it’s left.

OpenVPN icon in the menu bar

By clicking Mouse2 -> Import file… you will be able to import the certificate you just downloaded.

After successfully importing the certificate, click Mouse2 -> Connect on the same icon and after couple of seconds you will be connected to your VPN.

In conclusion, now you have completed install and setup process of your VPN (OpenVPN) server on your Linux (Ubuntu) remote server, that you can connect not only from Windows, but from Android, MacOS, Linux and iPhone.

Note: Since your server most likely has only 1 IP address, your VPN will also give you only one unique IP address.

If you have any questions regarding this or any tutorial feel free to write a comment or contact us.

Leave a Reply