LaBoss
(Daniel Barbosa)
January 3, 2020, 2:05pm
1
Hello i configure HA to use trusted networks, but not work!
My cfg is:
auth_providers:
- type: homeassistant
- type: trusted_networks
trusted_networks:
- 192.168.1.156
http:
base_url: hass.???????????????
cors_allowed_origins:
- https://google.com
- https://www.home-assistant.io
use_x_forwarded_for: true
ip_ban_enabled: True
login_attempts_threshold: 3
trusted_proxies:
- 127.0.0.1
- ::1
I’m using a HADashboard on this IP, and whenever I renounce HA DashBoard is banned
(He’s getting banned because the camera token has changed and DashBoard doesn’t know yet)
192.168.1.156:
banned_at: '2020-01-03T13:58:16'
Wasn’t the IP supposed to be ignored?
What am I doing wrong?
Thanks
According to the docs, you need to provide a network of addresses, not a single IP. So, for your code, you need to change to this:
auth_providers:
- type: trusted_networks
trusted_networks:
- 192.168.1.0/24
LaBoss
(Daniel Barbosa)
January 21, 2020, 1:49pm
3
Hello thanks for the reply on docs say
trusted_networks
(list)(Required)
A list of IP address or IP network you want to whitelisted. It accepts both IPv4 and IPv6 IP address or network
I think it should work with a fixed IP, They also give the example of the local ip 127.0.0.1
I tested it with my installation. - 192.168.1.100
didn’t work, but - 192.168.1.100/24
does.
127.0.0.1 is not a local network address; It’s the local loopback address and different in terms of IP networks.
1 Like
LaBoss
(Daniel Barbosa)
January 21, 2020, 1:58pm
5
Thanks i dint try with subnet
Thanks a lot for the help
1 Like