update fail2ban

This commit is contained in:
Ingolf Wagner 2024-06-16 00:20:45 +02:00
parent 3dc427c467
commit b6f52ed1d9
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -28,7 +28,7 @@ with lib;
"fail2ban/filter.d/nginx-git-not-found.local".text = '' "fail2ban/filter.d/nginx-git-not-found.local".text = ''
[Definition] [Definition]
failregex = src_addr="<HOST>".*response_statu="404".*host="git\.ingolf-wagner\.de" failregex = src_addr="<HOST>".*response_statu="404".*host="git\.ingolf-wagner\.de"
journalmatch = _SYSTEMD_UNIT=nginx.service + _COMM=nginx journalmatch = _SYSTEMD_UNIT=nginx.service
''; '';
}; };
}) })
@ -42,7 +42,7 @@ with lib;
"fail2ban/filter.d/nginx-git-bad-request.local".text = '' "fail2ban/filter.d/nginx-git-bad-request.local".text = ''
[Definition] [Definition]
failregex = src_addr="<HOST>".*response_statu="400".*host="git\.ingolf-wagner\.de" failregex = src_addr="<HOST>".*response_statu="400".*host="git\.ingolf-wagner\.de"
journalmatch = _SYSTEMD_UNIT=nginx.service + _COMM=nginx journalmatch = _SYSTEMD_UNIT=nginx.service
''; '';
}; };
}) })