-
-
Notifications
You must be signed in to change notification settings - Fork 28.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HA container's root webserver not accessible over vpn while HA container's web api and other containers on the same device are accessible. #117656
Comments
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) http documentation |
Additional note: Create sensor:
Get sensor state:
The sensor is being created with the POST, and the GET request for the sensor state is responded to properly over the vpn. So HA is replying to curl requests over the vpn -- why isn't it replying to the HA app or standard web browsing over the vpn? Edit: Additional api request testing I've confirmed I can access the API over both the local net and vpn via the following jquery in Kiwi Browser dev console, with a successful replying showing sensor state:
On the same browser (kiwi-browser), I am unable to navigate to the root home assistant webpage (http://192.168.0.5:8123/) while on the VPN, it times out after loading forever. Looking at the dev console, I can see that only the initial page load request is sent, and nothing is sent back. Why can I access the api everywhere, but the root webserver only on the local net? |
Issue was high mtu -- fixed by putting |
The problem
I’m running containerized HA via docker-compose running on a raspberry pi 4 8gb
My HA instance is on at http://192.168.0.5:8123/, i can access that from the local net, but not the VPN
My Node-Red instance is accessible at http://192.168.0.5:1880/ from the local net and the VPN
My Hass-configurator instance is available at http://192.168.0.5:3218/, I can also access this from both the local net and vpn
I noticed that it seemed like the webpage was loading forever so I curled it, and that was successful as well. Let me know if any of you would like to see curl output
I only have one error in my error log, but I’ve been getting that error since I installed HA and long before I attempted connecting via VPN:
Since I can navigate to the node-red and hass-configurator pages, I have to assume the issue lies directly with Home Assistant. I haven’t edited my configuration.yaml in any way to support using the VPN (i.e. allowing connection from the vpn’s lan), am I missing something?
Edit: Additional Note
I realized that the issue is with the reply from the HA webserver because of this:
I connected my phone to wi-fi and disabled the vpn, then logged into HA. On my dashboard there is a button card that controls a light in my room.
I disabled wifi and connected the vpn
I pressed the button to toggle the light, and the light toggles! The state of the button as shown by the page doesn’t change though. If i refresh the page, it times out. This leads me to believe that requests are getting sent to and processed by HA, HA just cant reply.
How can I troubleshoot the reason why the HA webserver isn’t replying to IP’s on the VPN lan?
Edit 2: I've also created a forum post and asked extensively in the discord about this, no one knows what the problem and since it's only occurring with the HA webserver I assume it's a HA bug.
What version of Home Assistant Core has the issue?
2024.5.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
http
Link to integration documentation on our website
https://www.home-assistant.io/integrations/http/
Diagnostics information
No response
Example YAML snippet
The text was updated successfully, but these errors were encountered: