Skip to content
Projects

GuNanOvO/openwrt-tailscale

View on GitHub

About

The latest, smaller Tailscale.apk(.ipk) for OpenWrt devices. The latest, smaller Tailscale.apk(.ipk) for OpenWrt devices.

Systems & Infrastructure

How these counts are measured

Measured 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

Tailscale & OpenWrt

The Latest, Smaller Tailscale for OpenWrt Devices

GitHub release Views Downloads GitHub Stars OpenWrt 24.10 OpenWrt 25.12 IPK Package APK Package

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

  1. Download the ipk or apk package matching your device architecture from Releases
  2. 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 up runs correctly. If it returns a login URL, the installation succeeded. If it shows command not found or 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:

  1. Very high memory usage by Tailscale
  2. Tailscale being killed and restarted by OOM Killer
  3. Unexpected Tailscale restarts with unknown cause

You can trade higher CPU usage for lower memory usage as follows:

  1. Edit /etc/init.d/tailscale

    vi /etc/init.d/tailscale
    
  2. Locate the line:

    procd_set_param env TS_DEBUG_FIREWALL_MODE="$fw_mode"
    
  3. Append GOGC=10 to the line:

    procd_set_param env TS_DEBUG_FIREWALL_MODE="$fw_mode" GOGC=10
    

This 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:

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 install or apk add
  • Temporary installation: Downloads the binary executable to /tmp and 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:

  1. Target platform architecture (opkg print-architecture)
  2. Installation mode (persistent / temporary / opkg / apk)
  3. 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…