Try 8-in-1 Security Solution!   Only $2,74/month TRIAL  
Blog
How to configure OpenVPN on Ubuntu via Terminal
June 11, 2015

Privatoria OpenVPN is supported on the Linux platform. We’ve prepared a detailed command line set-up tutorial for Ubuntu Linux 14.04

Configure OpenVPN on Ubuntu via Terminal

Tweet

1. As of version 14.04 Ubuntu only comes with PPTP VPN protocol support pre-installed. To use Open VPN an appropriate daemon must be installed. To do this, open your terminal emulator (press Ctrl+Alt+T or search in the menu), type in “sudo apt-get install openvpn”, hit enter and input your user password.
OpenVPN Linux command line set-up (1)
2. Download pr-opevpn.conf file from your customer area (Secure VPN Settings section). You can do that straight from the terminal using “wget” utility as shown below. Type in wget “https://my.privatoria.net/public/uploads/pr-openvpn.conf” as shown below. Make sure ‘pr-openvpn.conf’ has been saved in your home directory.
OpenVPN Linux command line set-up (2)
3. Copy ‘pr-openvpn.conf’ file to ‘/etc/openvpn/’ directory using ‘sudo’ as shown below. Type in “sudo cp openvpn.conf /etc/openvpn/” (that is assuming ‘pr-openvpn.conf’ file is still in your home directory. You have to specify the exact source file location). After that issue “cd /etc/openvpn/” & “ls” to go to openvpn directory and list all files located there to make sure the file has been copied successfully. Issue “cd” command to return to your home directory.
OpenVPN Linux command line set-up (3)
4. Connect to VPN. Type in “sudo service openvpn start”. Enter your Privatoria credentials at the prompt (append @PRIVATORIA to your username as shown below).
OpenVPN Linux command line set-up (4)
5. VPN should be up and running now. Issue “ifconfig -a” to verify. The “tun0” interface is your VPN connection. You can check its IP address (inet addr) using any IP checking service. The default VPN server location specified in the config file is Germany.
OpenVPN Linux command line set-up (5)
6. To disconnect VPN issue “sudo service openvpn stop”.
OpenVPN Linux command line set-up (6)
7. To change VPN server location issue “cd /etc/openvpn/” & “ls” (this will take you to a directory where the openvpn config file is located and list all files). Now issue “sudo nano pr-openvpn.conf” (you can use any other text editor if you do not like nano).
OpenVPN Linux command line set-up (7)
8. Replace “privatoria.net” line with your desired gateway/server address.
OpenVPN Linux command line set-up (8)
List of available gateways

Press “Ctrl+O” to save changes in that file and “Ctrl+X” to exit. Finally issue “cd” to return to your home directory.

9. Restart the VPN service. Issue “sudo service openvpn restart” and enter credentials at the prompt as you did the first time.
OpenVPN Linux command line set-up (9)
Note: in case you’ve  just changed your Privatoria account password, please wait for 2-5 minutes (for changes to take effect on our side) before reconnecting to VPN.

Congrats! You’ve successfully configured Privatoria OpenVPN on your Ubuntu Linux box!

Start using Privatoria OpenVPN today!

Our Score

Reader Score

[Total: 0 Average: 0]





Interested? Try it!
Try 8-in-1 Security Solution!
Only $2,74/month
Start Free Trial
30 Days of Free Security Service for You and Your Friends!

We are happy to announce the start of Bring-a-Friend program that gives an opportunity to get a month of FREE security […]

VPN for International Travel

Travelling is Life. Travelling is Freedom. Full stop. No further comments, explanations or reasons are required to make you join […]

Are you ready for Crazy Black Friday Sale?

Black Friday sale from Privatoria is coming! Get 70% OFF for your anonymous and secure web surfing. A great chance […]