How to install OpenVPN Server on Ubuntu 16.04

July 22, 2017 | By | Reply More

Ubuntu Tutorial – Today we will show you how to install OpenVPN Server on Ubuntu 16.04, Ubuntu 17.04 and all derivatives. OpenVPN is a free secure VPN service that has been widely used by millions of users around the world. Installing OpenVPN Server on Ubuntu based machine is very easy. Thanks to someone that provide the installation script that make it even easier to install OpenVPN Server on Linux.

Steps to install OpenVPN Server on Ubuntu 16.04

There are few steps to install OpenVPN Server. Please read them carefully. On this example, I am installing OpenVPN Server on an Amazon Lightsail machine with Ubuntu 16.04.2 Server installed. Make sure you have root access or sudo to the machine. Also make a note of the Ubuntu IP address.

  1. Update Ubuntu
  2. Install and configure firewall
  3. Download installation script
  4. Install OpenVPN Server

Step 1. Update Ubuntu

Whilst its an important part to make sure our system is up to date.

Step 2. Install and configure firewall (ufw)

Install ufw with the following command

Configure ufw to allow port 22, 443 and 80.

Enable ufw and check it status

Step 2. Download installation script

Step 3. Run the script and install OpenVPN Server

After running the script, the text based installation wizard will start. Answer some questions shown on your Terminal console.

Output:

Then the installation should begin. Wait few moments until it completed. Once completed, you can now download the .ovpn and save it to your computer.

You will need this file in order to connect to your OpenVPN Server using OpenVPN Client.

Tags: , ,

Category: Ubuntu

Leave a Reply