lmagyar / homeassistant-addon-tailscale

Adds some functionality to the Tailscale Home Assistant Community Add-on https://github.com/hassio-addons/addon-tailscale
MIT License
56 stars 7 forks source link

Configuring multiple ports and/or paths #118

Closed erapade closed 3 months ago

erapade commented 5 months ago

Well, this is not an issue, rather a feature request or request for help/advise

I came across this and it might do what I'm looking for but I can't see how I would be able to configure it using the GUI https://www.reddit.com/r/Tailscale/comments/14gccua/funnel_serve_multiple_ports/?rdt=45747 Is this possible using this fork and how could it be done using the GUI or the command line

I said it looks like it will do what I'm looking for but maybe not completely. What I would like to do is to be able to connect to other network nodes so that I instead of connecting to 127.0.0.1 are connecting to e.g 192.168.0.10 (in my case a ESPHome based device or even my router since I'm behind a NAT:ed ISP network). And I need to use the funnel feature because I sometimes can't connect from a Tailscale equiped device

So maybe doing this: tailscale serve https:443 /homeassistant http://127.0.0.1:8123 tailscale serve https:443 /device1 http://192.168.0.22:80 tailscale serve https:443 /router http://192.168.0.1:80 tailscale funnel 443 on

or if not working: tailscale serve https:443 / http://127.0.0.1:8123 tailscale funnel 443 on tailscale serve https:8443 / http://192.168.0.22:80 tailscale funnel 8443 on tailscale serve https:10000 / http://192.168.0.1:80 tailscale funnel 10000 on

lmagyar commented 5 months ago

There is no GUI in the add-on to configure multiple serve/funnel ports, because it is planned by Tailscale that they will make one in the future (but don't wait for it)... :)

What I suggest (it is possible with the official add-on also):

lmagyar commented 5 months ago

Oh, and tailscale funnel's cli syntax has changed (they made a mixed mess with serve), see https://tailscale.com/kb/1311/tailscale-funnel

You need only 3 funnel commands (no serve needed), like: /opt/tailscale funnel --bg --https=443 --set-path=/homeassistant http://127.0.0.1:8123

lmagyar commented 3 months ago

Closing, because there is no reply whether it was successful.