How to install VPN on Ubuntu

Encryption using the Internet on Linux makes sense, but it's not as simple as on Windows, macOS or mobile devices. In today's article, TipsMake.com will read with you how to install a VPN on Ubuntu, the most popular Linux distribution. The article uses Ubuntu 19.10, but the steps are the same for other versions.

How to install VPN on Ubuntu?

  1. Request
  2. Choose VPN for Ubuntu
  3. Is there a free VPN for Ubuntu?
  4. Set up VPN on Ubuntu
  5. No VPN client? Install OpenVPN on Linux!
  6. How to use OpenVPN on Ubuntu

Request

There are many great VPNs, perfect for Linux. This article uses ExpressVPN, probably the best VPN on the market today, especially for Netflix streamers.

  1. Ubuntu or Ubuntu-based distribution
  2. VPN is compatible with Ubuntu
  3. VPN client, can be downloaded from VPN provider

Choose VPN for Ubuntu

Although providing clients is rare, VPN service providers still support OpenVPN (OVPN), an open source VPN client. But if you're looking for a simple solution that doesn't require downloading OpenVPN files, you need a VPN service with a Linux client application.

However, it is important to note that almost all VPN clients for Linux are launched from the Terminal. Once installed, it will invoke the VPN client, issue a connection request and specify a server. Very simple, but rarely provides the same flexibility as on other platforms.

So where to start? The following VPN services provide Ubuntu-compatible VPN clients:

  1. Mullvad VPN
  2. TorGuard
  3. AirVPN
  4. Windscribe
  5. ExpressVPN

Is there a free VPN for Ubuntu?

All of the above VPN services are based on registration. But what if you need a free VPN for Ubuntu?

The options are limited. Very few free, reliable VPN providers do anything other than encrypt data. If you only need a free VPN for Ubuntu for a short time, many of the top VPN services offer short-term trials.

The two options of which are ProtonVPN and AirVPN. Each option has certain limitations.

Set up VPN on Ubuntu

With the VPN service selected, download the corresponding client and set it up on Ubuntu. VPN settings on Ubuntu will vary depending on the specifications of the client software. This could mean downloading the DEB file, the snap file, or simply getting the client via the terminal from the repository or from GitHub.

Here's how to set up ExpressVPN on Ubuntu.

After registration, log in to the site, complete the two-step verification. If your operating system is not detected automatically, click See all devices and select Linux. Here, select your distribution (for example using 64-bit Ubuntu ) and click Download.

How to install VPN on Ubuntu Picture 1 Set up ExpressVPN on Ubuntu

The DEB file will download and you will be prompted to open it. Use the default software manager for this and wait for the VPN to install.

ExpressVPN, like many other Linux VPNs, runs as a command line. However, it still requires some setup. Some VPNs will require a username and password, while ExpressVPN uses an authentication key. To set up ExpressVPN on Ubuntu, launch the Command Prompt, then type:

 expressvpn authenticate 

When prompted, paste (or type) the authentication string.

Use the expressvpn command to display the options. You can quickly connect to the VPN server by entering the country in the command:

 expressvpn connect Germany 

Alternatively, you can enter the country, location, and server number:

 expressvpn connect Germany - Frankfurt -1 
How to install VPN on Ubuntu Picture 2 You can also enter the country, location and server number

To disconnect, simply use the command:

 expressvpn disconnect 

Seems too complicated, right? Fortunately, ExpressVPN and other VPNs provide browser plugins for Chrome and Firefox. They make using the VPN service a lot easier, if the client is accessible with the mouse available for your operating system.

All Linux-friendly VPN providers offer similar command-line applications, so these steps are a useful guide for most of those options. Naturally, see the documentation for your chosen VPN service for exact steps.

No VPN client? Install OpenVPN on Linux!

What if a VPN client is not available with the chosen VPN service or you switch VPN often? In this case, it makes sense that the VPN-client application is ready to use. Instead of installing another client, just use a VPN-client application.

Fortunately, such a solution exists. You will need the OpenVPN client on Ubuntu, which can be installed with:

 sudo apt install openvpn 
How to install VPN on Ubuntu Picture 3 Install OpenVPN on Linux

How to use OpenVPN on Ubuntu

You have already installed the OpenVPN client on Linux. But how to connect to the VPN server?

Start by making sure that your VPN provider supports OpenVPN. Almost all providers do this, but you will need to download the configuration file for the VPN server you want to use. Check the VPN provider support pages for details about configuration files with OVPN file extensions.

For example, a London-based VPN server might be called London-VPN.OVPN.

Using the ExpressVPN example again, the file to connect to the server in Switzerland is: my_expressvpn_switzerland_udp.ovpn. To use this application with the OpenVPN client on Ubuntu, enter:

 sudo openvpn --config my_expressvpn_switzerland_udp.ovpn 
How to install VPN on Ubuntu Picture 4 Enter the command to use this application with the OpenVPN client on Ubuntu

You will then be prompted to enter your login information and the VPN connection will complete.

4 ★ | 3 Vote

May be interested

  • How to install µTorrent (uTorrent) in Ubuntu 20.04How to install µTorrent (uTorrent) in Ubuntu 20.04
    µtorrent provides clients for windows and macos x, however it is installed as a server in ubuntu linux and provides a web ui for managing downloads.
  • How to Install Ubuntu Linux Without CD (Windows)How to Install Ubuntu Linux Without CD (Windows)
    want to install ubuntu on your windows computer, but don't have a dvd or cd drive? there are a couple of different ways that you can install ubuntu on computers that don't have disc drives. the most common way is to create a bootable usb...
  • How to Install ClickHouse on Ubuntu 22.04How to Install ClickHouse on Ubuntu 22.04
    clickhouse is a modern, fast and open source database management system used for online analytical processing (olap).
  • How to install MySQL on Ubuntu 20.04How to install MySQL on Ubuntu 20.04
    in this article, tipsmake will show how to install mysql version 8.0 on ubuntu 20.04 server. by completing it, you'll have an active relational database that can be used to build your next website or app.
  • How to install AVG Antivirus on UbuntuHow to install AVG Antivirus on Ubuntu
    in addition to windows, you can install avg antivirus on ubuntu easily and quickly to ensure that damage is minimized in the most optimal way. along with tipsmake, see how to install avg antivirus on ubuntu below.
  • How to install Ubuntu on a VMware virtual machineHow to install Ubuntu on a VMware virtual machine
    how to install ubuntu on a vmware virtual machine. ubuntu is a very popular operating system nowadays parallel to windows and macos. but ubuntu still makes many users wonder before upgrading should use on their own computers, so we still have a way to experience ubuntu.
  • Ways to install Ubuntu on Windows, run in parallel or run separatelyWays to install Ubuntu on Windows, run in parallel or run separately
    there are many ways to install ubuntu on your computer, such as installing ubuntu from usb, cd, installing ubuntu running in parallel with windows, installing it
  • What's New in Ubuntu 21.10?What's New in Ubuntu 21.10?
    version 21.10 is the latest release of ubuntu and although canonical is turning more attention to the cloud and developers, ubuntu 'impish indri' still comes with some notable changes for those users use the ubuntu desktop every day.
  • 10 software should install on Ubuntu10 software should install on Ubuntu
    you just moved from windows to ubuntu and wondered which ubuntu application is best and which software to install? below are the applications that should be installed on ubuntu after a fresh install.
  • How to install Blender 3D on Ubuntu 20.04How to install Blender 3D on Ubuntu 20.04
    blender 3d is a professional open source 3d graphics and animation software. it has a rich feature set like animations, visual effects, 3d modeling and motion graphics.