this post was submitted on 24 Jun 2023
20 points (100.0% liked)

Selfhosted

40767 readers
361 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

Due to having to expose local developments (in progress) publicly to interact with other third party services or to show them to other programmers I usually use ngrok in the free tier... Which is an absolute mess because it changes the URL on each command (nevertheless it works out of the box and very fast)...

I have also tried Localtunnel which it's great but hangs a lot. Anybody knows any self-hosted solution that giving a domain of my own can I expose via tunnels in subdomains?

all 11 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 2 years ago
[–] pacology 2 points 2 years ago

Could Tailscale work? You just need to host your own server using headscale if you don’t want to use their hosted solution.

[–] [email protected] 1 points 2 years ago

You could use caddy to reverse proxy your apps. You can either get a domain or use something free like duckdns and use subdomains

[–] [email protected] 1 points 2 years ago

Self-hosted? Ssh reverse port forwarding (-R) to a vps with a public IP.

Free but not really self hosted? Cloudflare Tunnel

[–] [email protected] 1 points 2 years ago

I know this is not a helpful comment at all, but I wrote a tunnelling service similar to ngrok for my ex-company that was used by thousands of tech support experts every day on hundreds of thousands of devices. I was very very very close to getting it open sourced, but sadly the CTO denied my request. It was quite the tragedy.

That said, you can open reverse tunnels using ssh -R quite easily if you have some sort of server sitting on the internet.

[–] [email protected] 1 points 2 years ago

i have heard good things about https://github.com/pgrok/pgrok . also they have a link to huge list of various tunnels - maybe you will find something you need there.

[–] iodine0320 1 points 2 years ago
[–] [email protected] 1 points 2 years ago

Why not just let your local server through the firewall? Alternatively, I've used ssh -R for something like this before.

[–] [email protected] 1 points 2 years ago

I did something similar in my homelab using frp and traefik. Traefik picks up configuration in its normal way and handles all inbound traffic, doing SSL termination locally even. frpc (client) sits next to Traefik, dials out to my frps (server) machines, and passes incoming connections to Traefik via the proxy protocol. I point my DNS at the frps machines in the cloud and they are configured to let the clients connect to them and take over basically any port they want.

I think there are ways to get frp to do basically exactly what you want, but I use it for a slightly different case.

[–] [email protected] 0 points 2 years ago

I'd quite like an answer to this too for work reasons.