Welcome! Log In Create A New Profile

Advanced

GeoIP module IPv6 support

Posted by R1CH 
GeoIP module IPv6 support
March 14, 2011 06:11AM
According to the maxmind website, there is IPv6 support with the C API and an IPv6 database. It would be nice if this could be supported in nginx for resolving countries when using IPv6.

http://www.maxmind.com/app/faq#ipv6
Re: GeoIP module IPv6 support
June 10, 2011 07:24AM
Hi.

I've written a patch that uses GeoIP IPv6 database. I've made some quick tests (connect with my external IPv4 and my public IPv6) and it seems this patch works.

Usage is simple. If you specify the IPv6 database, it will use it for IPv6 and IPv4 addresses (same variables).

If you specify the IPv4 database, it will be used only for IPv4.

This patch is based on Nginx 1.0.4.

Best regards.
Attachments:
open | download - nginx-geoipv6.patch (7 KB)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 100
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready