Tailscale + Subnets: How to access a different subnet?

Hi everyone,

I have installed the community Tailscale Add on and for the most part, everything is good and stable.

It automatically detects the “main” route - if I can call it that.

image

There are two issues though:

  1. The local HA URL does not work - http://homeassistant.local:8123 (the IP address works fine)
  2. I can’t access any subnets*

Context for #2
HA is installed on 192.168.5.x
IP Cams on 192.168.6.x
Q: How do I access the IP Cams when I’m out of the house on 4G?

How do I fix this?
(#2 is the more pressing issue obvs)

Thank you

Just bumping this - in case anyone has the answer

thanks!

That is because MDNS (Multicast DNS), that resolution of the URL to an IP address relies on, is meant to be local to the subnet. It is not meant to traverse network boundaries. Though there are ways around this. Just use the IP address.

I’ve only just started using Tailscale so had to look this up:

Thanks Tom!

I tried that, here are the results:

  • Ping router - WORKING
  • Ping HA IP - WORKING
  • Ping Printer - NOT Working
  • Ping Alexa device on same subnet - NOT Working
  • Ping NVR on different subnet - NOT Working

From your link, this seems to be the key:

However, in the HA + Tailscale add on setup, I’m not sure how to accomplish this

thanks

Looking at the documentation for the addd-on I don’t think you can. https://github.com/hassio-addons/addon-tailscale/blob/e3895b6ec02d152c7c836bde92e8c10dd6cf391a/tailscale/DOCS.md#configuration

Though it does also say:

…the add-on will also advertise routes to your subnets on all supported interfaces to Tailscale.

Try asking in the Discord link on that docs page. The add-on author is active there.

Will do, thanks

Did you find a solution for it?
If so, please, share it here.

New here, and also interested in this as I just deployed HA at our camper. I have Raspberry Pis installed at two other locations acting as subnet routers.

I can access everything at the two locations from the camper, but from the camper I can’t get to any other remote resources.

I think I need to have my router set to route traffic to those other locations set as a ‘next hop’ of the HA IP address, but the packets die there. I suspect it is an issue with Docker networking, but not entirely sure what to do. Maybe the tail scale add-on needs to somehow be set to MACVLAN for a network type? I read a GitHub request that implies this is possible since an upgrade but I don’t see where to enable.

I am also interested in the answer to this question. I was able to get the Tailscale addon installed and setup. However, it automatically defaulted to adding subnet 192.168.0.0/24 based on what I learned from the following video, I would prefer to only advertise the specific IP address for my HomeAssistant Yellow, not my whole network.

I tried entering the following command in the Terminal: tailscale up --advertise-routes=192.168.0.89/32 but I get an error saying “bash: tailscale: command not found”

Any help would be greatly appreciated.