Tailscale on OpenWRT
- Install the prerequisites for wget and tailscale:
opkg update
opkg install libustream-openssl ca-bundle kmod-tun
- Install the service and download the latest Tailscale binaries.
set
install_path
if you want to have a persistant install, otehrwise defaults to/tmp
.
export install_path="/mnt/sda1/tailscale"
wget -O- 'https://raw.githubusercontent.com/lanrat/openwrt-tailscale-enabler/main/bin/tailscale-install' | sh
- Run tailscale for the first time:
/etc/init.d/tailscale start
tailscale up --accept-dns=false--advertise-routes=10.0.0.0/24 --advertise-exit-node
- Enable tailscale at boot:
/etc/init.d/tailscale enable
Verify by looking for an entry here:
ls /etc/rc.d/S*tailscale*
-
Reboot the router and verify that it shows up online on the Tailscale Admin portal.
-
To update the version of tailscale, run
tailscale-update
or run step 2 again.
Note: You need to have atleast 11+16 = ~27 MB of free space in $install_path
to be able to use this.