Please explain these error messages

Hi all,

I’m running HA in a Docker Container on my OMV NAS and I have started getting the following errors in HA every few minutes:

ERROR (MainThread) [homeassistant.components.http.forwarded] Received X-Forwarded-For header from an untrusted proxy 172.23.0.2

172.23.0.2 being the IP of my Cloudflared Container. I’ve changed nothing in either Containers for months and wondering why all of a sudden I have these errors.

Ideas appreciated and TIA.

It means you are not connected directly through HA and are passing through another unexpected server

If the server is expected you should add it to trusted_proxies

You probably need use_x_forward_for as well

Thanks for your reply, appreciated.

When you say “passing through another unexpected server” do you mean the Cloudflared Container?

Why do you think this error has only recently started happening when nothing has changed?

Thanks,

Greg

If the cloud flare container belongs to ip
In error message, Yes.

:man_shrugging:
No clue really.
Maybe changes at cloudflare.

Just in case you don’t know what it is, link below is good explanation

X_forward_for](X-Forwarded-For - HTTP | MDN)

1 Like