被新版Core逼疯了..还限制公网登录....
本帖最后由 cookiesliy 于 2024-3-31 14:51 编辑我是电信公网IP, 直接映射Hass端口,设置了DDNS....
本来用着老旧版本好好的. 升级后搞了半天把报错的修复的差不多了,然后在外登录Hass. 用外面的网络直接进不去了... 提示"Unable to connect to Home Assistant."
日志里"Login attempt or request with invalid authentication from xxx.xxx.xxx.xxx"
http:
use_x_forwarded_for: true
trusted_proxies:
- 172.30.33.0/24
- xxx.xxx.xxx.xxx/24 没这个问题呀
Core
2024.3.3
Supervisor
2024.03.1
Operating System
12.1
前端
20240307.0 qxdnzx 发表于 2024-3-31 16:35
没这个问题呀
Core
如果你APP一直都登录着,好像倒是没问题, 我手机也能进.
但用新网页或者退出来重新登录就一直提示 Unable to connect to Home Assistant. 不会,跟你一样的设置,唯一区别我是联通公网,正常链接。你检查下网络设置吧 好像不是hass之前试过,换了域名就好。 vitc 发表于 2024-3-31 20:44
http:
use_x_forwarded_for: true
trusted_proxies:
后面那个写内网IP还是公网IP... 写在yaml里吗? 从23.12版本就开始限制公网了,需要开启白名单才行。 没遇到过这种情况 没遇到,目前公网登录正常