Show pageBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== Maxmind geoip on debian lenny ====== Mapping ips to a country is often interesing. To enable this in Debian lenny: aptitude install geoip-bin To update the ip database daily, create a small script and make a symlink to it in /etc/cron.daily <code bash> #!/bin/sh wget -q http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz -O - |gunzip > /usr/share/GeoIP/GeoIP.dat.new && mv /usr/share/GeoIP/GeoIP.dat.new /usr/share/GeoIP/GeoIP.dat </code> You can then look from which country an ip is with ''geoiplookup 1.2.3.4'' See also the nice use of this in awstats! Ref: * http://www.matejunkie.com/geoip-lookups/ * http://www.antezeta.com/awstats/geoip.html {{tag>linux debian awstats geoip}} ~~LINKBACK~~ ~~DISCUSSION~~ blog/maxmind_geoip_on_debian_lenny.txt Last modified: 2010/10/24 12:39by brb