Script: Update Tailscale on (nearly) all devices

Tailscale 1.76.6 was released.

Please re-run the script to get the newest version.
Official changelog: Changelog ยท Tailscale

3 Likes

Can you tell me a bit if the GL-AR750S is powerful enough to run tailscale?
I don't plan to tunnel any traffic across except for SSH access.
My GL-AR750S is in a remote location and in case I mess up something in the Gl-Inet GUI I need to be able to access it via SSH through tailscale.

Just looking for confirmation I won't cripple my GL-AR750S just by installing taiscale (CPU / RAM wise I mean).

I tested Tailscale v1.70 on an AR750S. It runs, and I was able to SSH into it from remote systems. However, since Tailscale is written in Go, which tends to consume a lot of memory, I decided it wasn't the best fit for my needs and turned it off.

For a couple of AR300M routers that I have running at remote sites, I configured them to create a Wireguard connection on boot to a cloud VPS I own with a public IP address. I then SSH into the VPS, followed by an SSH into the AR300M over the Wireguard link, all automated in my SSH config file. This setup uses very little memory on the AR300M, and allows me remote access.

3 Likes

Thanks for pointing out the obvious solution. Took me 5 minutes to set up. I was so focussed to make all my devices accessible that I lost track of the actual goal. :grinning:

Thank you for your hard work! I have an old MT-300a (Azure). On OpenWrt.org, I found an image to update my system to 23.05.4 and did so. Next, I found a script which allows me to attach a USB drive for additional disk space. Finally, I issued the command opkg install tailscale to get version 1.58.2-1. These steps allowed me to meet the pre-requirements to run your script. Below is the error from my terminal:

BusyBox v1.36.1 (2024-07-15 22:14:18 UTC) built-in shell (ash)


| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -| || | | || || |
|
_____|| |
||||___||| |____|
|
| W I R E L E S S F R E E D O M

OpenWrt 23.05.4, r24012-d8dd03c46f

root@OpenWrt:~# wget >
Downloading <>
Connecting to 2606:50c0:8003::154:443
Writing to 'update-tailscale.sh'
update-tailscale.sh 100% |*******************************| 26814 0:00:00 ETA
Download completed (26814 bytes)
[2024-11-19 17:06:58] [โ†’] Checking for script updates
update-tailscale.sh: line 459: curl: not found
[2024-11-19 17:06:58] [โœ“] The script is up to date
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ GL.iNet router script by Admon :seal: for the GL.iNet community โ”‚
| Version: 2024.10.25.01 |
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ WARNING: THIS SCRIPT MIGHT POTENTIALLY HARM YOUR ROUTER! โ”‚
โ”‚ It's only recommended to use this script if you know what you're doing.โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ This script will update Tailscale on your router. โ”‚
โ”‚ โ”‚
โ”‚ Prerequisites: โ”‚
โ”‚ 1. At least 15 MB of free space. โ”‚
โ”‚ 2. Firmware version 4 or higher. โ”‚
โ”‚ 3. Architecture arm64, armv7 or mips. โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
update-tailscale.sh: line 56: can't open /etc/glversion: no such file
[2024-11-19 17:06:58] [โ†’] Checking if prerequisites are met
sh: out of range
[2024-11-19 17:06:58] [โœ“] Firmware version:
[2024-11-19 17:06:58] [โœ“] Architecture: mips
[2024-11-19 17:06:58] [โœ“] Available space: 842 MB
[2024-11-19 17:06:58] [!] xz is not installed. We can install it for you later.
[2024-11-19 17:06:58] [โœ“] Prerequisites are met.
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
| Are you sure you want to continue? (y/N) |
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
y
[2024-11-19 17:07:00] [โ†’] Detecting latest tiny tailscale version
update-tailscale.sh: line 132: curl: not found
[2024-11-19 17:07:00] Could not get latest tailscale version. Please check your internet connection.
root@OpenWrt:~#
Blockquote

I can access the internet just fine from a PC on the LAN. I can also ping from the terminal so I do not believe connectivity is my issue.

Please run opkg update && opkg install curl before running my script.

Thank you for the quick reply. The script downloaded and said it installed successfully. The last few lines seem to present another error:

Blockquote

Do you want to make the installation permanent? (y/N)
y
[2024-11-19 18:18:57] [โ†’] Making installation permanent
[2024-11-19 18:18:57] [โ†’] Modifying /etc/sysupgrade.conf
[2024-11-19 18:18:58] [โœ“] Script finished successfully. The new tailscale versio n (software, daemon) is:
/usr/sbin/tailscale: line 1:ELี’h4P4: not found
/usr/sbin/tailscale: line 2: syntax error: unexpected ")"
/usr/sbin/tailscaled: line 1:ELี’h4P4: not found
/usr/sbin/tailscaled: line 2: syntax error: unexpected ")"
root@OpenWrt:~#

Please do not spend too much effort on my behalf. If this router is too old and low powered, just say so :slight_smile:

The loaded binary isn't compatible - so I guess there is currently no working architecture available.

You can try to manually download the tiny tailscale binaries from the repo.

root@GL-MT3000:~# wget -O update-tailscale.sh https://raw.githubusercontent.com/Admonstrator/glinet.forum/main/scripts/update-t
ailscale/update-tailscale.sh && sh update-tailscale.sh
Downloading 'https://raw.githubusercontent.com/Admonstrator/glinet.forum/main/scripts/update-tailscale/update-tailscale.sh'
Connecting to 185.199.108.133:443
Writing to 'update-tailscale.sh'
update-tailscale.sh  100% |*******************************|   995   0:00:00 ETA
Download completed (995 bytes)
The repository for this script has been moved to https://github.com/Admonstrator/glinet-tailscale-updater
This script will now try to update itself to the new repository
If this fails, please update the script manually

Hi, noticed this new repository message for the Tailscale 1.78.x update attempt, does the wget link in the first post need changing please?

The link was updated month ago.

1 Like

I use the SSH wget text in the Quick Start Box, was that updated too please?

I tried it again but still get that message?

It was updated months ago and I don't see the old entry.

Just use

wget -O update-tailscale.sh https://raw.githubusercontent.com/Admonstrator/glinet-tailscale-updater/main/update-tailscale.sh && sh update-tailscale.sh

Maybe you need to delete any existing update-tailscale.sh before.

2 Likes

Sorry if this a dumb question, but is there a downside to SSHing into the router and just run tailscale update?

Some devices don't have enough space for that.

I thank you very much! Iโ€™ve just updated tailscale on my GL-X3000; I wouldnโ€™t use tailscale with such ancient version provided with the router; you saved me much time in manual upates

3 Likes

Not an update, but the script is already compatible with Slate 7 (BE-3600)

Just used this script to update Tailscale on my GL-A1300 Slate Plus! I had already been using it on my Slate AX (GL-AXT1800) for some time, and was happy to see it ran perfectly on this "little brother"! Now happily running 1.80.0

2 Likes

Just completed this on my MT3000 Beryl AX, now running tailscale ver. 1.80 no issues.

Thanks for the script!

1 Like

Confirmed working on GL.iNet GL-X3000. Much appreciated.

1 Like

Thanks @admon, ran the script, updated. Bookmarked for next month lol