Hey !
I have actually configured my HAP to counter some kiddy L7 DDoS. In this way I limited the conn_cur
, conn_rate
, and http_req_rate
to very low values. But when a page is called, there is many css
and js
and images files that are called, and I cannot allow a larger http_req_rate
or even conn_rate
if I want the DDoS to be mitigated nicely…
So I dont want to apply limits for the static files that are just everywhere onto the app I have to maintain (the rewrite is shitty). But I have absolutely no idea on how …
There is what I would like to do :
acl static path_end -i .html .js .css
acl static path_end -i .png .jpg .jpeg .gif .mp3 .swf
stick-table type ip size 100k expire 10s store conn_cur,conn_rate(3s),http_req_rate(3s)
tcp-request connection accept if static
tcp-request connection reject if { src_conn_cur gt ## }
tcp-request connection reject if { src_conn_rate gt ## }
tcp-request connection reject if { src_http_req_rate() gt ## }
tcp-request connection track-sc1 src
But hap check giving me following warns :
[WARNING] *** acl 'static' will never match in 'tcp-request connection' because it only involves keywords that are incompatible with 'frontend tcp-request connection rule'
I dont realy understand what it means …
I actually cant use an other backend …
Any idea ?
PS: Sorry for my poor English