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 1-2021-4041-43 next last
Private Internet Access (PIA) has a very nice launcher that works perfectly in Mint, as well.
1 posted on 10/26/2017 4:14:19 PM PDT by markomalley
[ Post Reply | Private Reply | View Replies]

To: markomalley

These are mandatory as far as I’m concerned.


2 posted on 10/26/2017 4:16:01 PM PDT by SWAMP-C1PHER (HOMO, OECONOMIA, ET CIVITAS.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: markomalley

If strong security is your preference, use OpenVPN

https://openvpn.net/index.php/open-source/documentation/howto.html


3 posted on 10/26/2017 4:20:50 PM PDT by taxcontrol (Stupid should hurt)
[ Post Reply | Private Reply | To 1 | View Replies]

To: markomalley

Opera browser now has VPN built in. It can access about 5 world-wide locations FREE [US, Canada, Singapore, Netherlands, Germany]. Additional locations are available for a pay-upgrade.

FYI


4 posted on 10/26/2017 4:23:48 PM PDT by TomGuy
[ Post Reply | Private Reply | To 1 | View Replies]

To: TomGuy

There is also a Firefox / Waterfox add-on called Voxx. It provides VPN through a large list of countries. It’s free.

Our ISP address got blocked by John Rob a while ago when they were having problems with attacks. Using Voxx or Opera is the only way we can now access FR.

Both work fine.


5 posted on 10/26/2017 4:37:56 PM PDT by 2111USMC (Aim Small Miss Small)
[ Post Reply | Private Reply | To 4 | View Replies]

To: markomalley

ping for later


6 posted on 10/26/2017 4:38:28 PM PDT by Dr. Sivana (There is no salvation in politics.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: markomalley

Linux Mint has it’s own dedicated Private Internet Access client called PIA Manager. Mint 18.3 will have a usermode PIA client.

https://blog.linuxmint.com/

Also consider Torguard. They have a standalone linux client that just works. No configuration needed. Neither log or are US dependent.

You should get a vpn before you even have internet access. It’s mandatory. With all the trackers, crazy laws, and hostile governments trying to bend people over, you have to have this now. Otherwise, everything you type will be aggregated for future use when you can least protect yourself.

PS- Windows 10 is literaaly spyware in a OS wrapper. Get off it.


7 posted on 10/26/2017 4:38:36 PM PDT by JFoobar
[ Post Reply | Private Reply | To 1 | View Replies]

To: markomalley

ping for later.


8 posted on 10/26/2017 4:41:19 PM PDT by chuckles
[ Post Reply | Private Reply | To 1 | View Replies]

To: JFoobar
Linux Mint has it’s own dedicated Private Internet Access client called PIA Manager. Mint 18.3 will have a usermode PIA client.

I know, I'm using it right now.

Also consider Torguard. They have a standalone linux client that just works. No configuration needed. Neither log or are US dependent.

Sadly, the trouble with TOR is that there are a WHOLE lot of sites that don't particularly like TOR and block them.

PS- Windows 10 is literaaly spyware in a OS wrapper. Get off it.

Indeed. Thus I've been using Linux Mint for several years.

9 posted on 10/26/2017 4:41:57 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 7 | View Replies]

To: markomalley

Two years ago, my son and I set up a VPN between our households. Each of us put up a dedicated VM running Linux. We ran the VPN across specific ports which we exposed on our house routers. Internally, we employed standard Linux port forwarding.

When the system was set up, I could access web pages from my iPad using WIFI while sitting on my family room sofa, where the web pages were being served by an Apache web server on my son’s linux box across town.


10 posted on 10/26/2017 4:45:25 PM PDT by the_Watchman
[ Post Reply | Private Reply | To 1 | View Replies]

To: markomalley

Get a dd-wrt router and everything on your network can be behind a VPN.

https://www.privateinternetaccess.com/


11 posted on 10/26/2017 4:46:35 PM PDT by E. Pluribus Unum (You can't have totalitarian globalist government if the peasants are armed, can you George?)
[ Post Reply | Private Reply | To 1 | View Replies]

To: markomalley

Thanks
Bookmark VPN


12 posted on 10/26/2017 4:52:26 PM PDT by ptsal ( Get your facts first, then you can distort them as you please. - M. Twain)
[ Post Reply | Private Reply | To 1 | View Replies]

To: taxcontrol

I use Air VPN.

Works well.


13 posted on 10/26/2017 5:13:18 PM PDT by wally_bert (I didn't get where I am today by selling ice cream tasting of bookends, pumice stone & West Germany)
[ Post Reply | Private Reply | To 3 | View Replies]

To: markomalley

The TOR browser is apparently compromised by NSA and others. How secure from gov’t snooping are these private VPN operations?


14 posted on 10/26/2017 5:17:52 PM PDT by Paladin2 (No spelchk nor wrong word auto substition on mobile dev. Please be intelligent and deal with it....)
[ Post Reply | Private Reply | To 1 | View Replies]

To: markomalley

I said Torguard.

https://torguard.net/

The have VPN servers in every Country on Earth.


15 posted on 10/26/2017 5:23:49 PM PDT by JFoobar
[ Post Reply | Private Reply | To 9 | View Replies]

To: 2111USMC

Voxx isn’t showing up in my add-ons search (Ice Dragon, which is FF 52) :/

And, I’m NOT going to use Opera (bought out by China, last I heard)..


16 posted on 10/26/2017 5:44:58 PM PDT by Bikkuri
[ Post Reply | Private Reply | To 5 | View Replies]

To: JFoobar

Whoa.. I didn’t even know about that.. will check it out (for KDE) :)

Thank you :D


17 posted on 10/26/2017 5:46:33 PM PDT by Bikkuri
[ Post Reply | Private Reply | To 7 | View Replies]

To: Bikkuri

BM for Bikk (Linux)


18 posted on 10/26/2017 5:49:54 PM PDT by Bikkuri
[ Post Reply | Private Reply | To 7 | View Replies]

To: 2111USMC

Thank you! I saw it’s actually called Hoxx but I’ve been looking for a VPN solution like this for some time.


19 posted on 10/26/2017 5:50:23 PM PDT by Crolis ("To have a right to do a thing is not at all the same as to be right in doing it." -GKC)
[ Post Reply | Private Reply | To 5 | View Replies]

To: SWAMP-C1PHER

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


20 posted on 10/26/2017 5:56:49 PM PDT by SanchoP
[ Post Reply | Private Reply | To 2 | View Replies]


Navigation: use the links below to view more comments.
first 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