Setting up Headscale Video Commands

Headscale is an open source, self-hosted implementation of the Tailscale control server.

Running headscale on Linux Official Docs

Official Link to their docs headscale/running-headscale-linux.md at main · juanfont/headscale · GitHub

Command used in video

  • Enable bash completion headscale completion bash > /etc/bash_completion.d/headcompletion

  • Creating a namespace headscale namespaces create ltsdemo

  • Creating a pre auth key for pfsense headscale --namespace ltsdemo preauthkeys create --expiration 10m

  • Enabling routes for a node headscale routes enable -a -i 1

  • Connecting Linux Clients sudo tailscale up --accept-routes --login-server=https://headscaledemo.lawrencesystem.com

2 Likes

For the bash completion command you posted, it doesn’t seem to work on Debian 11.

So I looked into it and it seems like the bash completions are stored in /usr/share/bash-completion/completions/headcompletion.

This should work on Debian 11:

headscale completion bash | sudo tee -a /usr/share/bash-completion/completions/headcompletion;  . ~/.bashrc
1 Like