r/Tailscale • u/Scratch_Coin • 13d ago
Help Needed Help getting Tailscale working: Frigate>HomeAssistant>Tailscale>iOS
I am trying to get tailscale to have its own HomeAssistant node. I am a home tinkerer, not a complete novice with computers, but obviously not equipped enough to understand the published guides. The guide for connecting dockers to Tailscale and the how to connect remotely seem to skip over some important details that are probably obvious to a developer or IT guy but not the home enthusiast.
Here is my set up:
Portainer in a docker
Frigate in a docker
MQTT in a docker
Home Assistant in a docker (very important distinction)
Tailscale installed directly on to the machine (tried the docker and couldnt get as close to a working setup as with it installed onto the computer)
Running Linux Mint bare metal
Tailscale installed and connected to the Tailnet on iOS.
What works:
all of my cameras are viewable in HA
when logging into my tailscale web portal, both my phone and my computer are green and connected. the IP address for my HA docker is listed as an endpoint along with the other docker addresses.
Tailscale app on my iPhone shows my computer in the list of machines and its showing connected. it also is showing the correct MagicDNS address as well as the correct IPv4 address.
iOS says that Tailscale VPN is active in the VPN settings and is selected for DNS routing
What doesnt work:
from my iPhone when I copy and paste the MagicDNS address, or the MagicDNS address plus the specific IP address I want to access ( MagicDNS:localIP) I get a "cant find server" page. Same thing happens when I use the IPv4 address.
What have I tried:
I tried to use the sidecar feature of dockers to get HA its own node on the Tailscale network, but that didnt work. Not sure why, but when I would add the code to the HA docker-compose file, it wouldnt build a node. It would build a node for the sample Nginx server, but there are no clear instructions on how to do this with HA. There is a video from tailscale but I cant figure out how to relate the PDF sample to a HA install.
I tried to make the bare metal install of Tailscale an exit node, but the configuration seems to be beyond my comfort level. I got an error that says I have to use port forwarding on my router, but I thought the whole point of this want to avoid doing that. configuring Tailscale to handle port forwarding looks a bit complicated.
I gave TDSProxy a try and got the container running, but the instructions for server configuration are confusing. not sure if I have to over write the original config file you make in Step 2 of the process or do you need to append the new code to the bottom of the original config file or do you need to make a separate file? also in the config file, there is a line for authKeyFile: "" but that same line isnt in any of the guide videos. Not sure what do to with the authKeyFile when its asking for the authKey in the previous line.
1
u/manarius5 13d ago edited 13d ago
I assume you have IP addresses for all those docker instances? Are they in the same subnet? If so, you could just use the tailscale subnet routing feature and then just address HA, frigate, etc by the internal IP addresses.
You could expose more subnets too if they aren't in the same subnet.