Virtual Private Network 'VPN' is a secure network connection to server that enables a computer or network-enabled device to send and receive data across shared or public networks. Using VPN allows a user to connect to any website that has been blocked either by network administrator or Government. In the following tutorial we will install and use VPN in our Linux Ubuntu based distributions.
VPN is often used to access some blocked websites or services by country Government. Some countries (for example China blocks the access of Youtube) have blocked many popular websites on the Internet. Those who believe in the freedom of accessing everything on Internet, they use such VPN services to access such blocked websites.
Other than accessing blocked websites, VPN technology is also used by individual Internet users to secure their wireless transactions to circumvent geo restrictions, and to connect to proxy servers for the purpose of protecting personal identity and location.
There are many online services that sell VPN services but I'll use a free service VPNBOOK.
VPNBOOK says -
Our Free VPN (Virtual Private Network) server is designed with the latest technologies and most advanced cryptographic techniques to keep you safe on the internet from prying eyes and hackers. Our VPN securely routing all your internet traffic through an encrypted tunnel to bypass government censorship, defeat corporate surveillance and monitoring by your ISP. VPNBook strives to keep the internet a safe and free place by providing free and secure PPTP and OpenVPN service access for everyone.
Setup VPN In Ubuntu Or Other Ubuntu Based Distributions
1. Create OpenVPN free account by clicking the following link -
Complete all the fields and confirm email account.
2. Goto vpnbook.com and click OpenVPN tab and download any one of the given certificate bundles and also note down the username and password as highlighted below in image.
Copy all text between <ca> </ca> tags and paste into ca.crt file.
Copy all text between <cert> </cert> tags and paste into certificate.crt file.
Copy all text between <key> </key> tags and paste into key.key file.
Once you have copied everything into ca.crt, certificate.crt and key.key then save them.
3. Now setup OpenVPN connection in system
$ sudo apt-get install network-manager-openvpn
Connection name - It can be any name you want.
Gateway - IP Address of the profile you chose (click here for image example) vpnbook-euro1-tcp80.ovpn
Type - Password with Certificates (TLS)
Username - Enter username from step 2
Password - Enter password from step 2
User Certificate - Browse certificate.crt file
CA Certificate - Browse ca.crt
Private Key - Browse key.key file
Private Key Password - Leave it blank
Open your .ovpn file (I'm using vpnbook-euro1-tcp80.ovpn)
Use custom gateway port - port from your .ovpn file (click here for image example)
Use LZO data compression
Use a TCP connection
Switch to Security tab
Cipher - Choose from your selected .ovpn file (AES-128-CBC in my file) (click here for image example)
From network menu connect to VPN and you are all done! You have now configured VPN connection successfully into your Linux machine.
Found any problem? Please report here or in comment section below.