How To Install OpenVPN Server on Ubuntu 20.04 LTS

Install OpenVPN Server on Ubuntu 20.04

In this tutorial we will show you how to install OpenVPN  Server on Ubuntu 20.04 LTS. For those of you who didn’t know, OpenVPN is a robust and highly flexible open-source VPN software that uses all of the encryption, authentication, and certification features of the OpenSSL library to securely tunnel IP networks over a single UDP or TCP port.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation OpenVPN on a Ubuntu 20.04 (Focal Fossa) server.

Install OpenVPN Server on Ubuntu 20.04 LTS Focal Fossa

Step 1. First make sure that all your system packages are up-to-date by running these following apt commands in the terminal.

Step 2. Installing OpenVPN on Ubuntu 20.04.

Clone the openvpn-install repository, thus the installation is as simple as running the command below:

You will get a couple of prompts to change or confirm default settings for the installation:

Main OpenVPN server configuration file is,/etc/openvpn/server.conf you are free to tune and tweak it to your liking:

Step 3. Generate OpenVPN user profile (.ovpn file)

We need to generate VPN Profiles to be used by the users. The same script we used for the installation will be used for this:

Step 4. Connect to OpenVPN Server from the client.

You can use the VPN client of your choice to configure OpenVPN client on your operating system. For those who want to use Official OpenVPN client, go to the downloads page.

Congratulations! You have successfully installed OpenVPN. Thanks for using this tutorial for installing OpenVPN server in Ubuntu 20.04 LTS (Focal Fossa) system. For additional help or useful information, we recommend you to check the official OpenVPN website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!