BE AWARE! GeoIP legacy databases are deprecated upstream and updates to these
will stop. The free GeoLite legacy databases will no longer be updated after
1 April 2018. See https://blog.maxmind.com/tag/geolite-legacy/
The free GeoLite2 databases could be used instead e.g. for command line lookup:
# pkg_add libmaxminddb geolite2-country
$ mmdblookup -f /var/db/GeoIP/GeoLite2-Country.mmdb -i 9.9.9.9 country iso_code