TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Encrypted VPN in 2k lines of Go

123 pointsby twitchyliquid64over 7 years ago

11 comments

arianvanpover 7 years ago
Related: Wireguard is a new VPN for linux in 4k lines of C <a href="https:&#x2F;&#x2F;www.wireguard.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.wireguard.com&#x2F;</a><p>the model of wireguard has been proven correct by formal methods. Builds on modern crypto, and they kept code short for auditing purposes.
评论 #15408338 未加载
评论 #15409318 未加载
sethammonsover 7 years ago
The project structure is fighting againts norms. The author should not have src checked in. They should have their package as the root so it is &quot;go get-able&quot; and does not require the user to alter their GOPATH. To ensure that the proper dependency versions are present, they should vendor the dependencies. I would have opened an issue on GitHub for them, but I am not signed in currently. Cheers on releasing a neat tool.<p>EDIT: got off my mobile and to a laptop and submitted <a href="https:&#x2F;&#x2F;github.com&#x2F;twitchyliquid64&#x2F;subnet&#x2F;issues&#x2F;3" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;twitchyliquid64&#x2F;subnet&#x2F;issues&#x2F;3</a>.
评论 #15409453 未加载
评论 #15409249 未加载
sAbakumoffover 7 years ago
Is it just me or Golang started gaining momentum recently? More and more related articles&#x2F;OSS projects&#x2F;HN links show up every day.
评论 #15407923 未加载
评论 #15407893 未加载
评论 #15408329 未加载
Kurtz79over 7 years ago
Nice, I&#x27;ll try it out once I get home.<p>A couple of question:<p>- What is the throughput once you fixed the issues ?<p>- If you were to implement a client for mobile (iOS, Android), how would you go about it ? (Just theoretically, I understand it&#x27;s a personal project)<p>I&#x27;m using openvpn on a cloud server and one of the big advantages is the availability of mobile client apps.
评论 #15409468 未加载
Retr0spectrumover 7 years ago
sshuttle is another great tool with a similar use case. One advantage is that it doesn&#x27;t require any server setup at all, as long as you have ssh access.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;sshuttle&#x2F;sshuttle" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sshuttle&#x2F;sshuttle</a>
评论 #15410223 未加载
评论 #15408587 未加载
hamandcheeseover 7 years ago
In other comments the author seems to already be aware, but for anyone wondering why TCP over TCP is less than ideal, this is a good read: <a href="http:&#x2F;&#x2F;sites.inka.de&#x2F;bigred&#x2F;devel&#x2F;tcp-tcp.html" rel="nofollow">http:&#x2F;&#x2F;sites.inka.de&#x2F;bigred&#x2F;devel&#x2F;tcp-tcp.html</a>
e12eover 7 years ago
Am I reading this correctly in that this uses TLS - and ends up tunneling TCP and UDP over TCP?
评论 #15409341 未加载
astockwellover 7 years ago
Does this work on Windows? I see the TODO item &quot;Get working on OSX&quot;, but if this project could bring x-compatibility on the big 3 platforms (thanks Go!), that could really set it apart.
评论 #15409288 未加载
userbinatorover 7 years ago
Upon reading the title I wondered &quot;would anyone ever create a VPN client that <i>doesn&#x27;t</i> use encryption?&quot; and thought, with the &quot;2k lines&quot; as additional evidence, that it was the <i>source code</i> which was somehow encrypted&#x2F;obfuscated to e.g. prevent censorship...<p>I was also expecting to see a single file at that line count, but then again I&#x27;m not really familiar with Go. Is this style of &quot;many tiny files in multiple nested directories&quot; common&#x2F;expected for Go? I know it&#x27;s rather common in many other languages, but also not what I expect when I see &quot;Simple&quot; or explicit mention of a low line count.
评论 #15408437 未加载
评论 #15408269 未加载
评论 #15408356 未加载
_joelover 7 years ago
I guess the main question is why should I use&#x2F;trust this above OpenVPN&#x2F;Tinc or WireGuard etc?
评论 #15409381 未加载
评论 #15409588 未加载
评论 #15408612 未加载
评论 #15408159 未加载
perlpimpover 7 years ago
language used in the project is Erlang, not Go.
评论 #15407948 未加载
评论 #15407960 未加载