Tailscale on Truenas

TrueNAS SCALE really make it hard to install Tailscale but now that I've figured it out, I'll share it with everyone.

  1. Head to your TrueNAS dashboard and visit System/Tunables
  2. Add a new Tunable with the following settings:
    • Variable: tailscaled_enable
    • Value: YES
    • Type: rc.conf
    • Enabled: checked
  3. Click save
  4. Open a shell
  5. Run the following commands to enable the pkg command and install tailscale:

    sed 's/enabled: yes/enabled: no/' /usr/local/etc/pkg/repos/local.conf
    sed 's/enabled: no/enabled: yes/' /usr/local/etc/pkg/repos/FreeBSD.conf
    pkg install tailscale
    
  6. Start the Tailscale daemon and make sure it starts on reboots:

    service tailscaled enable
    service tailscaled start
    
  7. Login to Tailscale

    tailscale up
    

Congratulations, you should now have Tailscale installed!