Skip to content
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

IPv6 Geolocation is not working #8601

Closed
sebastianw opened this issue Aug 19, 2015 · 16 comments
Closed

IPv6 Geolocation is not working #8601

sebastianw opened this issue Aug 19, 2015 · 16 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@sebastianw
Copy link

Hello,

it seems Geolocation is not working at the moment for IPv6 addreses. I tried the PHP and PECL backends and none could locate IPv6 addresses. Also I tried to look trough older issues regarding this but I'm confused about the current status. Is this supposed to work?

@tsteur
Copy link
Member

tsteur commented Aug 20, 2015

I think PECL doesn't support it yet see #6624 but PHP should work. I think it was added in #6690 What exactly does not work for you? In the other issue (#6690) there's some discussion about IPv6 not detecting the location correctly. Is this what you mean?

@sebastianw
Copy link
Author

Yes, I have a lot of IPv6 locations that just show up as unkown. When I look at the source I don't think that the GeoLiteCityv6.dat is even loaded.

@mattab mattab added the Bug For errors / faults / flaws / inconsistencies etc. label Sep 20, 2015
@mattab
Copy link
Member

mattab commented Sep 20, 2015

Yes, I have a lot of IPv6 locations that just show up as unkown.

Do all IPv6 show as unknown, or only "a lot" of them? if some are being geo located then it's working from the Piwik side, and likely the IPv6 not geo located are because the geo location database is still not precise for ipv6 addresses. Could you send some example IPv6 not geo located and some that are?

@mattab mattab added this to the Short term milestone Sep 20, 2015
@sebastianw
Copy link
Author

No, just "a lot" of them. My work IP address shows up unknown, take 2001:780:53d2::1 for example. Some addresses that are successfully geo-located are for Deutsche Telekom addresses.

@mattab
Copy link
Member

mattab commented Oct 2, 2015

@sebastianw Could you paste a few examples of IPv6 addresses that don't geo locate?

and a few examples that do geolocate OK?

Thanks!

@mattab
Copy link
Member

mattab commented Oct 2, 2015

@sebastianw
Copy link
Author

but is that coming from the ipv6 file or is it somehow using the IPv4 file for that? because I didn't see any attempt to access the ipv6 database

@angristan
Copy link

Hello, any news for IPv6 support ?

@mattab
Copy link
Member

mattab commented Jan 12, 2016

Hi @angristan - no news yet, and we likely won't be working on this feature for a while. We would welcome a pull request for this nice feature!

@grzchr15
Copy link

http://www.tcpiputils.com/browse/ipv6-address/2001:9d0:10::1 shows correct IP address 2001:9d0:10::1
Location Austria (AT) flag ASN number 8387
ASN name (ISP) T-Systems Austria GesmbH

http://demo.piwik.org/index.php?module=API&method=UserCountry.getLocationFromIP&ip=2001:9d0:10::1&format=xml
Shows incorrect
<country_code>US</country_code><region_code>NJ</region_code><city_name>Middletown</city_name><area_code>732</area_code>40.397-74.108<postal_code>07748</postal_code>AT&T WirelessAT&T Wireless<continent_code>amn</continent_code><continent_name>Nordamerika</continent_name><country_name>Vereinigte Staaten</country_name><region_name>New Jersey</region_name>2001:9d0:10::1

@mattab
Copy link
Member

mattab commented Dec 27, 2016

We need help to make this one work. Pull request very welcome

@grzchr15
Copy link

I still struggle how to help implement it. I have a intranet list of ranges and the maxmind dbs. I think in v3.x i need to create a locationprovider. Any more hints where i need to hook , change db schema?, .. docs.
And how to debug the new parts and not complete piwik flows

@mattab
Copy link
Member

mattab commented Dec 27, 2016

our developer docs are here: http://developer.piwik.org/
There's some work being done in GeoIP2 see: https://plugins.piwik.org/GeoIP2/ #4487

@mattab
Copy link
Member

mattab commented Feb 19, 2018

update: we are planning to implement the new Geoip2 support soon, which should also bring support for Ipv6 geo-location.

@mattab mattab modified the milestones: 3.6.0, 3.5.0 Apr 9, 2018
@sgiehl
Copy link
Member

sgiehl commented Apr 30, 2018

Note: GeoIP2 will fully support IPv6 geolocating.
But we won't fix geolocation IPv6 addresses with GeoIP Legacy (PECL)

@mattab
Copy link
Member

mattab commented May 2, 2018

Fixed in #4487

@mattab mattab closed this as completed May 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

6 participants