server: gitea: fail2ban fix

This commit is contained in:
Kabbone 2023-06-04 14:22:57 +02:00
parent 1771fba57b
commit 6059c3c0ba
Signed by: Kabbone
SSH Key Fingerprint: SHA256:A5zPB5I6u5V78V51c362BBdCwhDhfDUVbt7NfKdjWBY
2 changed files with 6 additions and 3 deletions

View File

@ -116,14 +116,15 @@
fail2ban = {
enable = true;
maxretry = 5;
extraSettings = {
findtime = "15m";
bantime = "1h";
};
jails = {
gitea = ''
enabled = true
filter = gitea
backend = systemd
maxretry = 10
findtime = 3600
bantime = 900
action = iptables-allports
'';
};

View File

@ -1,3 +1,5 @@
[Definition]
failregex = .*(Failed authentication attempt|invalid credentials|Attempted access of unknown user).* from <HOST>
ignoreregex =
#journalmatch = _SYSTEMD_UNIT=gitea.servie
journalmatch =