I need to put local IP addresses into MaxMind GeoIP DB. I've downloaded the CSV and adding new IP addresses and locations is easy. I've found two tools that do csv to dat for MaxMind GeoIP but I can't get them work.
With python script:
./csv2dat.py -w custom_geoip.dat mmcountry working.csv
File "./csv2dat.py", line 69
print "error: database types don't match"
SyntaxError: Missing parentheses in call to 'print'
Also, I've tried to compile cpp script (https://github.com/dankamongmen/sprezzos-world/blob/master/packaging/geoip/debian/src/geoip-csv-to-dat.cpp) but I get large strace.
I've tried with new and old MaxMind DB. is there any other tool?
Thanks