r/linux • • Mar 31 '18

The ProtonVPN Linux command-line tool is now available! • r/ProtonVPN

/r/ProtonVPN/comments/85tixe/the_protonvpn_linux_commandline_tool_is_now/
311 Upvotes

37 comments sorted by

20

u/peapoll Mar 31 '18

Direct link to blogpost

In summary:

At ProtonVPN we’re big fans of Linux operating system, and most of our team uses Linux- or Unix-based systems on a daily basis.

Because we are strong supporters of open source software (and we intend to eventually open source all ProtonVPN clients), our Linux VPN command-line tool is open source and can be found at the following Github repository: https://github.com/ProtonVPN/protonvpn-cli

16

u/Jimmy_is_here Mar 31 '18

Meanwhile not even their android app is open source after 3+ years.

55

u/thefanum Mar 31 '18

I would like to thank the developers for supporting Linux. Sincerely.

Now that that's out of the way, Proton is garbage:

https://restoreprivacy.com/protonvpn-review/

16

u/kah0922 Mar 31 '18

Here's another review from a well-known VPN reviewer.

Final thoughts: ProtonVPN got a lukewarm reaction from me. Certain aspects of their website felt incomplete or ill-thought out (the sign up process). Some others felt more thorough (the user dashboard and download portal). While the process to sign up for service was a bit rocky, things smoothed out a bit once this step was completed. The service and configs were easy to set up and connect with quickly, but the speeds I experienced were not great. Support was one of the better aspects of the service, as they were quick and helpful. ProtonVPN’s Terms of Service were also down the middle: some eyebrow-raisers, but no deal-breakers. In the end, (especially given its high asking price), I believe there are better services available on the market.

2

u/thefanum Mar 31 '18

Even if it doesn't address the technical failings that (in my opinion) are a deal breaker for a VPN, this is a great follow up. It has a lot of useful info. Thanks for posting.

2

u/mishugashu Mar 31 '18

Does that include if I were connecting via OpenVPN and not their client?

3

u/thefanum Apr 01 '18

Absolutely. These flaws are a technical failing in their platform in general. There's nothing any user can do to address them. They will have to build a new VPN service that addresses them from the ground up or rebuild significant parts of their existing infrastructure.

I highly recommend taking a look at PIA's blog. They are very transparent about the flaws in the VPN protocol, and how they address them. You need to have a very talent development team, and be incredibly proactive to keep it safe from flaws that could be exploited. Something most services see as unnecessary overhead.

1

u/[deleted] Apr 02 '18

It seems like that review website is doing affiliated/sponsored reviews? That offer discounts for other VPN providers?

19

u/kurav Mar 31 '18

Looks like yet-another wrapper for OpenVPN..

0

u/[deleted] Mar 31 '18

[deleted]

-6

u/[deleted] Apr 01 '18 edited Apr 01 '18

s/modern linux distro/systemd-based distro/

Come on, let's not confuse those two here. Phrasing like that helps no one.

3

u/DrewSaga Apr 01 '18

Is ProtonVPN related to ProtonMail in any way?

3

u/[deleted] Apr 01 '18

Same company, can use the same account

0

u/[deleted] Mar 31 '18

Buying a 1 year subscription to a VPN service that doesn't offer wireguard?

3

u/peapoll Mar 31 '18

There are other shorter plans, even free, available. Support for Wireguard would be nice, but most VPN services and including ProtonVPN do not support it yet unfortunately. ProtonVPN has confirmed that they are considering it though, so if it's what you need you should let them know.

6

u/[deleted] Mar 31 '18

mullvad supports wireguard (I'm running it atm) and accepts monthly payments.

2

u/dextersgenius Mar 31 '18

Do all their servers support WireGuard? Also, what are the speeds like? I'd like to use it for HD video streaming. I've tried Nord and ExpressVPN and the performance can be a hit or miss at times. I'm hoping WireGuard can help with that.

4

u/[deleted] Mar 31 '18

Their wireguard server list is much shorter than main one (https://mullvad.net/en/guides/our-vpn-servers/#wireguard-servers). I use de1-wireguard.mullvad.net and I don't experience any noticeable speed downgrade - but my broadband is only 40mbits, so your mileage may vary. You can just throw 5 euros for one month subscription and see by yourself. That's what I did initially.

12

u/nixcraft Mar 31 '18

I setup my own OpenVPN server on Linode $5 that does other stuff for me too. My goal is simple. When on public WIFI/4G/LTE stay safe. You can do that with your own VPS server and setup wireguard too. OpenVPN has free iOS/Android apps too.

-5

u/[deleted] Mar 31 '18

I don't think that would stop the man.

1

u/ragix- Mar 31 '18

It's a good way to protect against mitm attacks when your on untrusted networks, just make sure you route dns through the tunnel. A simpler method is to use sshuttle. I'm thinking I'm going to try wireguard to my server at home for when I'm roaming. I'm not so worried about lawful interception as I am about random people playing around on networks.

3

u/njbair Mar 31 '18

I'm not a Proton VPN user and I'm not endorsing their product, but I'd be wary of any service that adopts a tunneling protocol at version 0.0.x and claims it's secure.

I prefer my VPN provider's approach: support the established protocols while keeping a close eye on Wireguard and contributing financially to its development.

24

u/Duncaen Mar 31 '18

Hhahahaha nice joke, great root backdoor, great security.

https://github.com/ProtonVPN/protonvpn-cli/blob/master/protonvpn-cli.sh#L77

How do we know you or github doesn't change the script that you install as root without even checking a hash of the file?

5

u/be_reasonable_bro Mar 31 '18

This is an extremely good point, if a little coarse.

If any of the devs at ProtonVPN are listening, please make this installation more secure. This method is good enough for some things, but your security focus forces us to hold you to a higher standard.

0

u/[deleted] Mar 31 '18

[deleted]

1

u/be_reasonable_bro Mar 31 '18

I remember using similar solutions years ago when I had just begun learning how to deploy custom software. At this point, most of what I do is CI and fully automated.

What strategy would you use for something like this?

0

u/[deleted] Mar 31 '18

[deleted]

1

u/be_reasonable_bro Mar 31 '18

Thank you for taking the time to discuss this, you're clarifying a lot for me.

If my understanding is correct, the script here being retrieved with wget is what needs to have its hash checked. Seems pretty straightforward to bake the hash into the parent script and check it on the endpoint.

It also seems like a good idea to hash the parent script and have that string available for checking on the target machine.

If the child script's master branch is purposefully altered, it looks to me like the parent script would require an update to change the child's hash string. Is there a secure way to do this hashing without coupling the scripts so tightly, or should the script just be targeting a tag or stable branch anyway?

0

u/[deleted] Mar 31 '18

[deleted]

26

u/[deleted] Mar 31 '18

It's more the fact that they're not doing any assertion of what the file should be. Regardless of trust of github, if someone was using a dns resolver that say, returned another host that pointed to a different version of this script..

It's a very unlikely case, but I would be this to be more likely than github changing the contents of a plain text file.

6

u/ragix- Mar 31 '18

This is a good point and realistic attack scenario.

3

u/njbair Mar 31 '18

The HTTPS protocol in the URL would prevent that.

2

u/[deleted] Apr 01 '18

Oh good catch!

So even less likely to happen, since the CA would have to be compromised on the host as well. Still a possibility though.

0

u/[deleted] Apr 01 '18

[deleted]

1

u/Duncaen Apr 01 '18

I reported it and they added a checksum check.

24

u/Duncaen Mar 31 '18

Sorry that I also think about other users. I have read it and my conclusion is that its insecure, any reason not to warn other users?

Its a company that sells products for "security", yes why shouldn't they release software that is at least reproducible? As long as there is a script downloaded that is later executed as root, without verifying the file the script can't be considered safe.

0

u/[deleted] Mar 31 '18

[deleted]

58

u/Duncaen Mar 31 '18

You have the script right there.

Not really, I have the one script, but it downloads a file that can be changed without verifying it hasn't changed.

If you are so paranoid that you think Proton will backdoor you, just sha-256 your expected file and add the hash verification in the script yourself.

Sorry but its a company that sells "security" products, you don't think they wouldn't be targeted by 3 letter agencies, am I really that paranoid? I think it would be smart to reduce the risk, its simple.

And then try to not think about the other 100s of other apps you installed without checking 100% of the source and which may also backdoor you

Right, but this script is reviewable, I reviewed it and found something that is really bad practice.

0

u/[deleted] Mar 31 '18

[deleted]

0

u/Duncaen Mar 31 '18

The script targets Linux and Mac OS X. Sorry but I have to bash systemd for that, resolv.conf worked for years and is portable, at least they still support it as "fallback".

0

u/[deleted] Mar 31 '18

[deleted]

-1

u/Duncaen Mar 31 '18

Can you show me how, why would it work on MacOS and not on a linux system?

3

u/Werewolf35b Mar 31 '18

These people are absurd.

They don't even merge multiple emails from the same person into a conversation, but they do all this other ridiculous shit instead.

4

u/[deleted] Apr 01 '18

Protonmail does threading in the web client, Android app is lacking tho.