An open API service indexing awesome lists of open source software.

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!

Awesome Lists containing this project

README

          

[![Latest Release](https://img.shields.io/github/release/iglov/mmdb-editor.svg?style=flat-square)](https://github.com/iglov/mmdb-editor/releases/latest)
[![GitHub license](https://img.shields.io/github/license/iglov/mmdb-editor.svg)](https://github.com/iglov/mmdb-editor/blob/master/LICENSE)
[![Go Report Card](https://goreportcard.com/badge/github.com/iglov/mmdb-editor)](https://goreportcard.com/report/github.com/iglov/mmdb-editor)
![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/iglov/mmdb-editor)
[![Build Status](https://github.com/iglov/mmdb-editor/actions/workflows/build.yml/badge.svg)](https://github.com/iglov/mmdb-editor/actions)
[![codecov](https://codecov.io/gh/iglov/mmdb-editor/branch/main/graph/badge.svg)](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`