snapshot: allow 6 requests per minute even to clients that we think are excessive
authorPeter Palfrader <peter@palfrader.org>
Fri, 1 Jun 2018 18:12:06 +0000 (20:12 +0200)
committerPeter Palfrader <peter@palfrader.org>
Fri, 1 Jun 2018 18:12:06 +0000 (20:12 +0200)
modules/apache2/manifests/dynamic.pp

index 5df01a1..b39e559 100644 (file)
@@ -60,6 +60,7 @@ class apache2::dynamic {
                        description => 'http subchain',
                        chain       => 'http',
                        rule        => '
+                                       mod hashlimit hashlimit-name HTTPDOSPRE hashlimit-mode srcip hashlimit-burst 10 hashlimit 6/minute jump ACCEPT;
                                        mod recent name HTTPDOS update seconds 900 jump log_or_drop;
                                        mod hashlimit hashlimit-name HTTPDOS hashlimit-mode srcip hashlimit-burst 200 hashlimit 30/minute jump ACCEPT;
                                        mod recent name HTTPDOS set jump log_or_drop'