Rate-limit connections per ip for smtp frontend


#1

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


#2

someone? please help…


#3

someone? ]= ________________


#4

:cry:???anyone???:cry: