readme.md
September 1, 2026 ยท View on GitHub
Tailscale Updater for GL.iNet Routers
Keep Tailscale up-to-date on your GL.iNet router with ease!
๐ Support the Project
If you find this tool helpful, consider supporting its development:
๐ About
This script automatically fetches and installs the latest Tailscale version, optimized specifically for GL.iNet routers. Keep your Tailscale installation current with just one command!
Created by Admon for the GL.iNet community. Tested on nearly all GL.iNet routers with firmware 4.x.
๐๏ธ Community Maintained โ Part of the GL.iNet Toolbox project
โ ๏ธ Independent Project โ Not officially affiliated with GL.iNet or Tailscale
โจ Features
- ๐ Automatic Updates โ Fetches and installs the latest Tailscale version
- ๐ฆ Tiny Version Support โ Uses optimized tiny binaries to save space
- ๐๏ธ UPX Compression โ Further reduces binary size when needed
- ๐ Tailscale SSH Ready โ Enables secure SSH access to the router via Tailscale
- ๐ฏ Version Selection โ Install specific Tailscale versions
- ๐ง Stateful Filtering โ Auto-configures for exit node compatibility
- ๐ก๏ธ Safe Restore โ Restore original firmware binaries if needed
- โก Flexible Options โ Multiple flags for customized installations
๐ Requirements
| Requirement | Details |
|---|---|
| Router | GL.iNet router with firmware 4.x (including GL-BE9300 Flint 3) |
| Architecture | arm64, armv7, mips, mipsle, or x86_64 |
| Free Space | At least 15 MB (can be bypassed with --ignore-free-space) |
โ ๏ธ Please make sure, that you enabled Tailscale in the GL.iNet router settings before running this script!
๐ Quick Start
Run the updater without cloning the repository:
wget -q https://get.admon.me/tailscale -O update-tailscale.sh ; sh update-tailscale.sh
โ ๏ธ Important: Do not run this script as a cron job! Manual execution is recommended.
๐๏ธ Arguments
The update-tailscale.sh script supports the following arguments:
| Argument | Description |
|---|---|
--ignore-free-space | Bypasses the free space check. Use with caution on low-storage devices! |
--force | Skips all confirmation prompts and makes installation permanent. Ideal for unattended installations. |
--force-upgrade | Forces upgrade even if the current version is already up to date. Useful for reinstalling the same version. |
--restore | Restores original firmware binaries (/usr/sbin/tailscaled and /usr/sbin/tailscale). โ ๏ธ Does not restore config files! |
--no-upx | Skips UPX compression. Binaries will be larger but installation is faster. |
--no-download | Skips downloading binaries. Use pre-downloaded archive at /tmp/tailscale.tar.gz. |
--no-tiny | Uses full Tailscale binaries instead of tiny version. Not recommended for GL.iNet routers. |
--skip-config | Skips the adjustment of the gl_tailscale script. |
--select-release | Displays available releases and lets you choose a specific version. โ ๏ธ Downgrading not officially supported! |
--testing | Uses prerelease/testing versions from the testing branch. โ ๏ธ Use at your own risk! May contain bugs or experimental features. |
--ssh | Enables Tailscale SSH feature after installation. |
--log | Shows timestamps in all log messages. Useful for debugging and tracking execution time. |
--help | Displays help message with all available arguments. |
๐ Usage Examples
Standard Update
Update to the latest stable release:
wget -q https://get.admon.me/tailscale -O update-tailscale.sh ; sh update-tailscale.sh
Testing/Prerelease Versions
Install prerelease versions from the testing branch for early access to new features:
sh update-tailscale.sh --testing
โ ๏ธ Warning: Testing versions are experimental and may contain bugs or unstable features. Use at your own risk!
Select a Specific Version
Install a specific Tailscale version (useful if the latest version has issues):
wget -q https://get.admon.me/tailscale -O update-tailscale.sh ; sh update-tailscale.sh --select-release
The script will display available releases for you to choose from.
โ ๏ธ Warning: Downgrading Tailscale is not officially supported and may cause unexpected behavior.
Force Update (Unattended Installation)
Skip all prompts and make the installation permanent:
wget -q https://get.admon.me/tailscale -O update-tailscale.sh ; sh update-tailscale.sh --force
Combine with --ignore-free-space for devices with limited storage:
wget -q https://get.admon.me/tailscale -O update-tailscale.sh ; sh update-tailscale.sh --force --ignore-free-space
Restore Original Binaries
Revert to the original firmware binaries:
wget -q https://get.admon.me/tailscale -O update-tailscale.sh ; sh update-tailscale.sh --restore
โ ๏ธ Caution: This does not restore configuration files and may result in a broken installation.
Logging and Output Options
Enable timestamps for debugging or tracking execution time:
wget -q https://get.admon.me/tailscale -O update-tailscale.sh ; sh update-tailscale.sh --log
๐ Key Features Explained
๐ฏ Tailscale Stateful Filtering
The script automatically adds --stateful-filtering=false to the gl_tailscale script. This is required for proper exit node functionality on GL.iNet routers.
The modification is:
- โ Applied automatically
- โ Permanent (survives firmware upgrades)
- โ No manual configuration needed
๐ Tailscale SSH Ready
If you agree to enable Tailscale SSH during installation (manually or by using --ssh), the script will automatically configure Tailscale SSH after updating. You can read more about Tailscale SSH here.
โ ๏ธ Warning: If you are connected to your router via Tailscale SSH, you will be disconnected when SSH support is enabled. This might cause the script to terminate prematurely. It is recommended to run the script via local SSH or via GoodCloud SSH terminal.
๐ฆ Tiny-Tailscale
By default, the script uses optimized tiny binaries that:
- ๐น Significantly reduce storage footprint
- ๐น Maintain useful functionality for routers
- ๐น Skip UPX compression (already optimized)
- ๐น Are recommended for all GL.iNet routers
Use --no-tiny if you need the full-sized binaries.
๐๏ธ UPX Compression
For standard (non-tiny) binaries, UPX compression:
- ๐น Substantially reduces binary size
- ๐น Is recommended for storage-limited devices
- ๐น Requires
xz(auto-installed if missing) - ๐น Can be disabled with
--no-upx
๐ธ Screencast
๐ก Getting Help
Need assistance or have questions?
- ๐ฌ Join the discussion on GL.iNet Forum โ Community support
- ๐ฌ Join GL.iNet Discord โ Real-time chat
- ๐ Report issues on GitHub โ Bug reports and feature requests
- ๐ง Contact via forum private message โ For private inquiries
โ ๏ธ Disclaimer
This script is provided as-is without any warranty. Use it at your own risk.
It may potentially:
- ๐ฅ Break your router, computer, or network
- ๐ฅ Cause unexpected system behavior
- ๐ฅ Even burn down your house (okay, probably not, but you get the idea)
You have been warned!
Always read the documentation carefully and understand what a script does before running it.
๐ฅ Contributors
Special thanks to:
- lwbt โ UPX compression & tiny-tailscale feature
- Aubermean โ Clarification of
--stateful-filtering=false(#1) - Dongming Han (GL.iNet) - Implementing the fwmark patch for GL.iNet routers (#82)
- lmerega โ Fixing the skipped Tailscale config backup (#90)
- All the testers and feedback providers in the GL.iNet forum!
- Copilot โ Yeah, I am using AI to help write code. But I review and test everything thoroughly!
Want to contribute? Pull requests are welcome!
๐ License
This project is licensed under the MIT License โ see the LICENSE file for details.
๐งฐ Part of the GL.iNet Toolbox
This project is part of a comprehensive collection of tools for GL.iNet routers.
Explore more tools and utilities:
Discover AdGuard Home Updater, ACME Certificate Manager, and more community-driven projects!
Made with โค๏ธ by Admon for the GL.iNet Community
โญ If you find this useful, please star the repository!