Skip to content
Load/Convert multiple CSV databases to Redis
Go Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tools/ip2long
.gitignore
LICENSE
README.md
build.sh
generics.go
geoip2redis.go
go.mod
go.sum
ip2location.go
software77.go

README.md

geoip2redis

WARNING:. This software is still alpha and constantly changing.

Loader of Multiple GeoIP providers to Redis

We currently support the following providers (* partially)

geoip2redis primarilly supports DB1 from IP2Location, but with Auto mode enabled can load any of their standard IPv4 databases , including their ASN database in DB1 format. (ASN is currently broken) It can also load Software77's database either in it's native format, or convert it on the fly to IP2Location format, making them interchangeable.

Examples:

Use example1

Redis output

Please install the golang/vgo package before running ./build.sh to build the app.

Please check out the the Wiki for more info.

TODO

A LOT

  1. testing - need to add golang tests
  2. Deal with conversion formats
  3. Add support for Redis passwords
  4. Add more GEOIP sources. Suggestions welcome!

(c) 2019 ConsulTent Ltd. http://consultent.ltd

You can’t perform that action at this time.