OpenVPN provides flexible VPN solutions to secure your data communications, whether it’s for Internet privacy, remote access for employees, securing IoT, or for networking Cloud data centers.
We can deploy OpenVPN Server software solution on-premises using standard servers or virtual appliances, or on the cloud.
A VPN reduces security risk by preventing unauthorized access to specific network resources and ensures privacy on untrusted Wi-Fi and other public access networks.
ParagraphPrivate companies, journalists and individuals use VPN service to gain access to certain parts of the internet which are restricted by the Government.
Even though TOR is a better option for accessing restricted content, some people prefer VPN as it is usually faster than TOR.
VPN keeps you safe when you are connected to public wi-fi or an untrusted network. It encrypts your data and re-routes it through the VPN server to provide you a secure experience.
The technology behind OpenVPN is open source, so it is accessible by everyone and can be hosted on a self-managed server by the VPN company.
Almost every VPN company support OpenVPN and they provide you with manual configuration files to set up on your operating system.
Linux Mint provides a built in support for the OpenVPN and so do many other Linux distros.
You can easily install OpenVPN on Linux Mint 20 and in older versions in just a few easy steps.
Follow these steps to configure OpenVPN on Linux Mint 20:
To set-up OpenVPN, we first need to download its configuration files. Just check on the internet for VPN services which provide OpenVPN configuration.
For the sake of this tutorial, I am using vpnbook.com which provides open VPN access.
First go to your VPN services’ website and download OpenVPN configuration files and note down your username and password. We will need them later.
I have downloaded my configuration files from vpnbook and have decompressed them as shown in the picture above.
You may see more than one file after decompressing. This is because each one of these files is for different protocol and you may choose whichever one you like or need.
After acquiring necessary files, we will now set up OpenVPN.
To set up OpenVPN, click on the network icon present on the default panel in right bottom corner and choose “Network Settings” .
A pop-up will appear on your screen as shown in the picture above.
This is our network manager from where we can add or remove network connections. We will use it to set our VPN connection.
Now click on the plus icon in the bottom left of the window.
Now it will provide us three options as shown in the picture above. Choose “Import from File…” option as we have our configuration stored in a file.
It will open a file manager from where you can choose the file we downloaded on the first step. You can choose any of those four files; I have chosen the one with tcp protocol.
Now enter your username and password. If you are using vpnbook, then you can find the username and password on the same page from which you downloaded the configuration files.
I have entered all the information that we will need to set up our vpn client. We only have to input our username and password manually, and it automatically fills the rest of the stuff from the configuration file that we selected.
Our installation is now complete and now we can connect to VPN servers
Click on the network icon again as shown in the picture above you will see your VPN connection name under VPN Connections section.
Now toggle the button next to “VPN Connections” .
It will take around 10 seconds for the connection to become active. You will receive a notification after the connection has been successfully setup or will receive an error message if something went wrong.
We have completed our set-up. If you receive any error then cross check your username, password and configuration file.
Now go to your web browser and search “what’s my IP” or visit Ipleak and check if your IP has been changed.
For me it shows that I am in Poland and also showing a different IP address than my actual one.
This is it, and we have now successfully set-up an OpenVPN connection in our Linux Mint machine.
Remember, if you are using a free VPN service like vpn then you should only use it for general purpose. For better and enhanced security, I recommend a premium VPN service.
This is the end of this article. I hope you it helped you if so then share this article and drop your questions and doubts in the comments section.
Subscribe to our Newsletter for more interesting and fun Linux tutorials.