Setup Cloudflare tunnel to a VM

I have found the solution and it was easy…with a catch!
Configuration.yaml has to be modified in order to add the proxy. The proxy, in my case, is the IP of the bridge NIC (br0)

In my case the configuration.yaml is like this:

http:
use_x_forwarded_for: true
trusted_proxies:
- 192.168.1.33

BUT the catch is that you have to “Restart Home Assistant” a “Quick reload” IS NOT ENOUGH!!!

When I made my changes I only used Quick reload and this is why it didn’t work! I hope it will be useful to someone.

By the way, the Cloudflared addon for Homeassistant is not needed if you already have Cloudflared app installed in Truenas.

1 Like