Skip to content

Tailscale on OpenWRT

Tailscale on special 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

Uninstall:

/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)