侧边栏壁纸
  • 累计撰写 99 篇文章
  • 累计创建 54 个标签
  • 累计收到 1 条评论

目 录CONTENT

文章目录

sysnology nas tailscale setup

FlyingEagle
2024-12-19 / 0 评论 / 0 点赞 / 43 阅读 / 1,918 字

download tailscale package

https://pkgs.tailscale.com/stable/#spks
image-1734569382970

Schedule automatic updates

You can create a scheduled task to check for Tailscale client updates and install them automatically.

1, In Synology, go to Control Panel > Task Scheduler, select Create, and select Scheduled Task.

image-1734569945575

2, Select User-defined script.

image-1734569978001

3. In the General Settings tab, enter a task name and select the User: as root.

image-1734570247243

4. Go to the Schedule tab, select Run on the following days, then Run on the follow days, and choose an increment such as Daily.

image-1734570336027

5, Go to the Task Settings tab and enter the following for User-defined script:

tailscale update --yes

image-1734570391418

6, Select OK to save the settings.

image-1734570432956

Enable outbound connections

Synology DSM7 introduced tighter restrictions on what packages are allowed to do. If you’re running DSM6, Tailscale runs as root with full permissions and these steps are not required.

By default, Tailscale on Synology with DSM7 only allows inbound connections to your Synology device but outbound Tailscale access from other apps running on your Synology is not enabled.

The reason for this is that the Tailscale package does not have permission to create a TUN device.

To enable TUN, to permit outbound connections from other things running on your Synology device:

Make sure you’re running Tailscale v1.22.2 or later

In Synology, go to Control Panel > Task Scheduler, select Create, and select Triggered Task.

Select User-defined script.

When the Create task window appears, select General.
image-1734570933540
In General Settings, enter a task name, select root as the user that the task will run for, and select Boot-up as the event that triggers the task. Ensure the task is enabled.
image-1734571021284
Select Task Settings and enter the following for User-defined script.
image-1734571074971

/var/packages/Tailscale/target/bin/tailscale configure-host; synosystemctl restart pkgctl-Tailscale.service

If you’re curious what it does, you can read the configure-host code.

Select OK to save the settings.

Reboot your Synology device. Alternatively, to avoid a reboot, run the above user-defined script as root on the device to restart the Tailscale package.

Your TUN settings should now be persisted across reboots of your device.

refer from: https://tailscale.com/kb/1131/synology#enable-outbound-connections

0

评论区