this post was submitted on 12 Jul 2023
12 points (87.5% liked)

Selfhosted

40132 readers
600 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 1 year ago
MODERATORS
 

Can I do what the title said? It could be useful when I’m on a sketchy WiFi. I’m asking as I’m already using ZeroTier to access my home server and this could be another nice use.

top 3 comments
sorted by: hot top controversial new old
[–] pacology@lemmy.world 8 points 1 year ago (1 children)

Yes. It’s a default option for Tailscale. You just need to run the Tailscale client on the server with the exit node option, enable it in the web portal, and then tell your phone to use the exit node.

[–] insert@kbin.insertapp.net 4 points 1 year ago

The server you want to exit node out of has to have it explicitly enabled as well

[–] jmp242@sopuli.xyz 3 points 1 year ago

All you really have to do with Zerotier is set up your network routing appropriately, and the end server would do reverse NAT, presumably via IPTables in most situations. Zerotier is just a virtual cable, everything else is the same as if you plugged in an ethernet cable between the two endpoints and you can run network services there just the same. Oh, you do have to enable the ZeroTier client to route public IPs for this to work.