Connect a Google Home to Home Assistant behind a Cloudflare Tunnel

Hi,

I’ve just got cast working to a Google Nest Hub (2nd gen) after a lot of faffing…

I’m using the Cloudflared add-on which works perfectly. I was getting authentication fail and unable to connect errors when starting the cast. For me, adding a bypass rule for traffic hitting Cloudflare from my external IP did the trick.

In Cloudflare console → ZeroTrust → Access → Access Group, add a new group with the Selector set to IP Address/Range and a value of whatever your external IP address is.

Back in the ZeroTrust Home Assistant application, under Policies tab, Add New…
Call it ‘bypass for internal traffic’ or whatever, ‘Action’ set to BYPASS and add in the new Access Group created above.

This should allow traffic originating from your own external IP to completely bypass Cloudflare auth while still enforcing it for all other traffic.

Worked for me, with the added plus of also fixing the long standing problem I had getting my Galaxy Watch working with HA too.

:smile:

1 Like