Live data from Hacker News

Tunnelmole, an ngrok alternative (open source)

softwareengineeringstandard.com

11–20 of 87 posts

Re: Tunnelmole, an ngrok alternative (open source)

#12
I've been self-hosting https://github.com/fatedier/frp on my little box, and it feels insane to think of the times where I didn't have it set up. There are many choices in the space as others pointed out, but frp's capabilities and lightweight packaging blows all other setups out of the water. I placed mine behind nginx with Let's Encrypt for SSL support. Hella fresh!

Re: Tunnelmole, an ngrok alternative (open source)

#13

> sudo npm install -g tunnelmole Why not simply use npx? npx tunnelmole

(I'm no Node expert, so this might be flawed, but) presumably, because they hope that you'll use the app more than a few times, and so the one-time overhead of typing `sudo npm install -g` once will outweigh the repeated requirement to use `npx` every time you invoke it. Or, taking a less mechanistic and more usability-focused approach - because the intention is for it to be seen as a fundamental tool, just as accessible as grep or cat or less, rather than "hidden" behind npx.

Re: Tunnelmole, an ngrok alternative (open source)

#14
post #8

I maintain a list of similar tools here: https://github.com/anderspitman/awesome-tunneling I'm not sure there's a single class of software that's been implemented more times than ngrok-style tunneling. I keep finding more and more. Honestly it's a really fun exercise. Fairly challenging, but well within the reach of a single developer. I believe I'm currently working on my 5th incarnation.

> I'm not sure there's a single class of software that's been implemented more times than ngrok-style tunneling. I keep finding more and more.

AFAIK ngrok was the first widespread implementation of it, and there was such a sheer lack of it before that everyone started working on their own implementations at once and now we have an abundance.

(At least that's my personal theory.)

Re: Tunnelmole, an ngrok alternative (open source)

#16

Note that server source code contains a feature to capture all traffic that you send over it: https://github.com/robbie-cahill/tunnelmole-service/blob/c58... I would only use the self-hosted version.

In the commit you linked this function is only ever called once and seems to just capture that a connection was initialized from a clientId to a hostname https://github.com/robbie-cahill/tunnelmole-service/blob/c58...

Re: Tunnelmole, an ngrok alternative (open source)

#17

Note that server source code contains a feature to capture all traffic that you send over it: https://github.com/robbie-cahill/tunnelmole-service/blob/c58... I would only use the self-hosted version.

In the commit you linked this function is only ever called once and seems to just capture that a connection was initialized from a clientId to a hostname https://github.com/robbie-cahill/tunnelmole-service/blob/c58...

this is correct. Its simply logging the connection so I can see server load/usage stats. There is other code that logs the NodeJS version and OS, this is so I can make better decisions on which NodeJS version I should get TypeScript compile to. The second log can be turned off however, instructions are in the README.

Re: Tunnelmole, an ngrok alternative (open source)

#18
post #4

It's not mentioned anywhere in this blog post, but the project has a website at https://tunnelmole.com/ and a github repo at https://github.com/robbie-cahill/tunnelmole-client EDIT: And, actually, I don't think this is really an ngrok alternative. Unless I'm mistaken it looks like it only supports HTTP, whereas ngrok is a generic TCP proxy. (Albeit that ngrok does not support TCP half-close because it treats it like…

TCP is something i'm thinking about. It is possible with sockets and different port numbers opening/closing on the server side, it will take some work however. Perhaps you might be interested in contributing?

Re: Tunnelmole, an ngrok alternative (open source)

#19
post #7

Many alternatives: SSH reverse tunnels, Cloudflare tunnels, various reverse proxies like FRP, Tailscale funnel (probably for short lived light connections), ngrok, etc

These can work but all take a bit more work however than running a single command, including Cloudflare tunnels which according to their docs, requires you to make a DNS record on your domain. I use SSH reverse tunnels for some things where I need tighter security.

Re: Tunnelmole, an ngrok alternative (open source)

#20

Also, Local Tunnel: https://localtunnel.github.io/www/

I tried to test this out. But got blocked when I visited my Public URL by some security warning page around phishing? Which is fair enough, but it wasn't clear to me how I could remove that and get the URL to point to my local server like I wanted. Also, their GitHub project has not been maintained for some time.
Post reply on HN