A simple web GeoIP server
Database | Url | Status |
---|---|---|
GeoLite-City | /city/{IP} | ok |
GeoLite-Country | /country/{IP} | ok |
GeoLite-ASN | /asn/{IP} | ok |
user@machine $ curl http://geoipserver/asn/8.8.8.8
{"AutonomousSystemNumber":15169,"AutonomousSystemOrganization":"Google LLC"}
To automatically download MaxMind GeoIpLite you can use the makefile as follow:
make download
To run server, you just have to run the main.go
go run main.go
Please up the docker-compose.
docker-compose up -d