FS#66897 - [geoip-database] IPv4-mapped addresses in GeoIPv6.dat

Attached to Project: Arch Linux
Opened by Miha Verlic (fluke571) - Thursday, 04 June 2020, 12:35 GMT
Last edited by Evangelos Foutras (foutrelis) - Thursday, 20 October 2022, 02:35 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Evangelos Foutras (foutrelis)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

geoip-database 20200519-1 does not contain IPv4-mapped addresses in GeoIPv6.dat anymore. This breaks compatibility with ngx_http_geoip_module and possibly others, where you could simply use GeoIPv6.dat to map addresses to countries since you can't specify database per protocol. Is there any chance to add IPv4 mapped addresses to GeoIPv6.dat?

Additional info:
geoip-database 20200519-1

Steps to reproduce:

before (geoip-database 20180403-1):
~]# geoiplookup6 -f /usr/share/GeoIP/GeoIPv6.dat ::ffff:195.66.1.4
GeoIP Country V6 Edition: DE, Germany

now:
~]# geoiplookup6 -f /usr/share/GeoIP/GeoIPv6.dat ::ffff:195.66.1.4
GeoIP Country V6 Edition: IP Address not found
This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Thursday, 20 October 2022, 02:35 GMT
Reason for closing:  Fixed
Additional comments about closing:  neat! -- geoip-database 20221018
Comment by Evangelos Foutras (foutrelis) - Thursday, 04 June 2020, 17:39 GMT
Looks like an upstream issue exists for this at https://github.com/sherpya/geolite2legacy/issues/12
Comment by Miha Verlic (fluke571) - Wednesday, 19 October 2022, 23:28 GMT
Upstream finally fixed this! ChangeLog from 2022/09/18:
added IPv4 mappings to IPv6 databases.
GeoIPv6.dat, GeoIPCityv6.dat, GeoIPASNumv6.dat can now be queried with IPv4 mapped addresses (e.g. ::ffff:1.1.1.1), so they can be used with Nginx (some info here, here, here). Cheers to Adrian M for the hint.

https://mailfud.org/geoip-legacy/

Please update geoip-database package with latest databases, thanks!

Loading...