fail2ban: move maxretry default to jails

Throws a "option 'maxretry' in section 'DEFAULT' already exists" error
on startup otherwise.
This commit is contained in:
Henrik Lissner 2021-01-31 18:43:29 -05:00
parent 25a87f24d9
commit ffb097ce0c
3 changed files with 2 additions and 1 deletions

View file

@ -17,6 +17,7 @@ in {
enabled = true enabled = true
filter = bitwarden_rs filter = bitwarden_rs
port = 80,443,8002 port = 80,443,8002
maxretry = 5
''; '';
modules.backup.targets.bitwarden = { modules.backup.targets.bitwarden = {

View file

@ -19,7 +19,6 @@ in {
factor = "4"; factor = "4";
}; };
jails.DEFAULT = '' jails.DEFAULT = ''
maxretry = 5
blocktype = DROP blocktype = DROP
bantime = 1h bantime = 1h
findtime = 1h findtime = 1h

View file

@ -49,6 +49,7 @@ in {
enabled = true enabled = true
filter = gitea filter = gitea
banaction = %(banaction_allports)s banaction = %(banaction_allports)s
maxretry = 5
''; '';
modules.backup.targets.gitea = { modules.backup.targets.gitea = {