add fail2ban
This commit is contained in:
parent
48e02c62dd
commit
5828342201
4
fail2ban/filter.d/gitea.conf
Normal file
4
fail2ban/filter.d/gitea.conf
Normal file
@ -0,0 +1,4 @@
|
||||
# gitea.conf
|
||||
[Definition]
|
||||
failregex = .*(Failed authentication attempt|invalid credentials|Attempted access of unknown user).* from <HOST>
|
||||
ignoreregex =
|
8
fail2ban/jail.d/gitea.conf
Normal file
8
fail2ban/jail.d/gitea.conf
Normal 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
|
Loading…
Reference in New Issue
Block a user