Free Republic
Browse · Search
General/Chat
Topics · Post Article

Skip to comments.

Introduction To VPN And Here Is How to Use It In Linux
LinuxandUbuntu ^ | 10/26/17

Posted on 10/26/2017 4:14:19 PM PDT by markomalley

A VPN, or Virtual Private Network, is a security concept designed to allow remote users to connect to a particular local network to the internet via a secure tunnel. In simpler terms, a VPN is an encrypted connection between two (or more) remote computers. 

The main two applications of this technology are either employee who are working remotely yet require access to their company’s network resources, or privacy-minded home users who wish to keep their web traffic protected from any prying eyes that may be watching. VPNs are very commonplace in today’s always-online world, and most (if not all) operating systems come with some VPN functionality built in. While there can sometimes be slight differences between distros and desktop environments, you will generally find VPN configuration options in the same place you configure the rest of your network settings. Keep in mind that you may experience a drop in network speeds while connected to your VPN, but such is the price for security.

What You’ll Need

The first thing you’ll need to configure and connect to a VPN is a computer on the other end of the tunnel to connect to, be it your company’s VPN server or a public VPN provider (although if you’re trying to connect to your company’s intranet, you should probably just let your company’s Sysadmin(s) handle it). A quick Google search will find many public VPN providers that will allow you to use their services for a nominal fee.

​Finding the best provider is up to you, do your research, read reviews, and see what fits your budget. For anonymity purposes, you’ll want to find a provider that does not keep any logs of network traffic whatsoever (or at least, claims to not keep logs, unfortunately, you’ll probably just have to take their word for it). Depending on your location, it may even be a good idea to find a provider that operates outside of your country’s jurisdiction, in the event that your web traffic is subpoenaed for some reason. While this may not absolutely prevent a subpoena from being fulfilled, it may at least add some extra paperwork and processing time for the guys that want your information. And of course, if your chosen VPN provider truly does not log any network traffic anyway, then it won’t matter. But why make it easier for the powers that be, right?

Get Connected

Once you’ve figured out who or what you’re connecting to, then it’s time to actually configure the connection, assuming that your VPN service of choice doesn’t use some sort of proprietary software application (like Cisco’s AnyConnect, for example); in which case just follow the documentation from your VPN provider. However, for most situations, you can just use the built-in network management service that comes with your distro. For Ubuntu (Unity) and Linux Mint (Cinnamon), the popular NetworkManager is installed by default. I also went with NetworkManager for my GNOME Desktop running on my Arch Linux installation, simply because it was the most familiar to me.

According to Ubuntu’s official documentation, you may need to install an additional network-manager package to work with your particular VPN. However, most of the time, you can just click the network connections icon in the top right of the status bar, and on the drop-down menu you’ll see VPN Connections>Add a VPN connection. If this doesn’t work, you can also go to Settings>Network, and click the plus sign at the bottom left corner of the window to add a new network connection. Select VPN from the interface, and by default, you’ll likely only have the Point-to-Point Tunneling Protocol (PPTP) option available. If your VPN utilizes PPTP, you can now enter the connection info provided to you by your VPN such as Gateway, username/password, etc. If you’re not using PPTP, then you may have to search for additional software packages that support your particular connection protocol. Once all the necessary information has been configured, you can toggle your VPN connection on and off directly from the status bar.

edit network settings in ubuntu

choose a vpn connection type

create a vpn connection in ubuntu linux

On Linux Mint, the process is quite similar. Go to System Settings>Network, and you’ll see a Network Settings window that’s almost identical to Ubuntu. As with Ubuntu, click the plus sign to add a new network connection, select VPN from the list of connection types, and by default you’ll have the pre-installed choices of connecting via OpenVPN or the same PPTP connection that we saw in Ubuntu. Whichever your VPN provider’s documentation says to choose, select it and provide the required connection information given to you by your VPN provider. Once all the necessary information is configured, you should be all set. You can also toggle your VPN connection on and off like you would your Wi-Fi or Bluetooth connections.

create a vpn connection in linux mint

setup vpn in linux mint

vpn settings in linux mint 18

If you’re using a different desktop environment or even a different distro altogether, it's best to first consult your distro’s documentation (especially if you’re an Arch Linux user like me), however the process will still be essentially the same: Find your network connections, add a VPN connection, select the needed protocol that your VPN connection will use, and supply the required configuration information. After that, you’ll be free to work and/or browse knowing that your connection is secure and private *. Just hope that your VPN provider is telling the truth and really isn’t logging your network activity.

add vpn to linux

* Disclaimer: It turns out that PPTP isn’t actually very secure, so it may be a good idea to pursue other VPN connection types if your VPN provides them

Conclusion

​VPNs are a great security and privacy tool that aren’t too difficult to use. Just a few clicks and you’re connected and ready to browse to your heart’s content; just make sure you’re using a secure connection protocol). Technology is constantly progressing and changing, and in today’s world, it pays to be in the know about new technological advances, particularly when it comes to privacy and security. Do your research, read your distro’s documentation, and subscribe to LinuxandUbuntu for more articles, tutorials, and reviews!


TOPICS: Computers/Internet
KEYWORDS: linux; openvpn; security; vpn
Navigation: use the links below to view more comments.
first previous 1-2021-4041-43 next last
To: markomalley

I love Openvpn. I have been using it for years.


21 posted on 10/26/2017 5:56:52 PM PDT by frogjerk (We are conservatives. Not libertarians, not "fiscal conservatives", not moderates)
[ Post Reply | Private Reply | To 1 | View Replies]

To: wally_bert

Yep, Air VPN has a good reputation but it really does not fit my need. I just want to “return home” by using my Linux laptop to set up a connection back to my ww-drt router’s vpn.


22 posted on 10/26/2017 5:59:45 PM PDT by taxcontrol (Stupid should hurt)
[ Post Reply | Private Reply | To 13 | View Replies]

To: markomalley

I heard some of the VPN servers are bandwidth limited. Any truth to that?


23 posted on 10/26/2017 6:05:25 PM PDT by SgtHooper (If you remember the 60's, YOU WEREN'T THERE!)
[ Post Reply | Private Reply | To 1 | View Replies]

To: markomalley

Yup, we use PIA (Private Internet Access) and run linux on everything. $33/yr is pretty cheap protection from the trackers(googly).


24 posted on 10/26/2017 6:13:19 PM PDT by Pollard (TRUMP 2016)
[ Post Reply | Private Reply | To 1 | View Replies]

To: SgtHooper
I heard some of the VPN servers are bandwidth limited. Any truth to that?

Yes. But reviews generally give indications.

I, personally, use Private Internet Access (PIA) (which, supports OpenVPN client, for those interested). Here's a speed test I recently ran (I have a 75/75 Internet connection):

No VPN:

With VPN:


25 posted on 10/26/2017 6:13:22 PM PDT by markomalley (Nothing emboldens the wicked so greatly as the lack of courage on the part of the good -- Leo XIII)
[ Post Reply | Private Reply | To 23 | View Replies]

To: Bikkuri

Have you made the move to kde neon hey? I love the Application Dashboard widget.


26 posted on 10/26/2017 6:17:32 PM PDT by Pollard (TRUMP 2016)
[ Post Reply | Private Reply | To 17 | View Replies]

To: ShadowAce
Hey ShadowAce, are you still doing the Tech Pings?

And I pray you have recovered from your accident some time back...

27 posted on 10/26/2017 6:47:21 PM PDT by dayglored ("Listen. Strange women lying in ponds distributing swords is no basis for a system of government.")
[ Post Reply | Private Reply | To 1 | View Replies]

To: SanchoP
You should change your DNS too and get off your ISP’s.

I had that problem using VPNBook, a free VPN service. I had my router configured as the DNS server. Being on the LAN, traffic to the router couldn't go through the VPN, obviously. Of course, the router was simply passing my DNS queries to Verizon.

When I realized what was going on, I modified the VPN startup script to switch DNS over to Google's public servers, at 8.8.8.8 and 8.8.4.4.

There are several sites that will check if you are leaking DNS queries. E.g., here is how dnsleaktest.com describes their service:

The DNS leak test works by sending your client a series of domain names to resolve within a specific test domain. Each request is sent from your client to your configured DNS server. Even if you have configured a single DNS server, there may be many other servers that the request is passed on to in order to be resolved (normally to load balance the requests). For example if you configure Google DNS then you will often find 6-10 Google DNS servers which are fullfilling the DNS requests.

The Standard test performs 1 round of 6 queries for a total of 6 queries. This should be more than sufficient to discover if you have a DNS leak. The original test prior to the 2014 upgrade did 3 queries. The advantage of this test is that it is fast. Use this test to quickly check for dns leaks when you connect to your VPN service.

The Extended test performs 6 rounds of 6 queries for a total of 36 queries. This high number ensures that all DNS servers are discovered. However for the purposes of discovering if you have a DNS leak this is not normally neccessary and can take 10-30 seconds longer to complete. If you have strong anonymity/privacy requirements you can choose the extended test just to be certain.


28 posted on 10/26/2017 6:49:05 PM PDT by cynwoody
[ Post Reply | Private Reply | To 20 | View Replies]

To: Pollard

No.. will check it out :)


29 posted on 10/26/2017 6:53:26 PM PDT by Bikkuri
[ Post Reply | Private Reply | To 26 | View Replies]

To: markomalley

Many thanks!

Bookmarking !


30 posted on 10/26/2017 7:11:30 PM PDT by WildHighlander57 ((WildHighlander57, returning after lurking since 2000)
[ Post Reply | Private Reply | To 1 | View Replies]

To: cynwoody
I use Secure DNS:
8.26.56.26
8.20.247.20
it renders pages better than my ISP default.
31 posted on 10/26/2017 7:16:18 PM PDT by SanchoP
[ Post Reply | Private Reply | To 28 | View Replies]

To: markomalley

Thx, bookmarking yhe crap outta this.


32 posted on 10/26/2017 8:00:57 PM PDT by GraceG ("It's better to have all the Right Enemies, than it is to have all the Wrong Friends.")
[ Post Reply | Private Reply | To 1 | View Replies]

bookmark


33 posted on 10/26/2017 10:32:48 PM PDT by freds6girlies (many that are first shall be last; and the last shall be first. Mt. 19:30. R.I.P. G & J)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Ernest_at_the_Beach; markomalley
Thanks markomalley.

34 posted on 10/27/2017 1:54:14 AM PDT by SunkenCiv (www.tapatalk.com/groups/godsgravesglyphs/, forum.darwincentral.org, www.gopbriefingroom.com)
[ Post Reply | Private Reply | View Replies]

To: rdb3; Calvinist_Dark_Lord; JosephW; Only1choice____Freedom; amigatec; Ernest_at_the_Beach; ...

Fully, 100% recovered. Took about a year, but I'm back riding again. Scars all over the place, though. :)

35 posted on 10/27/2017 3:32:46 AM PDT by ShadowAce (Linux - The Ultimate Windows Service Pack)
[ Post Reply | Private Reply | To 27 | View Replies]

To: ShadowAce

Welcome back, my FRiend... but, what happened? I thought aliens abducted you and carried you off, or something >.<


36 posted on 10/27/2017 5:36:54 AM PDT by Bikkuri
[ Post Reply | Private Reply | To 35 | View Replies]

To: Bikkuri
I had a motorcycle accident in June 2016. Was out of commission for a while.

Came back to a bunch of FR infighting and banning of people who were not convinced that Trump is a worthy conservative, so I was frequenting another site.

37 posted on 10/27/2017 5:46:00 AM PDT by ShadowAce (Linux - The Ultimate Windows Service Pack)
[ Post Reply | Private Reply | To 36 | View Replies]

To: ShadowAce
> Fully, 100% recovered. Took about a year, but I'm back riding again. Scars all over the place, though. :)

I'm SO glad you're okay! Now you be careful.... :-)

After I flew off my motorcycle back in '91 and smashed myself up, I got back on after recovery and rode for another 15 years. MUCH more carefully. But about a decade ago I decided I'd done enough riding, and that was the right decision (for me anyway).

Take care, we need you.

38 posted on 10/27/2017 5:56:25 AM PDT by dayglored ("Listen. Strange women lying in ponds distributing swords is no basis for a system of government.")
[ Post Reply | Private Reply | To 35 | View Replies]

To: Bikkuri

Sorry.

I had the name wrong.

It’s Hoxx.


39 posted on 10/27/2017 12:21:30 PM PDT by 2111USMC (Aim Small Miss Small)
[ Post Reply | Private Reply | To 16 | View Replies]

To: markomalley

BFL.


40 posted on 10/30/2017 6:03:27 AM PDT by Bloody Sam Roberts ("Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers)
[ Post Reply | Private Reply | To 1 | View Replies]


Navigation: use the links below to view more comments.
first previous 1-2021-4041-43 next last

Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.

Free Republic
Browse · Search
General/Chat
Topics · Post Article

FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson