X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/e1bc94ff7a1970c8bc669a034ffbf7d0165e510a..d5f8a18658e100abeba9f8fcdf7d9e4cbcaea3a6:/cookbooks/web/recipes/frontend.rb?ds=sidebyside diff --git a/cookbooks/web/recipes/frontend.rb b/cookbooks/web/recipes/frontend.rb index 6c1f0f761..ec7ce92f5 100644 --- a/cookbooks/web/recipes/frontend.rb +++ b/cookbooks/web/recipes/frontend.rb @@ -75,6 +75,18 @@ fail2ban_jail "apache-request-timeout" do ports [80, 443] end +fail2ban_filter "apache-trackpoints-timeout" do + failregex '^ .* "GET /api/0\.6/trackpoints\?.*" 408 .*$' +end + +fail2ban_jail "apache-trackpoints-timeout" do + filter "apache-trackpoints-timeout" + logpath "/var/log/apache2/access.log" + ports [80, 443] + bantime "12h" + findtime "30m" +end + fail2ban_filter "apache-notes-search" do failregex '^ .* "GET /api/0\.6/notes/search\?q=abcde&.*$' end