I set up Headscale and Tailscale using Docker on a VPS, which I want to use as my public IPv4 and Reverse Proxy to route incoming traffic to my local network and e. g. my home server. I also set up Tailscale using Docker on my home server and connected both to my Headscale server.
I am able to ping on Tailscale container from the other and vice versa and set up –advertise-routes=192.168.178.0/24 on my home server as well as –accept-routes on my VPS, but I can’t ping local IP addresses from my VPS. What am I missing?
Both container are connected to the host network, I have opened UDP ports 41641 and 3478 on my VPS.

  • @just_another_person
    link
    English
    18 months ago

    ‘ip route show’ on all machines. Make sure they know how to get to each other.

    • DataproletOP
      link
      fedilink
      English
      18 months ago

      How do I make sure of this? What am I supposed to see using the command?

      • @just_another_person
        link
        English
        28 months ago

        You expect to see the subnet of the VPN network mentioned, and the wg0 interface as it’s gateway. Also might want to make sure your wg0 interface even exists and is up with ‘ip addr show’

        • DataproletOP
          link
          fedilink
          English
          1
          edit-2
          8 months ago

          Are you sure Tailscale in Docker is creating a wg0 interface? Because I got a working connection between my smartphone and my home server and the home server is not showing any interface related to Tailscale?

          default via 192.168.178.1 dev ens18 
          172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 
          192.168.178.0/24 dev ens18 proto kernel scope link src 192.168.178.178 
          
          • @just_another_person
            link
            English
            1
            edit-2
            8 months ago

            Are you running it in a container? Then you’ll be seeing the docker0 interface as you see there, and the container will route through that.

            • DataproletOP
              link
              fedilink
              English
              18 months ago

              Yes I’m running it on Docker and therefore have the docker0 interface.