-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to access other machines on the Tailscale network #63
Comments
Hey mate - can you try enabling userspace networking in the Tailscale addon and let me know if anything changes? Another option could be to advertise your local ip as a route in Tailscale (192.168.1.X/32) and try connect to that again |
Thanks for the quick response! Not sure the second option would apply in this case, but maybe I don't understand. Here is my goal:
I want Home Assistant to be able to add PiHole via the PiHole integration. |
Ooooooohhh sorry I understand now, I missed the remote PiHole vs. HA PiHole integration bit I'm not sure how much help I'll be able to provide as I've not used the addon this way before, and the difficulty arrises from the way that everything is isolated/containerised in HA. Testing on my install (which is on HassOS) if I disable Userspace Networking in the addon I am able to hit some Tasilscale IPs from the HomeAssistant core container: Noting that it will break your HA access via tailscale, can you try reproduce the above on your install (disable userspace-networking first) and see if that lets the PiHole integration work? If so then we can fix the HA access again afterward :) |
Can you try curl your Pihole's Tailscale IP on whatever port the HTTP admin interface is on? edit: I realise now the dig test depends on some TS DNS stuff that might not be enabled for your tailnet, so bad test 😂 |
Can you |
Maybe another thing to test too would be shelling into the tailscale addon
Then running What I'm trying to work out is if its a Tailscale connectivity issue, or a linux route table problem... |
That's very weird. Tailscale is trying to use the MagicDNS ip 100.100.100.100 to lookup the Hostnames for Tailscale DERP relays and failing... that would probably cause it not to be able to dial out to your pihole server From that Tailscale container, can you 'dig +short @1.1.1.1 google.com' or 'curl 1.1.1.1'? |
No worries! So taking stock:
Have you changed anything to do with DNS in the addon? Also, in your Tailscale admin portal, do you have Magic DNS enabled and, if so, have you selected a default Global Nameserver? |
Some additional data points. I renabled userspace networking then:
Tested adding the PiHole integration after both changes without success. |
Alright, last thing to try I can think of is refresh your addon repositories, Update the Tailscale addon and start it with userspace networking disabled, and the new option "disable_dns" enabled. Run through If we don't see wins after that I'm not sure what else to try sorry. Userspace Networking is the most reliable mode for the add-on, but since it doesn't create a network interface that's visible from the other containers its not possible to route traffic (like the Pihole integration) over the tailscale link. You might have to resort to setting up some sort of reverse-proxy on another vm that forwards traffic to your pihole over tailscale, then hit that from HA. |
alright awesome, definitely something to do with MagicDNS breaking tailscaled's ability to dial out to other nodes. In terms of getting HA access with userspace_networking disabled:
|
Aaaaaaahhh that's super interesting as a root cause. Glad you got it working! Also so funny re: the Hostnames, I hazard other parts of our LANs might similarly collide 😅 |
Describe the bug
I run a PiHole server on my Tailscale network. I'd like to add the PiHole integration for this PiHole instance to Home Assistant. Unfortunately, I'm not access the PiHole instance via it's local IP, Tailscale IP or Tailnest hostname
To Reproduce
Expected behavior
Home Assistant should be able to communicate with other devices on the Tailnet.
Desktop (please complete the following information):
Additional context
accept-routes
enableduserspace_networking
enabledThe text was updated successfully, but these errors were encountered: