Plus de connection depuis l'extérieur depuis MAJ 2022.11.1

Bonjour,

Suite à la dernière mise à jour, je n’arrive plus à me connecter de l’extérieur.
La dernière version fonctionnelle datait d’octobre.

Dans les logs, voici les messages d’erreur.

2022-11-04 16:52:38.493 ERROR (MainThread) [homeassistant.components.http.forwarded] Received X-Forwarded-For header from an untrusted proxy 172.30.33.5
2022-11-04 16:52:38.610 ERROR (MainThread) [homeassistant.components.http.forwarded] Received X-Forwarded-For header from an untrusted proxy 172.30.33.5
2022-11-04 17:08:14.229 ERROR (MainThread) [homeassistant.components.http.forwarded] Received X-Forwarded-For header from an untrusted proxy 172.30.33.5
2022-11-04 17:08:14.360 ERROR (MainThread) [homeassistant.components.http.forwarded] Received X-Forwarded-For header from an untrusted proxy 172.30.33.5
2022-11-04 17:08:14.439 ERROR (MainThread) [homeassistant.components.http.forwarded] Received X-Forwarded-For header from an untrusted proxy 172.30.33.5
2022-11-04 17:08:14.529 ERROR (MainThread) [homeassistant.components.http.forwarded] Received X-Forwarded-For header from an untrusted proxy 172.30.33.5
2022-11-04 17:22:54.829 ERROR (MainThread) [homeassistant.components.http.forwarded] Received X-Forwarded-For header from an untrusted proxy 172.30.33.5
2022-11-04 17:22:54.834 ERROR (MainThread) [homeassistant.components.http.forwarded] Received X-Forwarded-For header from an untrusted proxy 172.30.33.5
2022-11-04 17:22:54.839 ERROR (MainThread) [homeassistant.components.http.forwarded] Received X-Forwarded-For header from an untrusted proxy 172.30.33.5
2022-11-04 17:22:54.844 ERROR (MainThread) [homeassistant.components.http.forwarded] Received X-Forwarded-For header from an untrusted proxy 172.30.33.5
2022-11-04 17:22:54.848 ERROR (MainThread) [homeassistant.components.http.forwarded] Received X-Forwarded-For header from an untrusted proxy 172.30.33.5
2022-11-04 17:57:57.015 ERROR (MainThread) [homeassistant.components.http.forwarded] Received X-Forwarded-For header from an untrusted proxy 172.30.33.5
2022-11-04 17:57:58.061 ERROR (MainThread) [homeassistant.components.http.forwarded] Received X-Forwarded-For header from an untrusted proxy 172.30.33.5

Tout semble ok du coté de l’addon Nginx PM
Je ne vois aucun sujet similaire. Serais-je le seul ?
Qu’est-ce que je peux faire ?

Ma configuration

version core-2022.11.1
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.10.7
os_name Linux
os_version 5.15.61-v8
arch aarch64
timezone Europe/Paris
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 5000
Installed Version 1.27.2
Stage running
Available Repositories 1130
Downloaded Repositories 8
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 9.3
update_channel stable
supervisor_version supervisor-2022.10.2
agent_version 1.4.1
docker_version 20.10.18
disk_total 109.3 GB
disk_used 8.6 GB
healthy true
supported true
board rpi4-64
supervisor_api ok
version_api ok
installed_addons Samba share (10.0.0), File editor (5.4.1), Terminal & SSH (9.6.1), RPi Temp Monitor (0.4), MariaDB (2.5.1), Nginx Proxy Manager (0.12.2), Network UPS Tools (0.11.0)
Dashboards
dashboards 2
resources 4
views 25
mode storage
Recorder
oldest_recorder_run 3 novembre 2022 à 17:50
current_recorder_run 3 novembre 2022 à 21:07
estimated_db_size 667.71 MiB
database_engine sqlite
database_version 3.38.5
[/center]

Hello
Essai ceci, et reboot ton HA

http:
ip_ban_enabled: false
login_attempts_threshold: 15
use_x_forwarded_for: true
trusted_proxies:
- 172.30.33.0/24

1 « J'aime »

Je viens de tester en ajoutant l’IP que tu m’as donné (j’avais un partiel dans le fichier config)

http: 
  use_x_forwarded_for: true
  trusted_proxies:
    - 172.30.33.4
    - 172.30.33.0/24        

Au redémarrage, Impeccable ! C’est reparti ! Top !

Merci ClassicRed

Franck

Penses-tu que j’ai intérêt à ajouter les lignes manquantes :

ip_ban_enabled: false
login_attempts_threshold: 15

Re

de rien :grinning:

Les deux lignes tu peux les viré .

False = Désactivé | True = Activé
Login = nombre de fois a essayé de ce connecté avant d’être banni ( 15 ) mais par défaut c’est 5

A toi de voir pour les gardé ou les virés