Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
38
rated 0 times [  38] [ 0]  / answers: 1 / hits: 125686  / 3 Years ago, sat, june 26, 2021, 7:12:55

I travel a lot and am always using open wifis anymore. I know Ubuntu is a pretty sturdy OS with some good security, but I still want to be safe out and about. However, I've never used a VPN under Ubuntu. Haven't a clue on how to set one up or even what's available. I'm looking for one that doesn't cost anything, any solutions?



I especially don't know how to set up one under 17.10, a lot's changed.


More From » security

 Answers
0

Check OpenVPN, it's an open source virtual private network. Step by step guide provided by the Official Ubuntu Documentation on this link:
OpenVPN



If this is too complicated there is an easier way to set a simple VPN.




  1. Open Terminal and typesudo apt-get install openvpn network-manager-openvpn network-manager-openvpn-gnome then enter: sudo /etc/init.d/networking restart.

  2. Go to: https://www.vpnbook.com/ and download the package you want under 'OpenVPN'. Make sure to save the user and password you're given as you'll later need it.2]

  3. Extract. You'll have four or maybe more different files. Stick with one and only one and discard the others.

  4. Create 3 new files: certificate.crt, ca.crt, and key.key. Open the .opvn you downloaded and copy the text between < ca > and < /ca > into your ca.crt. Do the same with your other files: copy everything under < cert > and over < /cert > into certificate.crt; and everything between < key > and < /key > into key.key.

  5. Now go to Network in Settings and add a new VPN Network

  6. In the configuration window: name it whatever you want. Gateway: copy the address given in the third line of the .ovpn file just after remote and before the separate number which is the port number. Depending on what file you chose, you'll have different gateways/port numbers.


  7. Choose Password with Certificates (LTS) in Authentication / Type and copy and paste the user and password you were given on the site (Step 2). User Certificate is your certificate.crt, CA Certificate is your ca.crt, and Private Key is your key.key file.

  8. Click Advanced..., select the options that you see in this image. Use custom gateway port is the number that you have in your .ovpn file (Step 6). Now go to the Security tab and set Cipher to AES-128-CBC

  9. Done. If your connection doesn't establish right away and keeps disconnecting, change the VPN password setting to Store the password for all users.



Source: transcript of How to Establish An OpenVPN Connection FREE in Ubuntu-15.10



update for UBUNTU 18.04:
in the Advance settings (step 8) after checking the option:
Use LZO data compression you need to choose "Yes" instead of "Adaptive"


[#9766] Saturday, June 26, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
avilyexplor

Total Points: 20
Total Questions: 102
Total Answers: 120

Location: Maldives
Member since Mon, Jun 21, 2021
3 Years ago
;