add fail2ban

This commit is contained in:
Mario Fetka 2024-04-13 20:15:47 +02:00
parent 48e02c62dd
commit 5828342201
2 changed files with 12 additions and 0 deletions

View File

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

View File

@ -0,0 +1,8 @@
[gitea]
enabled = true
filter = gitea
logpath = /var/lib/gitea/log/gitea.log
maxretry = 10
findtime = 3600
bantime = 900
action = iptables-allports