Re:Show HN: Encrypted VPN in 2k lines of Go
by _joel on Thursday October 05, 2017 @05:37AM
(#15407803)
I guess the main question is why should I use/trust this above OpenVPN/Tinc or WireGuard etc?
[ Parent
| on HN ]
Re:Show HN: Encrypted VPN in 2k lines of Go
by twitchyliquid64 on Thursday October 05, 2017 @10:21AM
(#15409381)
I'm glad you're asking these kinds of questions, they need to come up more often especially in a software-supply-chain context.
I am a strong advocate of the saying 'trust but verify'. I believe you should closely audit whatever OSS software you are looking at using in light of your threat model.
To get round to your question: Why should I use subnet over OpenVPN/Tinc etc? That decision is entirely your prerogative. Subnet is small (quick(er) to audit), easy to understand, and has the bare minimum functionality needed to implement a VPN with full mutual authentication. OpenVPN and others have far more features and are almost certainty xx% faster. Where you want to draw the line is up to you.
Re:Show HN: Encrypted VPN in 2k lines of Go
by thyrsus on Thursday October 05, 2017 @10:48AM
(#15409588)
It appears all the ISPs I use have figured out how to kill OpenVPN after a few Mbytes have passed, resulting in annoying VPN service interruptions and restarts (I need to figure out how to restart it automatically) - and the browser reacts to the interrupted transfer by restarting it on the now VPNless network connection. Obscurity might be a defense against this (but wouldn't be if one were targeted instead of getting caught in a driftnet).
Re:Show HN: Encrypted VPN in 2k lines of Go
by _joel on Friday October 06, 2017 @10:24AM
(#15416996)
That's not been my experience with OpenVPN. It's setup to reconnect to the VPN and only route traffic via the VPN (separate box, actually a repurposed old laptop). Take a look at ping and ping-restart options
Re:Show HN: Encrypted VPN in 2k lines of Go
by thyrsus on Friday October 13, 2017 @02:44AM
(#15463678)
Thanks for the suggestions, but decreasing the ping interval only made the VPN fail faster, and there was no difference in behavior between ping-restart and ping-exit :-(.
Re:Show HN: Encrypted VPN in 2k lines of Go
by ivanfon on Thursday October 05, 2017 @08:35AM
(#15408612)
Because you can easily read and understand the code.
Re:Show HN: Encrypted VPN in 2k lines of Go
by dsacco on Thursday October 05, 2017 @08:54AM
(#15408717)
For what itβs worth, this only really applies to a comparison against OpenVPN or IPSec. WireGuard has similar code complexity and size, and is approximately the same when compared against the incumbent VPN options.
Re:Show HN: Encrypted VPN in 2k lines of Go
by zokier on Thursday October 05, 2017 @11:58AM
(#15410192)
I don't think the comparison to Wireguard is apples-to-apples. Wireguard implements it's own semi-custom cryptosystem (Noise) whereas subnet rides on top of Go standard TLS implementation. So depending on how you view things, Wireguard is either much simpler (if you compare to the whole TLS stack) or much more complex (if you assume Go TLS to be reliable/trustworthy)
Re:Show HN: Encrypted VPN in 2k lines of Go
by zx2c4 on Thursday October 05, 2017 @12:02PM
(#15410235)
Maybe I misunderstood your comment, but WireGuard is less than 4k LoC, which is a few orders of magnitude smaller than OpenVPN or IPsec.
Re:Show HN: Encrypted VPN in 2k lines of Go
by dsacco on Thursday October 05, 2017 @01:25PM
(#15410863)
Yep you misunderstood, I was saying WireGuard has similar code complexity to the Go VPN implementation linked here :)
Re:Show HN: Encrypted VPN in 2k lines of Go
by hyperbovine on Thursday October 05, 2017 @06:56AM
(#15408159)
Because your government banned those.