r/TechnologyProTips • u/HumanMilkshake • Apr 04 '17
Security TPT: What is and is not a VPN
If you only read one part of this, read the overview
There's been a serious uptick in the last few weeks of posts in this and related subreddits about VPNs and other ways to protect yourself online. The reason is because the US Congress has recently voted to repeal a law protecting consumer privacy. I'll talk about that later, but these posts have been heavily poor in quality. The reason is that these posts have been making incorrect or unjustifiable claims. The goal of this post is to help correct some of that.
Since people usually like to talk about their qualifications, I'll start with mine. I've done L1 tech support for a few months, I'm studying for the CCNA (an important networking certification), and I'm fairly paranoid.
This post is going to have three sections: What is a VPN? What is the best VPN? and context for the recent discussion about VPNs. If you want to learn more, check /r/VPN, /r/Security, and /r/Privacy as they're the experts.
With that said, let's begin.
Overview
A VPN is a paid service that you can use to hide not just what data you are sending, but also where you are sending it to. A VPN does this by forwarding all data to a companies server which then sends it anonymously to your destination. This is not the same as Tor, which uses a series of middle men to obscure where your data is going. This is also not the same thing as encryption via a solution like SSL, which will hide what you are sending, but not where it is going.
Also, no VPN is perfect, and any security solution which claims otherwise is lying to you. A paid VPN has an incentive to keep your data private, but a free one (looking at your, Hola) will sell your data just as happily as your ISP.
Also, Congress didn't repeal a law already in effect. They just changed their mind on a law going into effect that would have prevent the (already legal) practice of your ISP selling your bulk anonymized browsing data. They are selling advertisers the general browsing habits of (for example) your whole zip code, not you specifically.
What is a VPN?
The basic idea of a VPN is simple: it is a way of using a public network to connect to a private network. Depending on your job, you may work from home and need to access resources normally only available from the companies intranet. With a properly configured VPN you can sit at your home and connect to the companies internet.
How? Well, that would get into the details of how networks work at a level I don't feel like getting into. But imagine it like trying to send a letter from your home to a specific office in your work: you send your letter (data) to the company's office where it is routed to the appropriate person by the office's mail room.
When you see explanations of networking concepts you'll usually see it compared to the postal system. It isn't a perfect analogy, but it works pretty well.
Imagine regular networking is like putting a post card in your mail box, and getting a post card back: what protects your privacy is that no one is trying to see what you're sending. But, the post office/your ISP definitely knows what you're sending and who you're sending it to, and anyone with the inclination can set themselves up to monitor your network in real time and see what you're saying. In the post office comparison, this would be someone going to your mail box after your drop your letter off so they can read your mail. In networking this is called a man in the middle attack.
Encrypting your data (such as with SSL) is like sending/receiving letters in envelopes: anyone who wants to can see that you are sending/receiving data and to who, but only the end points can see the contents. Meaning, the post office and the person reading your mail knows you've sent a lot of letters to a particular address, but they cannot see what those letters say.
Like with an envelope, encryption isn't perfect. There's a huge array of encryption methods, and they have various degrees of difficulty of breaking, but they can all be broken. No encryption is perfect.
Tor is like sending an envelope to a friend of yours, who passes it a third person, who sends it to a fourth person, who then delivers it themselves. The post office/man in the middle knows that you are sending data, but they cannot know who it is being sent to or what it says. However, the process massively slows down your browsing speed because each of those steps takes up a bunch of time. Also, it won't work if you're sending a package, which is an awkward way of extending the metaphor to say it only works with your browsing, it won't protect anything you torrent, and generally speaking, Tor only works with browsing. Any web app you have sits out in the open.
A VPN is like sending every bit of mail in a specific envelope to a non-descript building downtown, which then pulls off the envelope, then puts it in a new envelope and sends that letter to the destination. When they get a response (since the response will be sent to them), they wrap it in a new envelope which hides who sent the letter to them, and then they send it to you. Like with Tor, this hides who you are sending/receiving data from largely by sending it to a middle man. The difference is that a VPN does this directly, while Tor does it through a series of middle men (called nodes), so a VPN is going to be generally much faster.
You may be thinking that the layered approach Tor takes makes it more secure, but that's not strictly true. There has been quiet a bit of concern among people in security about the very real possibility that the FBI or other intelligence agencies have been monitoring Tor exit nodes, which could let them monitor who is sending/receiving what data. In the above comparison, it would be like if one of the people in the chain was opening every letter handed to him and reading it before sending it along the chain. The reason that's possible is because Tor is a volunteer thing, anyone who wants to participate can, and that includes the CIA. But because VPNs are private for profit companies, they generally have an incentive to keep things above board.
In short a VPN is you sending data to a company's server where it is anonymized and sent to the destination, the destination then responds to that server, where the data is sent back to you. This prevents people listening in to figure out who you are sending data to, and the encryption prevents anyone from listening in from knowing what is being said.
What is the best VPN?
Trick question, there isn't one.
The best comparison site you will find for VPNs is this massive chart on ThatOnePrivacySite which lists almost 200 VPNs. There is a massive array of options to meet your various needs. I use Linux, so an option that doesn't have Linux support is useless to me. I don't give a shit about BitCoin, so I won't select a VPN based on whether or not it takes Bitcoin.
But definitely, definitely, do not use a free VPN. There's a phrase you might have heard before: if you aren't paying for it, you're not the customer, you're the product. That's not always true, but it's definitely true with VPNs. A service like Hola is free and works to get around geotagging, but your browsing details are getting sold to advertisers.
So how do you know what kind of VPN do you need?
If you just don't want your ISP to know what you're doing or to make it harder for hackers to figure out what you're doing, get a cheap VPN with decent encryption and you'll be fine. Want to turn off geotagging because you're Brazilian and want to watch American Netflix, get a cheap VPN that has servers in multiple countries. If you want to do things you think the CIA might be interested in (like if you want to write a book about a terrorist plot and are concerned that googling 'al Qaeda bomb making' will get you put on a list), read about the Five Eyes (and Nine Eyes and Fourteen Eyes) and Enemies of the Internet, and get a VPN in a country that doesn't cooperate with the Fourteen Eyes and isn't an Enemy of the Internet.
In brief, the Five Eyes is a group of countries (including the US) that have agreed to spy on each other and then share that data with each other. The CIA cannot spy on US citizens, but the British can spy on US citizens and then share their findings with the CIA. The Nine Eyes and Fourteen Eyes are supersets of Five Eyes. The "Enemies of the Internet" are countries that international watchdogs have said engage in censoring and manipulation of the internet and therefore cannot be trusted. These groups should be avoided because if you're using a British VPN to avoid the CIA, well MI6 can get a warrant for the VPNs habits and then share your records with the CIA. If you base your VPN in China, then China owns the VPN and is definitely watching what you do. On that note, the company that owns the Opera web browser is Chinese. So... You know. Avoid the Opera web browser.
Context for Recent VPN discussion
There are two bits that need to be explained: what the law means, and why I'm upset about the discussion.
Alot of the recent discussion has been acting as if Congress repealed an existing law, that this is someone that was illegal, and punishable. That is not the case. There was a law previously passed, but not yet in effect, which says that your ISP cannot sell the browsing habits of their customers. The recent law in Congress just says "yeah, never mind". And they aren't selling your specific browsing habits, but a block of anonymized browsing habits. Instead of saying "Dick R. Schmuckately spent 6 hours facebook stalking their ex on 3 March 2017" it'll be "residents of this county spent spent an average of 45 minutes of this hour on Facebook". For ISPs to get more specific, Congress would have to repeal an entirely different law.
If you've ever seen articles with titles like "states that spend the most amount of time watching porn" there's a chance that data was collected by purchasing browsing habits from ISPs. I cannot guarantee it, obviously, but it's certainly a route.
That's part of what irritates me, it's people misrepresenting what's happening. It's also people making grossly inaccurate statements about how to protect yourself. First of all, no encryption is perfect. Second of all, using a VPN doesn't mean you cannot be tracked, it just means doing so would be a huge pain in the ass. Any service that claims to be perfectly capable of protecting you is lying. Additionally, several posts have suggested that SSL (an encryption method) is the same as a VPN, but it's not. Others have said that Tor is equivalent to getting a VPN, but it's not. These are valid and useful things, depending on your needs, but they are not equivalent to a VPN.
It's fine, totally fine and understandable, not understand the difference between Tor and a VPN, or to think that encryption is equivalent to a a VPN in terms of protecting your browsing habits. I don't think there are many technical people who will disagree with me on that. We don't mind correcting small errors in what people say (and I'm sure someone will do that with my post). What we mind, what pisses us off, is when someone says something that is misleading or just plain wrong.
If you don't know something technical, learn how to ask questions the smart way and we'll hook you up.