GL-INET 路由器 Tailscale 使用自己的 Headscale 服务

简单来说 GL-iNet 路由器自带的 Tailscale 只能使用 Tailscale 官方的服务,如果要使用自己或者第三方的服务,则须要修改 /usr/bin/gl_tailscale 下面有关于 tailscale up 相关的内容,在其中添加相关的内容:

        add_guest_policy_route
-       timeout 10 /usr/sbin/tailscale up --reset --accept-routes $param --timeout 3s --accept-dns=false > /dev/null
+       timeout 10 /usr/sbin/tailscale up --login-server=https://server --accept-routes=true --accept-dns=false --advertise-routes=192.168.7.1 > /dev/null
    else
        /etc/init.d/tailscale stop