Trusted_networks don't work

Hello everyone :slight_smile:

Usually I’m connecting to HASS through SSL-enabled domain and everything works great.
But a few days ago I didn’t have an internet for a few hours and found myself totally losing control over my home.

So I’ve tried to connect locally:

  • Desktops and androids work with SSL hostname mismatch warning.
  • iOS devices load login page but can’t login. Looks like it’s related to how the SSL websocket works on iOS.

trusted_networks looked the best solution but it doesn’t work for me at all.

I have HASS installation on a Mac connected to Time Capsule (router).
Mac is 10.0.1.50, which is part of router’s range 10.0.1.2-200, router’s IP is 10.0.1.1

HTTP Config:

http:
  server_port: 3333
  api_password: xxx
  ssl_certificate: '…fullchain.pem'
  ssl_key: '…privkey.pem'
  use_x_forwarded_for: true
  trusted_networks:
    # - 10.0.x.x
    # - 10.0.x.x/24
    - 10.0.1.1
    - 10.0.1.1/8
    - 10.0.1.1/24
    - 10.0.1.50
    - '10.0.1.50'
    - localhost
    - sterling.local
    - 127.0.0.1
    - '127.0.0.1'
    - ::1

Connecting to any IP/name through http returns: The server unexpectedly dropped the connection.

What am I doing wrong?
Please help!

  trusted_networks:
    - 10.0.1.0/24

That didn’t help, still dropping the connection :disappointed:

Trusted networks only means that devices connecting from the specified ip addresses are not asked for a password, it has nothing to do with allowing or disallowing a connection.

If you have SSL enabled, you cannot connect via http. Ios devices are a pain in the back side for this scenario, basically.