I am new to home assistant. When accessing home assistant using http://:8123 it works without any problem. I have then place it behind pfsense with haproxy+acme, if I access homeassistant using https://homeassistant.. I am able to reach the username and password box but after successfully typing in the username and password I get the said error message. What settings have I missed in home assistant to make this work with behind haproxy with https? Please help
Have you checked the “settings” in your “router”, and “firewall” ?
And is there any logs in HA,( i.e. rejecting of connecting attempts) … and of-cause you have tried from other Devices and Browsers, or ?
The screenshot that I have provided came from my firewall, where configured HAProxy within pfsense to perform the reverse proxy. I have forwarded port 443 on my firewall. I confirmed that I was able to connect through the firewall:
2022-03-28 05:12:22 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 1.124.111.152 (1.124.111.152). (Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:98.0) Gecko/20100101 Firefox/98.0)
2022-03-28 05:14:31 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 1.124.111.152 (1.124.111.152). (Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:98.0) Gecko/20100101 Firefox/98.0)
I have tried this on 2 devices. On a laptop using mozilla browser (hotspot to a phone) and on my pixel 4 using HA mobile app (while connected to 4G). Both did not work.
if you forward 443 to HA i suspect it want’s SSL enabled and certificate, have you tried to enable Debug, to get just a-little more info, … as you so far only show /half pics from your router, i doubt anyone can help you, other with suggestions( i.e. read every docs in regards to HAProxy+acme) … obviously the login-request comes to HA, but handled by “Ban”
PS: i assume you do understand, that its an external IP that tries to access HA
IPv4 range owned by Telstra Pty Ltd and located in Australia (AU)
So read your documentation for your integration(HAProxy+acme) and HA
Thank you for responding. Finally figured out what is the cause of the issue. Reordering the ACL’s and putting HomeAssistant at the very top of the list fix the problem. I assume because of the websocket declared for surveillance station was causing the problem.
Good to hear you solved it,… if you get other problems/issues, i think you would get more response to your post, if you show, i.e. how you have Configured things / or how your “Code” looks like etc. … Pic in all honer, to show “status” etc, but a more detailed setup/config, code , always attracts more attention, as people can see what you have tried etc. … Good luck