terraform-provider-tailscale icon indicating copy to clipboard operation
terraform-provider-tailscale copied to clipboard

What's the correct way of using tailscale_device_subnet_routes ?

Open uthark opened this issue 2 years ago • 2 comments

If I update the routes via provider, I still can't access new routes.

Admin UI shows me that the new routes are not advertised by the node

This device no longer advertises this subnet route. Remove the route here, or re-run tailscale up --advertise-routes with x.x.x.x/32 included.

What's the correct and intended way of managing routes using the provider? Do I need manually update the routes on the device too?

uthark avatar Aug 15 '23 19:08 uthark

If I understand correctly, tailscale_device_subnet_routes only approves the routes configured. In order for them to actually work, the client has to advertise them.

To update advertised routes for an existing client, use

tailscale set --advertise-routes xxxx

mhutter avatar Sep 01 '23 15:09 mhutter

It would be nice if tailscale daemon would advertise routes configured via API.

uthark avatar Sep 01 '23 20:09 uthark