Access docker container w VM/ RPi

Tailscale user:
Hello there, Here’s my problem:

I have a VM (with a hosting company) and a RPI in my local network. I’m trying to access some docker containers on the vm through the rpi.

Here’s what i did:
VM:

  • Install tailscale, following the guide on your website

  • starting it with: sudo tailscale up --advertise-routes=172.17.0.0/16,172.20.0.0/16 (Docker networks)

RPI:

  • installing it following the guide on your website

  • starting it with: sudo tailscale up --accept-routes

Then i tried
sudo ip route add 172.20.0.0/16 via 100.82.183.10 dev tailscale0

to add a route.

But i still can’t reach it from my pi. I can ping the machines tailscale address though.

What can i do?

Support:
Looks like you already deleted 100.82.183.10 so I can’t be sure, but I suspect you forgot to authorized that advertised route from the admin panel:

You first advertise a route from a node, then an admin (you) has to approve it, then --accept-routes will work.

You don’t need to do any “ip route” commands yourself.