Installation
Prerequisites
- OpenWrt router with internet access
- SSH access to your router
- At least 8-10 MB free space (Small mode) or 30-35 MB (Official mode)
Quick Install
SSH into your router and run:
wget -O /usr/bin/tailscale-manager https://raw.githubusercontent.com/fl0w1nd/openwrt-tailscale/main/tailscale-manager.sh && chmod +x /usr/bin/tailscale-manager && tailscale-managerThis single command will:
- Download the manager script
- Make it executable
- Launch the interactive menu
Interactive Menu
The interactive installer will guide you through:
- Download source — Choose Official (~30-35 MB) or Small (~8-10 MB)
- Storage mode — Persistent (
/opt/tailscale) or RAM (/tmp/tailscale) - Binary directory (persistent only) — Accept the default or type an absolute path such as
/mnt/sda1/tailscaleto install onto an external mount; see Custom Binary Directory - Auto-update — Optional daily cron to fetch new Tailscale releases (default: off)
- LuCI web UI — Optional web management UI (default: off)
- Download & install — Automatically fetches the correct binary for your architecture
- Start service — Starts Tailscale via the procd init system
LuCI memory usage
LuCI status pages call the manager through rpcd, and the manager may run tailscale status --json to collect device information. Routers with only a few dozen MB of RAM can run out of memory during that query. Keep LuCI disabled on very low-memory devices and use the CLI commands instead.
Dependencies
The installer automatically detects and installs missing dependencies via opkg:
| Package | Purpose |
|---|---|
wget-ssl | Downloading binaries over HTTPS |
libustream-mbedtls | TLS support for wget |
ca-bundle | CA certificates for HTTPS verification |
kmod-tun | Kernel TUN device (optional, for TUN mode) |
iptables / iptables-nft | Firewall rules for subnet routing |
TIP
If opkg is not available, the installer will show warnings with manual install instructions.
Post-Install
After installation, connect to your Tailscale network:
tailscale upThen approve the device in the Tailscale Admin Console.
Optional LuCI UI
The first install leaves the LuCI UI disabled by default. Install it later with:
tailscale-manager luci installFor scripted installs:
tailscale-manager install --yes --luci 1Remove only the LuCI UI with:
tailscale-manager luci removeNext Steps
- Download Sources — Learn about Official vs Small binaries
- Subnet Routing — Access your LAN from other Tailscale devices
- CLI Commands — Full command reference