Access local instance while on local wifi? #201
-
Hi guys. I wanna replicate the last bit of my previous setup by using cloudflared. This is what I did:
I don't really know how these cloudflare tunnels work but I assume the certificate on the edge must match with the origin?
Has anyone implemented something similar? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hi Leo, for my local connections, I am using the IP of HA in the App (mapped to the Wifi Network so the app knows when to use local and when not) and for my browser I simply do not mind the added latency. Nevertheless, I get your point and agree that a "perfect" set-up does route your local traffic to HA via the internal IP and not the tunnel. Now what I do not understand: How you "ruined" your external connection by changing the local DNS. I would also not use NPM in this process, but only HA itself. My approach would be the following:
|
Beta Was this translation helpful? Give feedback.
-
Hi Tobias thanks for the help and the awesome addon 👍
Is it possible it has to do with Lets encrypt? perhaps the I didn't know about the origin certificate. Will take a look tomorrow but if the cert is signed by a trusted CA then it may work Thanks! |
Beta Was this translation helpful? Give feedback.
-
So.. My issue was I changed from After changing back to Sorry for the confusion, and thanks for the help :) |
Beta Was this translation helpful? Give feedback.
So.. My issue was I changed from
assistant.mydomain.com
toassistant.homelab.mydomain.com
at some point and that broke the SSL cert generated by cloudflare.After changing back to
assistant.mydomain.com
and chaing the DNS rewrite rules it seems to be working as expected!Sorry for the confusion, and thanks for the help :)