machines/magenta: enable bantime-incremental module for fail2ban

This commit is contained in:
Dmitriy Pleshevskiy 2023-02-16 22:58:55 +03:00
parent 38f6055b36
commit 3cea029f06
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215

View file

@ -28,5 +28,12 @@ in
defaults.email = "dmitriy@pleshevski.ru";
};
services.fail2ban.enable = true;
services.fail2ban = {
enable = true;
bantime-increment = {
enable = true;
factor = "4";
maxtime = "48h";
};
};
}