dndw: headscale + tailscale
“Freedom is the freedom to say that
two plus two makefour . If that is granted,all else follows .”— George Orwell, 1984
that’s great! is there any way to self-host a server?
That’s a great question!
I actually do
what do I need to get started?
You’re going to want
- A VPS or server (I use DigitalOcean ↗)
- A domain
i have those things. how do I get started?
- Allocate a new VPS and assign a
static IP . Link this IP to your desired subdomain using anA record (if you’re using Cloudflare, deselectproxy ). - Install Headscale ↗
- Make the following changes to the config file:
- Set
server_url: https://your.domain.io:443
- Set
listen_addr: 0.0.0.0:443
- In derp, enable
server and setipv4 to yourassigned static IP - Set the acme_email and
tls_letseencrypt_hostname: your.domain.io
- Set
- Restart Headscale using
sudo systemctl restart headscale
- Install
Tailscale on the server - Register the server as an exit node using
sudo tailscale up --login-server https://your.domain.io --advertise-exit-node
Log the server in using aseparate shell - Run
sudo tailscale set --advertise-exit-node
and thensudo tailscale down
- List the routes using
headscale routes list
- For
every named node , runheadscale routes enable -r <id>
for its ID. - Start Tailscale using the
previous tailscale command
how do I connect?
On your sudo tailscale up --login-server https://your.domain.io --exit-node <node-name>
.
Log the client in.
The
privacy ~ freedom
To add a footnote, I’d like to assert that
Tailscale gives you