
自建 headscale ,Windows 下都没问题了,但是在群晖执行
tailscale login --login-server http://headscale.xxx.com --accept-routes=true --accept-dns=false --advertise-routes=192.168.1.0/24 提示
--accept-routes is not supported on Synology; see https://github.com/tailscale/tailscale/issues/1995 进入 GitHub issues 也没太看得懂,请教各位该怎么配置?
1 TsubasaHanekaw 2023-07-03 15:32:54 +08:00 用 docker 的 |
2 youngkingdom OP @TsubasaHanekaw 好的,我试试 |
3 youngkingdom OP @TsubasaHanekaw 怎么设置自建的 headscale 域名呢 |
4 yiling1995 2023-07-03 16:32:18 +08:00 群辉的有一点不一样,之前刚好弄过这个,改成我下面的命令就可以了。 tailscale up --advertise-routes=192.168.3.0/24 --reset |
5 youngkingdom OP @yiling1995 用了这个也不行,route 列表里面有,但是跑不通 ``` [root@VM-16-3-centos headscale]# headscale route list ID | Machine | Prefix | Advertised | Enabled | Primary 1 | youngkingdom | 192.168.1.0/24 | true | true | true 2 | nas | 192.168.1.0/24 | true | true | false 3 | nas | 0.0.0.0/0 | false | false | - 4 | nas | ::/0 | false | false | - ``` |
6 yiling1995 2023-07-03 17:13:38 +08:00 @youngkingdom #5 这就不知道了,我的非自建,不知道是否和这个有关系 |
7 youngkingdom OP @yiling1995 非自建是这样就可以了 |
8 FlossStunning 2023-07-03 22:56:48 +08:00 --accept-routes 是用来访问其他 tailscale 机器转发的子网的。如果你不需要从群晖访问的话,完全可以去掉,留--advertise-routes 就行了 > Not having `--accept-routes` does mean that a Synology machine itself can't connect to non-Tailscale addresses that are only accessible via other node's advertised routes. |
9 youngkingdom OP @FlossStunning 意思是--advertise-routes 是转发子网,--accept-routes 是访问其它设备转发的子网? |
10 yoyoluck 2023-07-07 10:06:39 +08:00 |
11 youngkingdom OP @yoyoluck 好的,谢谢 |