19 ms·
Commercial enterprise VPN products are an open sewer, and there aren't any, from any vendor, that I trust. I don't like OpenVPN or strongSwan, but you'd be bett
by tptacek 7y ago
Commercial enterprise VPN products are an open sewer, and there aren't any, from any vendor, that I trust. I don't like OpenVPN or strongSwan, but you'd be better off with either of them than you would be with a commercial VPN appliance. The gold standard, as ever, is Wireguard.
- ihuman 7y agoWhy do you prefer Wireguard over Openvpn?
- throwaway2048 7y agoWireguard is an extremely simple protocol, basically as simple as it is possible for an encrypted VPN protocol to be. OpenVPN uses TLS (in TCP mode) and a custom protocol based off of TLS in UDP mode, its design is vastly over complicated by the use of x.509 certificates, and in general is just kind of ugly and kludgy (and slow).
- tptacek 7y agoIt's "simple" in a way that is very difficult to achieve, and in many ways more modern than OpenVPN. The better word might be "clean".
- kachnuv_ocasek 7y agoThere's also a formal proof of Wireguard's security (not that it means much in practice, but I find it extremely interesting): https://prosecco.gforge.inria.fr/personal/bblanche/publications/LippBlanchetBhargavanEuroSP19.pdf https://prosecco.gforge.inria.fr/personal/bblanche/publicati...
- c22 7y agoI spent over two days setting up OpenVPN the first time I used it and less than an hour the first time I set up Wireguard. Wg seems a bit more reliable too, sometimes my OpenVPN sessions would time out and require manual intervention, but since switching to wireguard it always seems to "just work".
- big_chungus 7y agoOthers pointed this out already, but I'd like to second the simplicity. It's much, much easier to set up wireguard, especially compared to the mess that is openvpn. I had to use algo to set up openvpn originally, and God help you if you're not on ubuntu. Secondly, wireguard is faster. If you're dealing with lots of users, CPU could be limited; in such environments, wireguard has allowed me up to fifty percent more throughput than with openvpn. It's also newer and probably not as optimized, so may get better. Finally, the new tap/tun driver on windows is orders of magnitude better than the openvpn one.
- deleted 7y ago[deleted]
- eeZah7Ux 7y agoWireguard codebase is tiny at it has been reviewed by a lot of skilled eyeballs.
- labawi 7y ago> it has been reviewed by a lot of skilled eyeballs. Any details on this? It's probably better than the mess of other code bases, but wireguard is in active development, so even if secure and bug-free a few months ago, it would not necessarily imply secure now.
- freedomben 7y agoOld thread, but I also really appreciate the simplicity. Configuring wireguard takes a little knowledge of routing (either iptables or firewalld, etc) but is vastly simpler to understand compared to OpenVPN. When things aren't working, there's a lot fewer thing to check. Oh and it's blazing fast. I often times get better connection speeds when connected to the wireguard VPN than not, presumably because the TCP overhead all happens in the cloud rather than locally where latencies are much higher and bandwidth is more limited. The roaming of Wireguard also makes it completely seamless. I'll often forget I'm even connected for days at a time.
- numbsafari 7y agoThe problem is, in a lot of enterprise environments, you can’t rely on a tool that lists itself as non-production ready, and therefore doesn’t / won’t have CVE, etc. Scroll to the bottom of the wireguard.com site. It’s right on the tin, so to speak. I’m very excited for wireguard, but have some empathy for large enterprises on this one.
- snagglegaggle 7y agoEmpathy for a self-inflicted problem? Why?
- LoveKebabble 7y agoHe just explained it. To add on to his points, there are often times corporate policies (You can argue the legitimacy of them or not) that absolutely mandate that you cannot run beta/non-fully released software in production. One of the last places I worked last ensured that all of our firewall's (and other appliances I'm assuming, they were not my areas though) were an update or two behind (assuming no security vulnerabilities were identified) to ensure stability.
- SteveNuts 7y agoBecause they undergo audits that have arbitrary rules, sometimes making it harder or impossible for them to use tools like wireguard.
- snagglegaggle 7y agoYes, I know that is the problem, but that doesn't make it any less self-inflicted.
- campee 7y agoHow is having to conform to an audit performed by an external party as required by regulatory agencies or legislation "self-inflicted"?
- GhettoMaestro 7y agoLots of loose language in your post. Show me a FIPS140-2 Wireguard implementation.
- tgragnato 7y agoI could be wrong, but it’s superseded by FIPS140-3. Anyway, compliance doesn’t necessarily imply security.
- GhettoMaestro 7y agoUnless you are purposely trying to pedantic, one should know that FIPS140-3 just came out. You can't even search the Cryptographic Module Validation Program (CMVP) tool for FIPS140-3 standard level yet. FIPS140-2 for all practical purposes is the current standard to measure against. And if you really are negating FIPS140-X and what it means to large organizations and government entities... you should do some reading to understand why it exists. It isn't standards hand-waving. It is fairly in-depth and aims to ensure your cryptographic primitives and low level operations are not totally fucked out of the box. It doesn't solve most security issues by a long shot, but it does try to give you some minimum levels of assurance that it doesn't totally suck crypto operations-wise. Anyways - I up-voted your reply regardless because I wanted to engage in some meaningful dialogue, and I believe we have. Cheers!
- compuguy 7y agoIt is great that FIPS140-3 has finally become effective. The previous standard, was getting long in the tooth (FIPS140-2)...
- antpls 7y agoThat post yesterday : https://news.ycombinator.com/item?id=21147865 https://news.ycombinator.com/item?id=21147865 shows a side channel attack on smartcards. In the links we can see the FIPS140-compliant affected hardwares. Maybe it contributes to show that FIPS140-02 is not as much a reference than it used to be?
- 7y ago
- mr_puzzled 7y agoWhat do you think about cloudflare's vpn offerings? 1.1.1.1 and cf access?
- fulvous 7y agoI don't know about them really but Cloudflare Warp is using the Wireguard protocol.
- tptacek 7y agoMy opinion is that Cloud Flare forked WireGuard, taking Jason Donenfeld's design work without compensation or, from what I can tell, even a sincere thank-you, and built something from it that isn't fully compatible with WireGuard itself. I hope someone else builds a real Rust WireGuard and crushes them with it.
- deleted 7y ago[deleted]
- AceJohnny2 7y ago> taking Jason Donenfeld's design work without compensation That's the risk with open-source work though, isn't it?
- tptacek 7y agoI'm not saying Cloud Flare committed a crime.
- kdtsh 7y agoThere's nothing in the GPL about compensation or saying thanks. This is part and parcel of licensing your software in a way that respects user freedom. Also, I doubt Cloudflare forked WG, because 1) that could very well violate the terms of GPLv2 if they don't make the source available (at the very least, the client source code which utilises code lifted from WG would have to be open source), and 2) their offerings don't seem to be as good or as fast as WG, but YMMV.
- tcd 7y agoWireguard isn't even stable yet - it's not even been mainlined by the Kernel which is one of the main selling points that it will eventually be included. It's alpha level software at this point and should not be relied upon or even trusted.
- big_chungus 7y agoI've been using it for almost a year with literally zero issues. The closes to a problem was the lack of a windows client (though there was a third-party option a used for a while), which is now fixed. If this is alpha-quality software, I look forward to seeing like what the beta and release versions look.
- Enginerrrd 7y agoI'm also using it, but the reality is that the Wireguard team states it's not production ready for good reason. If your threat model includes state level actors or you are a high value target to sophisticated cracking groups, I wouldn't use wireguard yet. A lot of cryptographic protocols have come and gone, once thought secure. And 10-100x as many implementations of a specific protocol have fallen to mistakes, even built on secure protocols. That said, if your threat model consists of relatively low level threats, like blocking your ISP from spying on you to sell your info to advertisers, I'd highly recommend wireguard. It works really fast and well.
- tptacek 7y agoI don't think you'll find a lot of software or cryptographic security engineers who would tell you that you'd be more secure using OpenVPN or strongSwan instead of WireGuard, since the reverse thing is actually true.
- labawi 7y agoDo you know anyone who can say specifically what kind of security wireguard provides? Not the NoiseIK Wireguard IKE protocol proven secure stuff¹, but in practice, what can it be relied on to prevent and what does it not prevent? For example, copying ECN bits was documented only after I bugged Jason about it. In the whitepaper it is mentioned 0 times. I tried asking on the mailing list, but got nowhere. ¹ The protocol is the foundation. But just because an idealized part is proven secure under some assumptions, doesn't mean the whole is secure, implemented as described or suitable for a particular purpose.
- pwg 7y ago> Commercial enterprise VPN products are an open sewer, Commercial enterprise VPN products exist for one reason: To allow the enterprise security office to tick off the checkbox on the quarterly compliance forms that essentially says: "using a VPN to provide secure communications". Security is only a secondary consideration, if it is even considered at all.
- mc32 7y agoHonestly, isn’t 90% of compliance like that? Checking boxes...
- emn13 7y agoThe thing is, people are very good at checking boxes, and not very good at remembering important things. So while it may seem inane, plain old checking boxes is almost certainly part of a good strategy for dealing with tedious, repetitive tasks where one error can cause serious issues - and this kind of security is probably one of those. Obviously, it's not enough, nor an excuse to turn off your brain - but it's a pretty proven behavioral pattern.
- mc32 7y agoSure I mean it’s a lot of CYA regulation-wise. Because if you chose a solution which is arguably better but not part of the list and the one on the list which is a worse solution isn’t checked, well you’d better have your resume ready when something happens.
- ohashi 7y agoFlying is a great example of 'checking boxes' saving lives.
- deleted 7y ago[deleted]
- paulddraper 7y agoHaving worked a lot with security compliance, I'll say there are two types of things you do: 1. The things for compliance. 2. The things for security. Only rarely does something fit in both categories.
- xoa 7y ago>The gold standard, as ever, is Wireguard. Not disagreeing with you about the state of commercial VPN products, but regarding WG specifically. Something I don't see in the other replies just yet is that Wireguard doesn't yet have an ecosystem around it, but is designed for that in a good way. By which I mean, it follows the Unix philosophy of focusing on one specific task and doing it very well, and it has succeeded in that admirably even at its early stage of development. And long term I think that will result in better, more secure and more reliable solutions. But in the immediate term solutions/ecosystems around it don't exist and I think that makes for legitimate scalability problems for anyone who doesn't want to roll their own infrastructure. It very explicitly doesn't want to deal with integrating with key management/HSMs/AD policies/whatever. Eventually WG itself will be used along with those, and there will be nice GUIs on it, and so on. Hopefully it'll simply become the standard for VPN products to rely upon and the world will be a better place for it. But in these early days it can't slot in everywhere because it's not even meant to. That'll take more time, maybe kernel mainlining (maybe after the WG port to the crypto API Jason announced last week?) and integration with the *BSDs. It's still in a fairly significant growth phase.
- wahern 7y ago> It very explicitly doesn't want to deal with integrating with key management/HSMs/AD policies/whatever. If you look at the list of vulnerabilities, they're all precisely in those parts of the stack that Wireguard doesn't address. So what value is Wireguard providing, exactly? It's a beautiful protocol, but security isn't a beauty contest. It's easy to create a beautiful solution when you avoid dealing with the difficult problems.
- xoa 7y ago>If you look at the list of vulnerabilities If you look at THIS list of vulnerabilities, sure. That's not an exhaustive list of every problem standard VPNs have had though, you understand that right? >So what value is Wireguard providing, exactly? Even ignoring vulnerabilities entirely, OpenVPN and the like are full of footguns and are very, very easy to fuck yourself with. You talk about the value of practicality and solutions, which is very true, and that's just the point. One of the core aspects of modern security practice is making it hard to fuck up, the few knobs and dials the better. For example, older protocols still have obsolete awful crypto options that you shouldn't use, but precisely because they exist as choices at all you have to worry about misconfiguration or classes of issues like downgrade attacks. There are plenty more, like if you remember back during Logjam, tons of SSH/VPN/HTTPS servers were using identical prime numbers for Diffie-Hellman key exchange. WG aims to be a better foundation for the VPN component of things. Contrary to your assertion, the problem it deals with isn't trivial and does matter. Having something that is focused on that rather then part of a gigantic blob makes it easier to verify, and also makes whatever auth and other systems it's ultimately tied into easier to verify. Also just plain lower overhead. I mean, I'm barely touching on things here but there are good reasons a lot of people are enthusiastic about its potential.
- Thaxll 7y agoAnnyConnect from Cisco is ok and I'm pretty sure wiedly audited.
- unethical_ban 7y agoI am sure you have valid crypto concerns, but outside of FUD, is there anything specific you have against, for example, GlobalProtect? Or any particular platform, for that matter?
- eeZah7Ux 7y agoProblem #1: they are closed source. Good luck verifying their security. Problem #2: it is in the best interest of nation states to be able to break the VPNs and it's in the best interest of large vendors to quietly cooperate with the government.
- ttul 7y agoIf you are worried about your secrets being revealed to a nation state, then chances are you shouldn’t be putting any of them over the public internet - VPN or not.
- capitol_ 7y agoThere is a large amounts of secrets that fall between the two extremes 'not very secret at all' and 'should never be spoken of or touch a digital device'. Corporate espionage backed by nation state actors is a real thing, and there is nothing wrong with wanting to secure yourself against it while running a normal business.
- eeZah7Ux 7y agoThat's a big strawman.
- faitswulff 7y ago> I don't like OpenVPN or strongSwan, but you'd be better off with either of them than you would be with a commercial VPN appliance. How does Streisand compare?
- tptacek 7y agoI would avoid Streisand and recommend Algo, which does approximately the same thing, but safer.
- deleted 7y ago[deleted]
- elcritch 7y agoWireGaurd keeps getting mentioned as the new alternative to OpenVPN, but it sounds like it isn’t available on a lot of BSD’s and doesn’t have much for GUI’s and the like for configuration. Why would I want to use WireGaurd compared to something like ZeroTier as a VPN layer? Maybe I’m more of a programmer and the notion of a decent api controller for authentication seems nice.
- tptacek 7y ago"Isn't available on a lot of BSDs?" Like a lot of people, I'm running it full-time on macOS, and there are FreeBSD and OpenBSD ports.
- elcritch 7y agoThat’s good to know. I’m going off some other comments which made it sound like it’s not available on BSD’s. It seemed strange BSD’s wouldn’t be available but I know little about WireGaurd and a little curious how it compares to other systems out there that I’m familiar with.
- lukasm 7y agoWhat do you recommend for a personal use?
- jedisct1 7y agodsvpn https://github.com/jedisct1/dsvpn https://github.com/jedisct1/dsvpn