Hacker News new | ask | show | jobs
by nelsonenzo 1303 days ago
this is cool and all, love me Tailscale for sure.

For this particular feature I like my own home rolled solution where I automated the process of spinning up a tiny ec2 server with an nginx proxy to a reverse ssh tunnel that goes back to my local machine. It gets a letsencrypt cert and modifies the route53 dns. All managed with a cli command and config file.

The other benefit is that it is completely unthrottled, which is particularly useful if your debugging some stupidly large react/vue website.

Im working on a feature that will enable basic-auth in front of it also, so at least a password would be required to send traffic to your local machine, if you wanted. Good for the "share your work" sort of scenarios.

tl;dr if you want any-subdomain.your-domain.com -> localhost:port, and you use AWS, try https://github.com/nelsonenzo/tolocal

1 comments

If you're having fun, don't let me stop you, but there are tons of open source projects to simplify this process: https://github.com/anderspitman/awesome-tunneling
Cool list, thanks for sharing.

Unfortunately none of those solutions are self hosted AND automated. They all seem to either use their own ifra, which will be slow & throttled, or require setting up a server and manually editing DNS.

I may try to get my own project added to that list though, so thanks for sharing!

We've done a lot of work on "self-hosted AND automated"

inletsctl - automates a VM with the inlets tunnel server preinstalled, including with HTTPS termination with Let's Encrypt, or pure TCP pass-through

inlets-operator - the same for Kubernetes Load Balancer services

Feel free to take a look at https://inlets.dev/

We talk a lot about the community adoption here in the first half -https://inlets.dev/blog/2022/11/16/service-provider-uplinks....

(I'm the original founder of inlets)

Well, yeah - For a minimum of $20/month just for the personal license!?! and THEN I need to still pay for my own infrastructure, AND run all the setup, etc.

mine is free and as easy as 1,2,3:

npm i -g tolocal

tolocal config -> answer the 3-4 questions about domain, vpc, etc.

tolocal apply. -> tunnel will come up to my own custom domain.