DocsRun it
Reaching OwnWing away from home: a tailnet
OwnWing opens nothing to the internet by default: your phone syncs when it’s on your home network. To sync from anywhere without opening your router, join your devices and the server in a private network of their own: a tailnet. Tailscale is the easy one (free for a home; its open-source control server Headscale works too), and any WireGuard VPN home works the same way.
What changes: only the address your names point to. OwnWing, its certificates and the apps stay as they are.
1. The server joins the tailnet
On the server (or the NAS: Tailscale has a package for most of them):
curl -fsSL https://tailscale.com/install.sh | sh
sudo tailscale up
tailscale ip -4 # the server's tailnet address, 100.x.y.z
Turn off key expiry for the server in Tailscale’s admin console (Machines › … › Disable key expiry), so it never drops off.
2. Your names point at it
Every app is a name under your domain (id.example.com, photos.example.com, …). Devices must
resolve them to an address they can reach:
| Choice | How | Good for |
|---|---|---|
| The tailnet address everywhere | the wildcard record *.example.com → the server’s 100.x.y.z, in your domain’s public DNS |
the simplest: one answer at home and away (at home, devices use the tailnet too, so each runs Tailscale) |
| Split DNS | your home DNS (router, Pi-hole) answers the LAN address; Tailscale › DNS › Add nameserver › Custom, restricted to example.com, answers the tailnet address |
home traffic stays on the LAN |
A tailnet address in public DNS reveals nothing useful: only devices in your tailnet can reach it.
3. Certificates
- The install’s own certificates (the default): nothing changes. Each device trusts the root
once (
./ownwing ca), at home or away. - Let’s Encrypt needs ports 80 and 443 reachable from the internet, which a tailnet-only server isn’t: keep the install’s own certificates, or put OwnWing behind a proxy you already run that gets certificates another way (install.md).
4. Your devices join
Install Tailscale on each phone and computer and sign in to the same tailnet. On a phone, turn on its VPN on demand (iPhone: Tailscale › Settings › VPN On Demand; Android: Settings › Network › VPN › Tailscale › Always-on VPN) so the OwnWing app, the phone’s calendar and contacts, and photo backup reach the server whenever they need it.
Check it
From a device away from home (a phone on mobile data, with Tailscale on):
https://id.example.com opens OwnWing ID's sign-in page
If it doesn’t load: tailscale ping <server> from the device, then check the name resolves to the
address you chose (nslookup id.example.com). troubleshooting.md has more.
Sharing links
Share links from Files and Photos open on your home network and on the tailnet only. Someone outside both can’t open them: invite them to your tailnet (Tailscale › Share a machine), or give them an account at home.