Tailscale on OpenWRT
Tailscale on special hardware
- Openwrt wiki: Tailscale user guide
- Tailscale and dependend packages are huge (ca. 8 MB) and flash size >16 MB is needed ! See section below
- For Tailscale capable devices see tailscale/hardware
Install
opkg update
opkg install iptables-nft ip6tables-nft kmod-ipt-conntrack \
kmod-ipt-conntrack-extra kmod-ipt-conntrack-label \
kmod-nft-nat kmod-ipt-nat tailscale
- Config at
/etc/config/tailscale
Setup
tailscale up --login-server https://$HEADSCALE_DOMAIN
Devices with low mem / flash size
openwrt-tailscale-enabler
- GitHub
- Brings Tailscale to low powered OpenWRT devices
- Dynamically downloads Tailscale packages into RamFS to circumvent nvram size
- Auto-updates to latest Tailscale image on each reboot
- Runs on devices with 128 Mb RAM
- "Need to have at least 11+16 = ~27 MB of free space in /tmp (which is usually in RAM) to be able to use this."
- Question about persistence
- Install
/etc/init.d/tailscale stop
rm /usr/bin/tailscale /usr/bin/tailscaled /etc/init.d/tailscale /tmp/tailscale*
rm -rf /var/lib/tailscale
reboot
Issues:
- Couldn't make it work reliably. DNS resolution didn't work, SSH to tailscale nodes neither (2024-06)