digitallyrefined.github.ioTailscale & Headscale - Setting up your own self hosted remote accessDigitallyRefined2023-06-01 | Warning: Mentions of this being a free service in the video below are now no longer correct:
• To launch a server, a credit card is now required (a temporary charge between $1-$10 will be taken to verify it) • Fly.io no longer offer free dedicated IPv4 addresses, these are now charged at $2/month for each IPv4 address. • Fly.io gives new accounts $5 of free trial credit and Hobby plans cost $5 per month.
So in theory as long as you don't exceed the $5 free trial credit, this setup should still be free. Make sure that you check their current free allowances, as they may have changed since this guide was last published.
This guide will step through setting up your own self hosted private and secure remote access using Tailscale clients along with a self hosted Headscale Docker container.
0:00 Intro 1:18 Tailscale intro 2:48 Headscale intro 3:15 Networking and double NATs 4:32 Install & setup process 6:13 Fly.io command line tools 7:06 Fly.io tunnel 8:21 Deploying the tunnel 9:18 WireGuard peer config 10:11 Installing Docker 10:36 Headscale config 11:35 Headscale Docker compose 12:51 Adding an Android device to the network 15:26 Adding a Linux server to the network 16:45 Routing & local access 17:56 Adding a Windows machine 20:06 Notes on IP address and domains