GuNanOvO/openwrt-tailscale
About
The latest, smaller Tailscale.apk(.ipk) for OpenWrt devices. The latest, smaller Tailscale.apk(.ipk) for OpenWrt devices.
Systems & InfrastructureMeasured star growth
- in 24h
- +3
- in 7 days
- +3
- in 15 days
- +10
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
.github/README_en.md
Original简体中文文档 | English Docs

The Latest, Smaller Tailscale for OpenWrt Devices
This repository provides:
- The latest and smaller Tailscale ipk packages and Tailscale apk packages for multiple architectures
- One-click installation scripts supporting persistent installation and temporary installation on your OpenWrt 24.10 or OpenWrt 25.12 device
- An OPKG and APK feed for easier and continuous updates ➡️ [ Smaller Tailscale Repo ]
Usage:
[!WARNING] Please read the following before use Requirements:
- Storage: Less than 8MB (except
mips64,riscv64,loongarch64)- RAM: About 60MB (runtime)
- Network: Ability to access GitHub
Notes:
- Devices with less than 256MB RAM may fail to run Tailscale; see About memory usage
- Temporary installation heavily depends on network stability and is less reliable — recommended only for devices where persistent installation is impossible
- Most devices/architectures are untested; if you encounter issues, please open an issue and I will respond as soon as possible
One-click CLI Installation Script
SSH into your OpenWrt device and run:
wget -O /usr/sbin/install.sh https://raw.githubusercontent.com/GuNanOvO/openwrt-tailscale/main/install_en.sh && chmod +x /usr/sbin/install.sh && /usr/sbin/install.sh
Add OPKG/APK Feed
See the feed branch README or the repository page: Smaller Tailscale Repository For OpenWrt
Only ipk and apk packages for supported architectures are included.
Manual ipk/apk Installation
- Download the ipk or apk package matching your device architecture from Releases
- On your OpenWrt device's web UI, go to System → Software → Upload Package, select the downloaded package, and install it
[!NOTE] The ultimate criterion for a successful installation is whether
tailscale upruns correctly. If it returns a login URL, the installation succeeded. If it showscommand not foundor other errors, the installation failed.
Recommended LuCI GUI
For easier usage with minimal CLI interaction, you may optionally use the community LuCI app from @Tokisaki-Galaxy's open-source project: luci-app-tailscale-community
Additional Notes:
[!NOTE] If you experience any of the following:
- Very high memory usage by Tailscale
- Tailscale being killed and restarted by OOM Killer
- Unexpected Tailscale restarts with unknown cause
You can trade higher CPU usage for lower memory usage as follows:
Edit
/etc/init.d/tailscalevi /etc/init.d/tailscaleLocate the line:
procd_set_param env TS_DEBUG_FIREWALL_MODE="$fw_mode"Append
GOGC=10to the line:procd_set_param env TS_DEBUG_FIREWALL_MODE="$fw_mode" GOGC=10This makes Tailscale reclaim memory more aggressively. For more details, see issue: About memory usage
Build Optimizations
The following build options are used to minimize Tailscale. See Makefile for details:
- TAGS:
ts_include_cli,ts_omit_aws,ts_omit_bird,ts_omit_completion,ts_omit_kube,ts_omit_systray,ts_omit_taildrop,ts_omit_tap,ts_omit_tpm,ts_omit_capture,ts_omit_syspolicy,ts_omit_debugeventbus,ts_omit_webclient
-s -w
Binary compression is performed using UPX with:
--best --lzma
Script Logic
- Persistent installation: Automatically downloads ipk/apk packages and installs them using
opkg installorapk add - Temporary installation: Downloads the binary executable to
/tmpand creates a script symlink in/usr/sbin - Disconnect protection: installs/updates/switches run in a detached background session — an SSH/Tailscale connection drop does not interrupt the install (full log:
/tmp/tailscale-install.log)
For details, see install_en.sh
Powered By
[UPX] – Binary compression technology that makes ultra‑small Tailscale builds possible
[GitHub Actions] – Used for automated build, release, and feed deployment
Issue Reporting
Please submit issues via Issues and include:
- Target platform architecture (
opkg print-architecture) - Installation mode (persistent / temporary / opkg / apk)
- Relevant log snippets
Forking This Project
If you plan to fork this project, please check Notes on Forking .
Security Statement
This project is a third‑party compressed and optimized redistribution based on the official Tailscale source code. It is unrelated to the official project. All source code, scripts, and packages are provided “AS IS”. All build, packaging, and release steps are automated by GitHub Actions. By using this project, you acknowledge and assume all potential security and stability risks.
License
This project is licensed under the MIT License and includes code from the Tailscale project, which is licensed under BSD 3-Clause.
💖 If this project helps you, please consider giving it a ⭐!
Explore related projects
Loading…