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.

H2tunnel – ngrok alternative for Node.js in 600 LOC and no dependencies

45 pointsby boronine7 months ago

3 comments

boronine7 months ago
I was able to keep my code small by leveraging existing protocols: TLS for authentication and HTTP2 for multiplexing, stuffing simultaneous HTTP1 requests onto a single TLS-encrypted tunnel socket.<p>Hopefully I&#x27;ll make it on the hall of fame [1] :)<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;anderspitman&#x2F;awesome-tunneling">https:&#x2F;&#x2F;github.com&#x2F;anderspitman&#x2F;awesome-tunneling</a>
anshumankmr7 months ago
Awesome. My company had blocked Ngrok, will try this out when I am back from my leave.
评论 #41867719 未加载
评论 #41867663 未加载
评论 #41868385 未加载
评论 #41867606 未加载
throwaway2016a7 months ago
Clearly a lot of work went into this so kudos for that.<p>I do think it missing the point a tiny bit though. For me the primary use of Ngrok is to automatically get sub a domain with TLS and this seems to be outsourcing that to Caddy. And also I need to run a server. If I was going to run a server and run caddy I&#x27;d probably just use SSH -L directly.<p>Also SSH -L is a TCP&#x2F;IP level tunnel so I&#x27;m missing something regarding why the HTTP&#x2F;2 multiplexing is necessary vs just using the tunnel as is.
评论 #41874415 未加载