On Tue, Feb 28, 2017 at 2:29 PM, Simon Green <[email protected]> wrote:
> Hi all, > > I need to rate limit users by country[1], and my Google foo is failing > me. I know that I can use "src_conn_rate gt N"[2], but that rate limits > on a per IP basis. I want to be able to rate limit based on the total > number of connections from a country, and have different limits for > different countries. > > Is this possible with HAProxy, and if so, how? > > TIA for your guidance. > > -- > Simon > > > [1] where "country" is defined by MaxMind's GeoIP list. It's not > perfect, but better than nothing. > [2] and along with src -f TLD.lst can set different limits for different > countries. > > https://github.com/berkayunal/haproxy-geoip-iprange

