Suddenly 'Unable to connect to Home Assistant' after logging in?

Hi!

Since 3 days ago, out of nowhere, i’m unable to login trough my external address which was working for almost 3 years know.
Local access still works fine.

Tried clearing my browser history/incognito mode: then i will get to the login page trough my external address but after logging in i get: ‘Unable to connect to Home Assistant.’

In home assistant i get the following notification:

Login attempt or request with invalid authentication from 192.168.2.254 (192.168.2.254). See the log for details.

Which is strange because this is not the ip address of my reverse proxy (that is 192.168.2.1)

In the log i get the following:

WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 192.168.2.254 (192.168.2.254). Requested URL: '/auth/token'. (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36)

Same thing with the Home Assistant App.

My Configuration:

I use traefik in a docker container on 192.168.2.1.
Domainname is from Cloudflare, DNS setting is home.externalurl.com
443 and 80 are port forwarded on the router (192.168.2.254)

homeassistant:
  external_url: "https://home.externalurl.com"
  internal_url: "http://192.168.2.2:8123"
http:
  use_x_forwarded_for: true
  trusted_proxies: (was 192.168.2.1 but i tried to fix it this way)
    - 192.168.2.0/24
    - 192.168.90.0/24

I cannot understand why it suddenly stopped working.
Is there somebody who can help me with some clues?

Fixed it.
I had to change ‘DNS Only’ to ‘Proxied’ in cloudflare.

Not sure why though, shouldn’t matter in my opinion