Login attempt or request with invalid authentication from ISP router ip (192.168.X.X) (Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0

Hi, I’m setting up a new Linux server (Ubuntu) for my home hassistant.
I have HA supervised, installed into a container.
NGINX proxy manager (container) for the reverse proxy.
DuckDNS (container)

all managed by Portainer.

I have created the host into NGINX of my duckdns subdomain , with lets encrypt. Http scheme. The proxy give me green light on the status.

My Linux server is connected to a Netgear Acces point. The acces point is connected (wan port) to the ISP router. NAT between Router and Access point and between Access point and Server is active on ports 80 443.

If I try to connect to my duckdns subdomain, I get error:
'A request from a reverse proxy was received from 172.17.0.5, but your HTTP integration is not set-up for reverse proxies ’

172.17.0.5 is the docker IP address of the proxy server, so I added to HA configuration file:
'http:
use_x_forwarded_for: true
trusted_proxies:
- 172.17.0.5 ’

Try to reconnect and :
‘Login attempt or request with invalid authentication from ISP router ip (192.168.X.X)’

I try to change the proxy host scheme to HTTPS or add the ISP router ip to the trusted proxies but didn’t work… 400: Bad Request

Any idea how to resolve …

Tks in advance.

Francesco