Categorygithub.com/andyjack/geoip2-haproxy-ranges
repositorypackage
0.0.0-20241013225124-f8b795c9227f
Repository: https://github.com/andyjack/geoip2-haproxy-ranges.git
Documentation: pkg.go.dev

# README

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