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?
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.
- Ubuntu or Ubuntu-based distribution
- VPN is compatible with Ubuntu
- 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:
- Mullvad VPN
- TorGuard
- AirVPN
- Windscribe
- 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.
Set up ExpressVPN on UbuntuThe 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
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
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
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.
You should read it
- Configure the VPN network connection in Windows XP
- L2TP (Layer 2 Tunneling Protocol) price?
- What is PPTP (Point-to-Point Tunneling Protocol)?
- From Encryption to Authentication: A Comprehensive Guide to Securing Your Emails
- How to check if your VPN connection is actually encrypted
- Check the TMG 2010 virtual private network server - Part 2: Configure TMG Firewall as the PPTP Remote Access VPN Server
- How to connect L2TP / IPsec VPN on Windows 10
- How to secure Linux Ubuntu with two-factor authentication
- Authenticate what two factors are and why you should use it
- Updates KB5009543, KB5009566 crash L2TP VPN connection on Windows
- Applications create authentication codes on Windows 10
- Setting up Wi-Fi authentication in Windows Server 2008 - Part 1