IPv6 support on Domoticz

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

User avatar
chimit
Posts: 259
Joined: Saturday 18 April 2015 18:55
Target OS: Raspberry Pi / ODroid
Domoticz version: master
Location: Rotterdam, the Netherlands
Contact:

Re: IPv6 support on Domoticz

Post by chimit »

Okay. Forget about the hassle with patches and stuff.
Since we are using SVN, why not use it?

You can check out the IPv6-enabled code via svn checkout svn://svn.code.sf.net/p/domoticz/code/branches/ipv6 domoticz-ipv6

Via this channel, it's a lot easier to distribute updates and bug fixes, compared to patch files.
In fact, one of the .diff files in the earlier post made the code not compile on Debian. This has been solved in the above branch.
So from now on this is the official way to test this piece of code. All users are encouraged to participate. So even if you can't code, you can still contribute to Domoticz "open-source".

I will try to keep this branch in sync with the SVN head version as much as possible.
MacJL
Posts: 51
Joined: Tuesday 22 April 2014 22:17
Target OS: OS X
Domoticz version: Beta
Location: France
Contact:

Re: IPv6 support on Domoticz

Post by MacJL »

I've compiled it on Fedora. It seems to work great both in IPv4 and IPv6. The server works has both IPv4 and IPv6 address.
tlpeter
Posts: 191
Joined: Wednesday 26 November 2014 18:43
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: IPv6 support on Domoticz

Post by tlpeter »

May i ask about the status?
I see SVN being mentioned but i do not know how that all works.
I can test but compiling stuff is a no go for me :o
MacJL
Posts: 51
Joined: Tuesday 22 April 2014 22:17
Target OS: OS X
Domoticz version: Beta
Location: France
Contact:

Re: IPv6 support on Domoticz

Post by MacJL »

Hello

I have a problem with the System Alive checker (Ping) with the IPv6 version. The ping devices works great with an IPv4, but does not with an IPv6 or a hostname. Same hostname works with th 'IPv4 only' version.

Regards,
User avatar
gizmocuz
Posts: 2552
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: IPv6 support on Domoticz

Post by gizmocuz »

tlpeter wrote:May i ask about the status?
I see SVN being mentioned but i do not know how that all works.
I can test but compiling stuff is a no go for me :o
in the latest beta IPV6 for the web server/domoticz remote is implemented

(not for the system alive checker (ping), someone have to supply a patch for this)

Why don't you keep your in-house devices IPV4 ? that makes total sense
(connections from the internet IPV6, translated to internal IPV4, makes sense too)

you know there are many private IPV4 addresses you could use internally ? :mrgreen:
Quality outlives Quantity!
MacJL
Posts: 51
Joined: Tuesday 22 April 2014 22:17
Target OS: OS X
Domoticz version: Beta
Location: France
Contact:

Re: IPv6 support on Domoticz

Post by MacJL »

gizmocuz wrote:in the latest beta IPV6 for the web server/domoticz remote is implemented

Thank you. Connection in IPv6 seems to work.

But I have a problem whith Local networks which can access without a password in IPv6. If you putt "::1" as a network which can access without password, it does'nt work.
See the conf I've tested in attached file.
Attachments
ScreenShot002.png
ScreenShot002.png (22.72 KiB) Viewed 2475 times
User avatar
chimit
Posts: 259
Joined: Saturday 18 April 2015 18:55
Target OS: Raspberry Pi / ODroid
Domoticz version: master
Location: Rotterdam, the Netherlands
Contact:

Re: IPv6 support on Domoticz

Post by chimit »

Thanks, MacJL.

This is why the IPv6 patch was available for testing a long time, but no one seemed interested.
Anyway, I will test as well. And see for a solution, when I get the time for it.

== Rene
tlpeter
Posts: 191
Joined: Wednesday 26 November 2014 18:43
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: IPv6 support on Domoticz

Post by tlpeter »

chimit wrote:Thanks, MacJL.

This is why the IPv6 patch was available for testing a long time, but no one seemed interested.
Anyway, I will test as well. And see for a solution, when I get the time for it.

== Rene
Hi Rene, i asked about how to implement the patch but nobody respond.
Not everybody can implement a patch as not everybody is a software engineer.
I will make a backup image and try it today.
User avatar
chimit
Posts: 259
Joined: Saturday 18 April 2015 18:55
Target OS: Raspberry Pi / ODroid
Domoticz version: master
Location: Rotterdam, the Netherlands
Contact:

Re: IPv6 support on Domoticz

Post by chimit »

tlpeter wrote:
chimit wrote: I will make a backup image and try it today.
No need to do anything fancy anymore, as the code is in main trunk (beta) already.
tlpeter
Posts: 191
Joined: Wednesday 26 November 2014 18:43
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: IPv6 support on Domoticz

Post by tlpeter »

Hi Chimit, i have no clue what you are talking about :mrgreen:
a db backup is enough you mean?
Two days ago after an upgrade the PI did not boot anymore and perhaps it had something to do about IPv6 implemented with a workaround while IPv6 was implemented in Domoticz but i am not sure.

I rather spend some time on the image than reinstalling the lot which also took me some hours in the end including finetuning everything.
User avatar
chimit
Posts: 259
Joined: Saturday 18 April 2015 18:55
Target OS: Raspberry Pi / ODroid
Domoticz version: master
Location: Rotterdam, the Netherlands
Contact:

Re: IPv6 support on Domoticz

Post by chimit »

Ah... Sorry, I misinterpreted.

I meant an update is sufficient, no need to do anything fancy anymore besides that, like patching the code or something like that.
And true... a backup is always convenient.

== Rene
tlpeter
Posts: 191
Joined: Wednesday 26 November 2014 18:43
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: IPv6 support on Domoticz

Post by tlpeter »

I just upgraded but no IPv6 at all
When i do an ifconfig then i only have an IPv4 address.
I have native IPv6 implemented by XS4all.
All traffic first checks for IPv6 like www.google.com and if they have IPv6 then this is used, if not IPv4 kicks in.
With the workaround mentioned before the PI got an IPv6 address (not always) but now it doesn't
MacJL
Posts: 51
Joined: Tuesday 22 April 2014 22:17
Target OS: OS X
Domoticz version: Beta
Location: France
Contact:

Re: IPv6 support on Domoticz

Post by MacJL »

tlpeter wrote:I just upgraded but no IPv6 at all
When i do an ifconfig then i only have an IPv4 address.
I have native IPv6 implemented by XS4all.
All traffic first checks for IPv6 like http://www.google.com and if they have IPv6 then this is used, if not IPv4 kicks in.
With the workaround mentioned before the PI got an IPv6 address (not always) but now it doesn't
You have to enable IPv6 on the OS before being able to use it with domoticz. The update of domoticz was just to listen to IPv6 connections.

Are you using domoticz on a Raspberry Pi?
tlpeter
Posts: 191
Joined: Wednesday 26 November 2014 18:43
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: IPv6 support on Domoticz

Post by tlpeter »

Yes I am.
MacJL
Posts: 51
Joined: Tuesday 22 April 2014 22:17
Target OS: OS X
Domoticz version: Beta
Location: France
Contact:

Re: IPv6 support on Domoticz

Post by MacJL »

Try to comment the line :
alias ipv6 off
in the file : /etc/modprobe.d/ipv6.conf
and reboot the Pi.

[Edit]
If it's not working, add 'ipv6' to /etc/modules :
echo "ipv6" >> /etc/modules
tlpeter
Posts: 191
Joined: Wednesday 26 November 2014 18:43
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: IPv6 support on Domoticz

Post by tlpeter »

Command or uncommand?

This is how it is now:

# Don't load ipv6 by default
alias net-pf-10 off
#alias ipv6 off
MacJL
Posts: 51
Joined: Tuesday 22 April 2014 22:17
Target OS: OS X
Domoticz version: Beta
Location: France
Contact:

Re: IPv6 support on Domoticz

Post by MacJL »

tlpeter wrote:# Don't load ipv6 by default
alias net-pf-10 off
#alias ipv6 off
It's ok
tlpeter
Posts: 191
Joined: Wednesday 26 November 2014 18:43
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: IPv6 support on Domoticz

Post by tlpeter »

putting the ipv6 in to modules works.
Thanks.

Edit still can't ping www.google.com by IPv6
IPv4 still seems to be used first at all times.
MacJL
Posts: 51
Joined: Tuesday 22 April 2014 22:17
Target OS: OS X
Domoticz version: Beta
Location: France
Contact:

Re: IPv6 support on Domoticz

Post by MacJL »

Do you use the 'ping6' command?
tlpeter
Posts: 191
Joined: Wednesday 26 November 2014 18:43
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: IPv6 support on Domoticz

Post by tlpeter »

No (stupid me)
When i do then i do not see an IPv6 address but also no IPv4 address which normally does so i guess it works :-)
My brain is working half because of my holiday i guess :mrgreen:
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest