Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 606 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 606 Bytes

Generate ACL files per country for use with HAProxy

Inspired by https://github.com/berkayunal/haproxy-geoip-iprange, but for use with GeoIP2/GeoLite2 dbs.

Download the free versions from https://dev.maxmind.com/geoip/geoip2/geolite2/.

Running

git clone https://github.com/andyjack/geoip2-haproxy-ranges
cd geoip2-haproxy-ranges
go get github.com/oschwald/maxminddb-golang
go run . --db path/to/GeoLite2-Country.mmdb --destDir output