fail2ban: move maxretry default to jails
Throws a "option 'maxretry' in section 'DEFAULT' already exists" error on startup otherwise.
This commit is contained in:
parent
25a87f24d9
commit
ffb097ce0c
|
@ -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 = {
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in a new issue