https://github.com/iglov/mmdb-editor
Make your own GeoIP database!
https://github.com/iglov/mmdb-editor
geoip geoip-database geoip2 geolite geolite2 maxmind maxmind-geoip mmdb mmdb-go
Last synced: 5 months ago
JSON representation
Make your own GeoIP database!
- Host: GitHub
- URL: https://github.com/iglov/mmdb-editor
- Owner: iglov
- License: mit
- Created: 2022-11-17T21:42:26.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-19T12:09:24.000Z (almost 2 years ago)
- Last Synced: 2024-08-19T22:19:30.050Z (almost 2 years ago)
- Topics: geoip, geoip-database, geoip2, geolite, geolite2, maxmind, maxmind-geoip, mmdb, mmdb-go
- Language: Go
- Homepage:
- Size: 72.3 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/iglov/mmdb-editor/releases/latest)
[](https://github.com/iglov/mmdb-editor/blob/master/LICENSE)
[](https://goreportcard.com/report/github.com/iglov/mmdb-editor)

[](https://github.com/iglov/mmdb-editor/actions)
[](https://codecov.io/gh/iglov/mmdb-editor)
# mmdb-editor
Make your own GeoIP database! The simplest utility for editing MMDB databases.
# How to start
1. Download lastest mmdb-editor release
2. Download [GeoLite2-City.mmdb](https://www.maxmind.com/en/accounts/current/geoip/downloads)
3. Create your dataset with networks you need to add/change (See example)
# How to use
```text
Usage of ./bin/mmdb-editor-linux-amd64:
-d string
Dataset file path. (default "./dataset.json")
-i string
Input GeoLite2-City.mmdb file path. (default "./GeoLite2-City.mmdb")
-m string
Merge strategy. It may be: toplevel, recurse or replace. (default "replace")
-o string
Output modified mmdb file path. (default "./GeoLite2-City-mod.mmdb")
-v Print current version and exit.
```
# How to develop
1. `git clone https://github.com/iglov/mmdb-editor`
2. Change something you want and commit changes
3. Build with `make all`