There are many online services that sell VPN services but I’ll use a free service VPNBOOK.
VPNBOOK says –
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 the image.
- Extract the downloaded bundle and create 3 new document file within the extracted folder and name them ca.crt, certificate.crt and key.key as shown in the image below –
- Open any of the .ovpn files in the text editor, I’m using vpnbook-euro1-tcp80.ovpn. Copy certain text from this .ovpn file to the created text files ca.crt, certificate.crt and key.key.
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 the system
- Open the terminal and install VPN Plugin.
$ sudo apt-get install network-manager-openvpn
- Now open system network configuration and click Configure VPN and add OpenVPN network as in image below.
- Now Fill all the fields as below-
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
- Click the Advance button
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)
- Click OK and save all settings. Now you are done!
From network menu connect to VPN and you are all done! You have now configured a VPN connection successfully into your Linux machine.