Skip to content

no good way yet to detect IPv6 addresses when using privacy extensions (which is probably the default) #16

@do3cc

Description

@do3cc

I am using Ubuntu 14.04 with a fritzbox router and an internet provider that provides native V6.
I can configure the router to allow specific machines to be accessible from the internet via V6, then no natting in any way is necessary.

I get a bunch of ip address, local ones and global ones.
I get a temporary one, which is one generated because of privacy extensions. This ip is used for outgoing connections.
I get my global one, this one is used for incoming connections.
I get multiple deprecated ones, this is because telcos suck and want to make your life miserable by changing your ip every 24 hours so that you can't put your ip in a normal dns entry.

All ip addresses have the same netmask, so I can't filter them by netmask, they are all on the same interface. ipaddresses does not provide information if an address is a privacy extended one.

Web services do not work, because they see my privacy ip, but Fritzbox does not forward my privacy ip to me.

I don't know what the answer can be. I opened a feature request for ipaddresses package: https://bitbucket.org/al45tair/netifaces/issue/11/provide-a-way-to-access-flags-for-ip

In the meantime, I started to use the command detector:

dyndnsc --debug --updater-nsupdate --updater-nsupdate-hostname=xxx.nsupdate.info --updater-nsupdate-userid=xxx.nsupdate.info --updater-nsupdate-password=xxx --detector=command,command:'ip addr | grep inet6 | grep -v deprecated | grep -v temporary | grep global | perl -pe '"'s/.?inet6 ([0-9a-f:]+[0-9a-f:]).*/\1/'"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions