This repo contains the scripts necessary to install and run a tailscale instance on your Unifi Dream Machine (UDM/UDM Pro). It does so by piggy-backing on the excellent boostchicken/udm-utilities to provide a persistent service and runs using Tailscale's usermode networking feature.
-
Follow the steps to install the boostchicken
on-boot-script
here.⚠ Make sure that you exit the
unifi-os
shell before moving onto step 2 (or you won't be able to find the/mnt/data
directory). -
Run the
install.sh
script to install the latest version of the Tailscale UDM package on your UDM.# Install the latest version of Tailscale UDM curl -sSLq https://raw.github.com/SierraSoftworks/tailscale-udm/main/install.sh | sh
-
Follow the on-screen steps to configure
tailscale
and connect it to your network. -
Confirm that
tailscale
is working by running/mnt/data/tailscale/tailscale status
You can configure Tailscale using all the normal tailscale up
options, you'll find the binary at
/mnt/data/tailscale/tailscale
. Unfortunately we can't make changes to your $PATH
to expose the
normal tailscale
command, so you'll need to specify the full path when calling it.
/mnt/data/tailscale/tailscale up --advertise-routes=10.0.0.0/24 --advertise-exit-node --advertise-tags=tag:it
The manage.sh
script takes care of installing, starting, stopping, updating, and uninstalling Tailscale.
Run it without any arguments to see the options.
/mnt/data/tailscale/manage.sh restart
/mnt/data/tailscale/manage.sh update
To remove Tailscale, you can run the following command, or run the steps below manually.
/mnt/data/tailscale/manage.sh uninstall
- Kill the
tailscaled
daemon withkillall tailscaled
. - Remove the boot script using
rm /mnt/data/on_boot.d/10-tailscaled.sh
- Have tailscale cleanup after itself using
/mnt/data/tailscale/tailscaled --cleanup
. - Remove the tailscale binaries and state using
rm -Rf /mnt/data/tailscale
.
There are clearly lots of folks who are interested in running Tailscale on their UDMs. If you're one of those people and have an idea for how this can be improved, please create a PR and we'll be more than happy to incorporate the changes.
You do this by updating your Tailscale configuration as you would on any other machine,
just remember to provide the full path to the tailscale
binary when doing so.
# Specify the routes you'd like to advertise using their CIDR notation
/mnt/data/tailscale/tailscale up --advertise-routes="10.0.0.0/24,192.168.0.0/24"
Currently we are not aware of any supported means of achieving this. Tailscale's subnet routing is intended for Tailscale-to-subnet connections and doesn't provide explicit support for subnet-to-Tailscale connections.
Tailscale runs as a userspace networking component on the UDM rather than as a TUN
interface, which means you won't see it in the ip addr
list.
You bet, make sure you're running the latest version of Tailscale and then run tailscale up --ssh
to enable it. You'll need to setup SSH ACLs in your account by following
this guide.
# Update Tailscale to its latest version
/mnt/data/tailscale/manage.sh update!
# Enable SSH advertisment through Tailscale
/mnt/data/tailscale/tailscale up --ssh