#HAC keeps getting banned at 127.0.0.1

1 messages · Page 1 of 1 (latest)

limber acorn
#

Hey all, I have recently signed up to HAC to mainly support the project but also for WAF. However, it keeps getting banned on my server with the ban being 127.0.0.1
I have tried lots of the other fixes in the forums of adding 127.0.0.1 as supported proxy etc

http:

Enable ha-proxy from opnsense

use_x_forwarded_for: true

trusted_proxies:

- 192.168.1.1

- 127.0.0.1

Enable IP banning

ip_ban_enabled: true
login_attempts_threshold: 10 # Number of failed login attempts before banning the IP

Ignore the comments, that was me commenting it out to see if it made any difference but it doesn’t.

Any help super appreciated 💙

dusky sky
#

This is a known behavior with HAC remote access. From the documentation:

Remote access - Limitations
The IP address of the incoming request is not being forwarded. This means that you cannot use remote access if you are using one of the following network scenarios:

  • If your Home Assistant instance has configured 127.0.0.1 or ::1 as trusted networks or proxies.
  • If you use IP bans, the remote connection will be banned as a whole instead of just the address from which the incorrect passwords were entered.
    We are currently exploring a solution for this issue.
#

You have to disable ip banning and 127.0.0.1 as trusted proxy.