Quantcast
Viewing all articles
Browse latest Browse all 4737

Rate-limit connections per ip for smtp frontend

@raz wrote:

Hello everyone!
im was trying to find a way to limit the connections per ip and i just couldn't

i tried to put this in my haproxy.cfg:
stick-table type ip size 100k expire 30s store conn_rate(3s)

# Allow clean known IPs to bypass the filter
tcp-request connection accept if { src -f /etc/haproxy/whitelist.lst }
# Shut the new connection as long as the client has already 10 opened
tcp-request connection reject if { src_conn_rate ge 3 }
tcp-request connection track-sc1 src

but it doesn't do anything.
please help

Thank you!

Raz

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>