生成每个国家/地区的ACL文件以与HAProxy一起使用
受启发,但可与GeoIP2 / GeoLite2数据库一起使用。
从下载免费版本。
跑步
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