https://github.com/western/geoip2-support
Compile and edit mmdb database
https://github.com/western/geoip2-support
Last synced: about 2 months ago
JSON representation
Compile and edit mmdb database
- Host: GitHub
- URL: https://github.com/western/geoip2-support
- Owner: western
- Created: 2022-05-04T11:10:14.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-05T07:10:20.000Z (about 3 years ago)
- Last Synced: 2025-02-05T15:42:02.504Z (4 months ago)
- Language: Perl
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GeoIP2-Support
Compile and edit mmdb database
## Get maxmind CSV archive
cd db
curl -o GeoLite2-Country-CSV.zip "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country-CSV&license_key=qHbaH2eibSCwvSs&suffix=zip"
unzip GeoLite2-Country-CSV.zip
rm GeoLite2-Country-CSV.zip
mv GeoLite2* geocsv
## Cpanminus requirecpanm --installdeps .
## Add/Edit personal network masks
Edit file db/GeoLite2-Country-Blocks-IPv4-My.csv
This records will merge with original database
## Compilebin/make_mmdb.pl