Show HN: Mr2.js – Expose local servers to external networks
github.com
github.com
So how about a ngrok like service where you just open a page to forward local traffic ? The vulnerability we've seen yesterday, "A web page can see your local servers", suggests it's doable. The webrtc code needs to open a HTTP connection to the local server. JS code would proxy all requests coming through an external hostname to this local server. Is this doable ?
"I can see your local servers" https://news.ycombinator.com/item?id=20028108
That is the exact reason I made sish (ssi.sh). It uses ssh to do local port forwarding and can be self hosted with authentication. It's open source[0] and the only thing you need locally is SSH (which is included by default on most systems).
ssh -R 80:caddy:80 -R 443:caddy:443
So all the networking happens within the network created by docker-compose.The novelty of this, I think, is that it provides both client and server programs. So that instead of paying for a service like ngrok, you can deploy this on your own. At least, that was my takeaway.