Trusted networks not working

My network range is 192.168.178.*

My configuration.yaml is:


# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Text to speech
tts:
  - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

# assuming you have only one non-system user
homeassistant:
  auth_providers:
    - type: trusted_networks
      trusted_networks:
        - 192.168.178.0/24
        - 127.0.0.1
        - ::1
      allow_bypass_login: true
    - type: homeassistant

When I try to login the message appears that my computer is blocked But it has ip number 192.168.178.20. Anyone any idea what I’m doing wrong. Already restarted HA, removed history of browser.

@geepie did you manage to solve the issue? If not, what’s the exact error you’re seeing in the login page? Config wise it looks good in my opinion.

I’m having a very similar issue. It used to work fine with version 2021.5.4 but I’ve set-up a new instance running on 2021.9.7 and after basically mirroring the old configuration on the new instance, it no longer works. Current configuration is the following:

# Allow login without password from local network
homeassistant:
  auth_providers:
    - type: trusted_networks
      trusted_networks:
        - 192.168.26.0/24
        - 192.168.25.0/24
      trusted_users:
        192.168.25.0/24:
          - 963018ce6f6b43bf9bbc56e3661d8d4b
        192.168.26.21:
          - 578a0bfed9b4468cbae6a2a4fa76666a
          - 963018ce6f6b43bf9bbc56e3661d8d4b
        192.168.26.72:
          - 578a0bfed9b4468cbae6a2a4fa76666a
          - 963018ce6f6b43bf9bbc56e3661d8d4b
        192.168.26.62:
          - 578a0bfed9b4468cbae6a2a4fa76666a
          - 963018ce6f6b43bf9bbc56e3661d8d4b
        192.168.26.50:
          - 578a0bfed9b4468cbae6a2a4fa76666a
          - 963018ce6f6b43bf9bbc56e3661d8d4b
        192.168.26.0/24:
          - 963018ce6f6b43bf9bbc56e3661d8d4b
      allow_bypass_login: true
    - type: homeassistant

I saw some threads about people complaining of issues when they were using a proxy. But I get “Login aborted: Your computer is not allowed.” no matter if I access Home Assistant over the proxy or directly.

Edit: For the record, I think I was being fooled by the always-on VPN on my work laptop when I tried this, since with no real change to the configuration it started working like a charm for me (with the config above). (Running Home Assistant 2021.9.7) Cheers!