[ Tailscale ] VPN to connect your team and devices easy

Discussion on apps, protocols, APIs, specifications, and more. You are welcome to join us as a TOS app developer!
User avatar
bertieuk
Posts: 4
Joined: 23 Feb 2025, 20:17
Great Britain

Re: [ Tailscale ] VPN to connect your team and devices easy

Post by bertieuk »

echohelloworld wrote: 03 Jul 2024, 00:50
SINSENAS wrote: 28 May 2024, 02:31
dissidence wrote: 06 Mar 2023, 04:57
Same question where is check for enable this feature
Was able to set this up by following the the tailscale exit node directions for linux -https://tailscale.com/kb/1103/exit-nodes?tab=linux. This will require SSH-ing into the server, and adding the two ip forwarding configs to the sysctl.conf file. Afterwards, you need to advertise it as a exit-node, and approve it in the admin tailscale console.
Bit more clarity on this.

Once you have the module installed and running, ssh to your TNAS, then:

Code: Select all

echo 'net.ipv4.ip_forward = 1' | tee -a /etc/sysctl.conf
echo 'net.ipv6.conf.all.forwarding = 1' | tee -a /etc/sysctl.conf
sysctl -p /etc/sysctl.conf

Code: Select all

cat /proc/sys/net/ipv4/ip_forward
ensure 1 is returned

Restart Tailscale to pick up the forwarding changes:

Code: Select all

/etc/init.d/Tailscale stop
/etc/init.d/Tailscale start
Configure Tailscale as an exit node:

Code: Select all

/Volume1/@apps/Tailscale/bin/program/tailscale set --advertise-exit-node
/Volume1/@apps/Tailscale/bin/program/tailscale up
Switch to Tailscale admin ( https://login.tailscale.com/admin/machines ) and TNAS should now have a Blue label 'Exit Node". Configure from the 3 dots > Edit route settings ...

The FLAGS value in tailscale.defaults is passed to the tailscale daemon (by Go) and not the tailscale app.

{Not yet confirmed this remains after Tailscale app restart or TNAS restart}
User avatar
DomRanUser
Posts: 1
Joined: 07 Apr 2025, 11:55
United States of America

Re: [ Tailscale ] VPN to connect your team and devices easy

Post by DomRanUser »

Any plans to update TOS5 aarch package to version 1.80.2? Tailscale keeps bugging me to update my NAS
User avatar
Frostbyte
Posts: 27
Joined: 19 Feb 2025, 17:36
United States of America

Re: [ Tailscale ] VPN to connect your team and devices easy

Post by Frostbyte »

The install guide is clear and the WebUI access info is spot on. Appreciate the effort!
User avatar
krshtrue
Posts: 1
Joined: 02 May 2025, 21:13
Spain

Re: [ Tailscale ] VPN to connect your team and devices easy

Post by krshtrue »

Hi there,

Maybe I'm just a bit of a newbie, but I ran into a very strange issue on my TerraMaster NAS (model F4-423) that I eventually traced back to the Tailscale app. About two weeks after installing it—and following a power outage—I lost internet access on the NAS. DNS resolution was broken: ping 8.8.8.8 worked fine, but no domain names could be resolved.

Initially, I had no reason to suspect Tailscale. I even uninstalled the app, but the problem persisted. After a lot of digging, I realized that /etc/resolv.conf had been overwritten by Tailscale and was pointing to nameserver 100.100.100.100, which I assume is used for MagicDNS. The real problem is: this file was not reverted after uninstalling, and even worse, it was locked as read-only—so manual edits weren’t possible without root-level remounting or reinstallation.

Eventually, I solved it by reinstalling Tailscale and adding public DNS servers (Google and Cloudflare) under Global Nameservers in the admin console. That updated the file properly and restored DNS functionality.

However, this behavior feels risky—if someone doesn’t know what’s going on, they could be left with a bricked NAS (at least in terms of remote connectivity and services like Plex).

However, this raises a few concerns:
  • Why doesn’t the uninstall process restore the original /etc/resolv.conf or remove the Tailscale override?
  • Is there a recommended way to completely remove Tailscale without leaving DNS broken?
  • If so, could this be documented clearly somewhere or added as a script option?
Thanks for your work—Tailscale is great, but this edge case really caught me off guard.
User avatar
outkastm
Gold Member
Posts: 1425
Joined: 29 Dec 2020, 23:52

Re: [ Tailscale ] VPN to connect your team and devices easy

Post by outkastm »

Unfortunatelly, a power outage can lead to some files being corrupted on a NAS that is not connected to an UPS. This will destroy sone functionality of specific apps and can be probably solved by reinstalling the app.
Backup and restoration of the resolv.conf file is managed by Tailscale itself, when the app can start and stop sucessfuly.
Install/unninstall action are maneged by an encrypted filed from Terramaster, not so much i can do to add more actions during these steps.
I can only add a step for restoration of the resolv.conf backup (if is present, meaning it was not restored automatically by Tailscale app) during the stop step script.
This stop step should be launched by Terramster during uninstall script.
I don't see why the resolv.conf was locked after your power outage. This file can be always edited by superuser using the embedded terminal app from TOS6. Maybe it was corrupted ?
User avatar
pastilhas42
Posts: 1
Joined: 24 Aug 2025, 00:23
Portugal

Re: [ Tailscale ] VPN to connect your team and devices easy

Post by pastilhas42 »

How can i connect to my own headscale server?
Can't seem to login to anywhere but Tailscale...

Much appreciated
User avatar
Heaguen
Posts: 4
Joined: 23 Sep 2025, 04:55
Brazil

Re: [ Tailscale ] VPN to connect your team and devices easy

Post by Heaguen »

Please, add me as another request for TOS 4.2.44!
User avatar
YCK
Posts: 3
Joined: 01 Dec 2025, 10:03
United States of America

Re: [ Tailscale ] VPN to connect your team and devices easy

Post by YCK »

Hi, I have a TerraMaster f4-210. I visited this website https://tmnascommunity.eu/download/tailscale/ and it doesn't have the .tpk for my system version. I would like to know if you have it for this version. If so, could you post the link? I would be very grateful. If not, I would like to request the development of this. So far, thank you very much for a fantastic tool.
User avatar
ryekass3
Posts: 1
Joined: 09 Jan 2026, 22:52
United States of America

Re: [ Tailscale ] VPN to connect your team and devices easy

Post by ryekass3 »

I would also like to install this to my TerraMaster F4-210, if this counts as a request!
User avatar
wsy91
Posts: 1
Joined: 19 Jan 2026, 22:54
Malaysia

Re: [ Tailscale ] VPN to connect your team and devices easy

Post by wsy91 »

I’m trying to get Tailscale running on my TerraMaster NAS, but I keep hitting a PHP path error whenever I try to open the Web UI. Despite trying a reinstall, the service doesn't seem to be linking correctly.

My System:

NAS Model: F2-223
TOS Version: TOS
Tailscale Version: 5.1.131

The Error: When I launch the app (at Support & Help), I get the following errors on a white screen:

Warning: include(/usr/local/Tailscale/bin/config.inc.php): failed to open stream: No such file or directory in /Volume1/@apps/Tailscale/webui/index.php on line 8

Warning: include(): Failed opening '/usr/local/Tailscale/bin/config.inc.php' for inclusion (include_path='.:/usr/lib/php') in /Volume1/@apps/Tailscale/webui/index.php on line 8.

What I have tried so far:

Uninstalled and reinstalled the TP package.

Restarted the NAS.

Tried manually creating the symlink via SSH (ln -s /Volume1/@apps/Tailscale /usr/local/Tailscale), but the error persists.

It seems like the config.inc.php is either missing or the index.php is pointing to the wrong static path (/usr/local/...) instead of the relative path.

Could anyone advise on how to fix this or if there is a specific script I need to run to repair the installation paths?

Thanks in advance!
Image
Post Reply

Return to “Developer Discussion Room”