Video tutorial coming soon.
Deploy Headscale, an open-source implementation of the Tailscale control server. Build your own private mesh VPN network fully under your control.
Grab the automated bash script from GitHub to follow along.
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/vpn/headscale/headscale-ubuntu.sh
chmod +x headscale-ubuntu.sh
sudo bash headscale-ubuntu.sh
The script installs Docker, configures Headscale with your server domain or IP, and starts the control server and web UI.
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/vpn/headscale/headscale-ubuntu.sh
chmod +x headscale-ubuntu.sh
sudo bash headscale-ubuntu.sh
Open your browser and navigate to the Headscale UI:
http://YOUR-SERVER-IP:8090
Use the Headscale CLI or web UI to create a user namespace and generate a pre-auth key. Clients use this key to register with your control server.
Install Tailscale on each device and point it to your Headscale server. Run: tailscale up --login-server http://YOUR-SERVER-IP:8090 --authkey YOUR-KEY
| Port | Protocol | Purpose |
|---|---|---|
| 8090 | TCP | Headscale Control Server |
| 8091 | TCP | Headscale Web UI |
/root/docker/headscale/docker-compose.yml