{"id":9,"date":"2013-04-11T01:32:16","date_gmt":"2013-04-10T23:32:16","guid":{"rendered":"http:\/\/new.cs-ware.de\/wordpress\/?p=9"},"modified":"2014-05-22T17:43:02","modified_gmt":"2014-05-22T15:43:02","slug":"awstats-geoip-support-for-ipv6","status":"publish","type":"post","link":"https:\/\/www.cs-ware.de\/blog\/archives\/9","title":{"rendered":"AWStats: GeoIP support for IPv6"},"content":{"rendered":"<p><a href=\"http:\/\/www.awstats.org\/\">AWStats<\/a> is a widely used tool for creating website usage statistics. For gathering country stats you have two options in AWStats:<\/p>\n<ul>\n<li>using reverse dns lookup on the IP addresses<\/li>\n<li>use a Geo-IP database<\/li>\n<\/ul>\n<p>Without the usage of plugins only IPv4 is supported. IPv6 support is only available with a plugin, however, only for performing reverse IPv6 lookups and not for the GeoIP plugin.<\/p>\n<p>In order to fill this gap I created a <a href=\"\/blog\/wp-content\/uploads\/2013\/05\/awstats-geoipv6.patch\">patch<\/a> (<a href=\"http:\/\/sourceforge.net\/p\/awstats\/patches\/199\/\" target=\"_blank\">upstream report<\/a>). This patch add a new plugin (geoip6) and adds support for GeoIP lookups for both IPv4 and IPv6.<\/p>\n<p>If you want to use my patch you need the Maxmind <a href=\"http:\/\/www.maxmind.com\/app\/geolitecity\">Geo(Lite) Country IPv6 database<\/a> (the IPv4 database seems to be included) and the <a href=\"http:\/\/search.cpan.org\/~borisz\/Geo-IP-1.41\/\">Geo-IP perl package<\/a> in version &gt;= 1.40 (libgeo-ip-perl in Debian 6; 1.40 is available in Squeeze backports). DNSLookups should be <a href=\"https:\/\/github.com\/maxmind\/geoip-api-perl\/issues\/8\" target=\"_blank\">disabled<\/a>.<\/p>\n<p><strong>Update 2014-02-08<\/strong>: This patch was included into the official development branch.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>AWStats is a widely used tool for creating website usage statistics. For gathering country stats you have two options in AWStats: using reverse dns lookup on the IP addresses use a Geo-IP database Without the usage of plugins only IPv4 is supported. IPv6 support is only available with a plugin, however, only for performing reverse [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,2],"tags":[6],"class_list":["post-9","post","type-post","status-publish","format-standard","hentry","category-linux","category-patches","tag-awstats"],"_links":{"self":[{"href":"https:\/\/www.cs-ware.de\/blog\/wp-json\/wp\/v2\/posts\/9","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cs-ware.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cs-ware.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cs-ware.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cs-ware.de\/blog\/wp-json\/wp\/v2\/comments?post=9"}],"version-history":[{"count":18,"href":"https:\/\/www.cs-ware.de\/blog\/wp-json\/wp\/v2\/posts\/9\/revisions"}],"predecessor-version":[{"id":195,"href":"https:\/\/www.cs-ware.de\/blog\/wp-json\/wp\/v2\/posts\/9\/revisions\/195"}],"wp:attachment":[{"href":"https:\/\/www.cs-ware.de\/blog\/wp-json\/wp\/v2\/media?parent=9"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cs-ware.de\/blog\/wp-json\/wp\/v2\/categories?post=9"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cs-ware.de\/blog\/wp-json\/wp\/v2\/tags?post=9"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}