-
Notifications
You must be signed in to change notification settings - Fork 674
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
Enable support for IPv6 #355
Comments
Go to the HomeAssistant Config file under component http and add server_host: "::0" |
@Fubi95 yeah, I added that to the documentation. Note that the homeassistant container is not part of the However, the problem I found is for the addons, which typically use the I have abandoned this route, as it started to seem (at least to me) painful and cumbersome. And Docker itself has no clean semantics and features for IPv6 stack of containers IMHO. So not sure if it is worth having this issue opened, as I don't know if it will benefit anybody in the short term. |
@alexbarcelo I would love to expose my hassio on IPv6 but as far as i understand it's not possible now, correct ? |
@donnib You can expose hassio to IPv6 because, as I said, that container is not part of the That will expose hassio to IPv6, but will not work for any other container in the hassio environment. That was my use case, and was not supported. ATM I am using vanila dockerized hass, so you should try it yourself /shrug |
(see https://www.home-assistant.io/components/http/ > |
@alexbarcelo the doc says explicitly : "Don’t use option server_host on a Hass.io installation!" so i still don't know how to do this |
So... either I did not see it, or it was not there when I was toying around.
If somebody wants to try it, go ahead. I have stopped using Hass.io a while ago so I will keep an eye on the project but I am not doing anything with it at the moment.
|
I'm open to merging PRs for that but that is no simple task and need a lot of tests and also PRs on another repository to make it working overall instance. |
Sorry if it came out as passive aggressive, wasn't my intention, I was in a hurry. IMHO given my previous experience, Hass.io is phenomenal for easy deployment on typical use cases, specially for non-techie users. Using IPv6 doesn't seem to fit that scenario. IPv6 networks are cumbersome and is very difficult to provide a default behavior one-fits-all that is actually useful. And lots of IoT gadgets are not IPv6 ready, so everything should be dual stack, and to be honest, dual stack feels not so useful right now. With more perspective (from when I started the issue), I think that it is too soon to give support for IPv6 --I feel it would be a waste of efforts given the current IPv6 ecosystem. |
I agree |
@pvizeli @alexbarcelo |
In Spain, there is no ISP offering IPv6 AFAICT. There are some of them using CGNAT, and in those cases you are basically screwed.
You are right that this specific use case is simpler than the original issue --what I had in mind was something along "support the whole IPv6 hybrid network stack inside the IoT local network". However the scenario you describe was (maybe still is) simply solved by changing the `server_host`. It beats me why it is discouraged in the documentation, given that it used to work.
|
@pvizeli do you know why it's not recommended to use |
It is too late for any platform or product to not be fully embracing IPv6. What is difficult (in my experience) is docker networking and IPv6. But that shouldn't hinder the implementation of IPv6 for Home Assistant/Hass.io. |
I Germany many ISPs only offer dslite, where you have a public IPv6 but no IPv4. So if I want to use HA outside my network, I need to use IPv6. And I agree, that IPv6 is the future and it should be supported as soon as possible (not only Hassio, but all applications in general). |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This really should stay open. |
Can we please re-open this? To the people saying it’s too soon for IPv6, it’s been 26 years. |
@codyc1515 just to be clear, on a host level Home Assistant Supervisor supports IPv6: The Core runs in host network mode, as well as Add-on which have host network enabled. Those can directly communicate using IPv6. Also the Supervisor supports setting IPv6 addresses through its network configuration setting. What currently is missing is IPv6 support for the internal isolated |
Thanks for clarifying. I appreciate it. |
The
hassio
bridge network doesn't has the IPv6 network stack enabled."Culprit" seems to be the line at
hassio/docker/network.py
, in particular the parameterenable_ipv6=False
in the method_get_network
.Enabling is not as straightforward as puting there
True
because to set up correctly IPv6 a subnet should be specified. And that subnet is typically provided by the user (if the user is doing globally routable addresses, which is a likely scenario in IPv6 environments).I haven't come up with a proposal on how to address that. I was open to suggestions (if a PR is feasible and appreciated, I can work on that) or some workaround tips otherwise (if there are any).
The text was updated successfully, but these errors were encountered: