Is it possible to use a map file to specify a rate for a specific source
IP/subnet?  Something like this?

    acl conn_rate_abuse sc2_conn_rate gt
%[src,map_ip_int(/etc/haproxy/src_to_rate.map)]

I can see there might be a problem because a map isn't guaranteed to have a
match?  It might be a nice feature to have a version of the map functions
that take a default as a parameter.  Something like:
    
    map_ip_int(my_map_file, 10)    

where 10 is the default returned if there is no match.

Thank you,
Chris


p.s.  What do you call the %[] thing?  I may be blind, but have yet to see
it named in the documentation.


Reply via email to