Summery: In this article you will learn how to configure VPN on Ubuntu with OpenVPN

What is a VPN?

VPN acronym of Virtual Private Network is a technology that helps us to connect our computers or devices into a less secure network over a safe and encrypted connection. In order to ensure that only proper users and data sessions cross to a VPN device, data encapsulation and encryption are used.

Virtual Private Network

There are many benefits that you can get when using a VPN. Some of them are,

  • Enhanced security
  • Anonymity
  • Bypass Geo-restriction
  • Speed and Reliability
  • Sharing of Files

How to Install a VPN in Ubuntu

First, open your terminal and install OpenVPN client using the below command.

apt-get install openvpn
Install OpenVPN client

Also Read: How To Install and Use GPG Encryption In Linux

Now download one of the VPNBook OpenVPN profile bundles by visiting this URL. Note down the username and password at the bottom of the web page.


Once the download completed Extract the profile bundle. You will get 3 or 4 .ovpn files.

Also read: Must Have Essential Linux Applications in 2019

Extracting vpnbook profile bundles.

Finally Open OpenVPN Client together with one of the .ovpn file using the below command. Enter the username and password you saved earlier when asked.

sudo openvpn --config <your .ovpn file>
Connecting to vpnbook server using openvpn client

That’s how you can easily install and configure VPN on Ubuntu with OpenVPN.


Leave a Reply

Your email address will not be published. Required fields are marked *