[Feature Request] Tailscale: Manually add --advertise-routes values

Currently, gl-sdk4-tailscale only allows the following 5 ​​for --advertise-routes:
$lan_ip, $wan_ip, $wwan_ip, $secondwan_ip, $tethering_ip.

Manual add capability is needed for following situations(and more):

  • VPN cascading(e.g., [MT300N-V2] <=WG=> [MT2500] <=TS=> [Tailnet])
  • L3 private network routing via WAN interface
  • Routing additional local network(e.g., Guest Network)

Since I manage dozens of GL.iNet devices, I don't want to use any brittle manual workarounds, and believe this would be pretty handy for others too(Although personally I don't understand why is this cannot be overridden manually in Tailscale admin console, but not so very much unreasonable in strict security perspective).

1 Like

I think this is more important than my other requests but sadly no one interests to this. :sob:

I think it can be managed like config of VPN customized routes like below(I don't know the reason that random 4-digit is preferred but followed that style).

tailscale.route_1234=advertise_route
tailscale.route_1234.dest='10.0.0.0'
tailscale.route_1234.mask=24

I even want to contribute if it's open sourced and allowed to request to pull!

Thanks for the suggestions. Unfortunately I cannot find anyone to disccuss as developers are in holidays.

1 Like