OPNsense - How to update Tailscale?

I installed Tailscale on OPNsense with the instructions on this page:

I’m stuck on 1.22.2 though. If i re-run the commands, it looks like its installing 1.24.2, but the version never updates, even after a reboot.

make install - does nothing
make reinstall shows this output:

root@opnsense:/usr/ports/security/tailscale # make reinstall
===>  Deinstalling for tailscale
===>   Deinstalling tailscale-1.24.2_1
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
        tailscale: 1.24.2_1

Number of packages to be removed: 1

The operation will free 27 MiB.
[1/1] Deinstalling tailscale-1.24.2_1...
[1/1] Deleting files for tailscale-1.24.2_1: 100%
===>  Installing for tailscale-1.24.2_1
===>  Checking if tailscale is already installed
===>   Registering installation for tailscale-1.24.2_1
Installing tailscale-1.24.2_1...

But, no matter what I do after this, it still shows 1.22.2 (again, even after a reboot). Do I need to remove the interface and start over? I almost feel like a file is locked and being prevented from updating, but not very familar with FreeBSD outside of pfSense and OPNsense.

How do I actually update on OPNsense?

2 Likes

No solution, but chiming in with the same issue (although i’m stick on 1.6.0!)

Tried rebooting, removing the interface and rebooting… no dice so far.

root@myopnsensehost:/usr/ports/security/tailscale # make reinstall
===>  Deinstalling for tailscale
===>   Deinstalling tailscale-1.26.0_1
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
	tailscale: 1.26.0_1

Number of packages to be removed: 1

The operation will free 21 MiB.
[1/1] Deinstalling tailscale-1.26.0_1...
[1/1] Deleting files for tailscale-1.26.0_1:   0%
tailscale-1.26.0_1: missing file /usr/local/bin/tailscale
[1/1] Deleting files for tailscale-1.26.0_1:  16%
tailscale-1.26.0_1: missing file /usr/local/bin/tailscaled
[1/1] Deleting files for tailscale-1.26.0_1: 100%
===>  Installing for tailscale-1.26.0_1
===>  Checking if tailscale is already installed
===>   Registering installation for tailscale-1.26.0_1
Installing tailscale-1.26.0_1...
root@myopnsensehost:/usr/ports/security/tailscale # ls -ltra /usr/local/bin/tailscale*
-r-xr-xr-x  1 root  wheel   8097408 May  4  2021 /usr/local/bin/tailscale
-r-xr-xr-x  1 root  wheel  14226832 May  4  2021 /usr/local/bin/tailscaled
root@myopnsensehost:/usr/ports/security/tailscale # file /usr/local/bin/tailsc*
/usr/local/bin/tailscale:  ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, Go BuildID=EToV3fTGpj85iLp5SJp5/TEunjIDdXlHcetjCOsZY/TBv1Ezu50mKZLwhxrZpP/HDvPyZwUk5pnwfHWhU2r, stripped
/usr/local/bin/tailscaled: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, Go BuildID=jShovKenqYhA7EZXcvbc/v75bSEMMCdGVS1FCIeOF/7pNSJ0QSuKUo4XRvZoEE/PTHOumpAQ7Ww04RVQJqv, stripped

and the result after stopping/starting the tailscaled service

root@myopnsensehost:~ # tailscale version
1.6.0
  go version: go1.16.3

hmm… wonder if that version of go is a problem?

@ gregg098 fixed it!

make deinstall
make clean
make install

(I think its that clean that sorts it all out)

It goes and pulls in the latest version of go, builds the toolchain and then installs the correct version of tailscale.

[root@myopnsensebox ~]$ tailscale version
1.26.0
  go version: go1.18.3
3 Likes

That worked great. Not a quick upgrade (slow machine), but it did work and I didnt lose my credentials. Thanks.

Maybe the Tailscale folks can update the instructions?

Thank you for the discussion here. Helped me update Tailscale on opnsense. Its inconvenient that one has to download the whole ports repo in order to install and update tailscale.

I was having limited space issues and wanted to contribute this reddit post. The maintainers add -r flag to opnsense-code so that the ports directory can be removed after install (opnsense-code -r ports). However any install/update requires re-downloading ~3.7G of the ports repo. Hopefully a plugin will be available eventually.

I did come across a third party repository that has a Tailscale option. It makes it really easy to update, although the version do lag a little. Downside is that you’re placing your trust in someone else compiling the release for you. Some other packages available as well.

https://www.routerperformance.net/opnsense-repo/