server enhancements

This commit is contained in:
kp2pml30 2025-01-27 01:16:41 +04:00
parent 95f65d9c03
commit a5dfa8c3f8
7 changed files with 69 additions and 15 deletions

View file

@ -17,4 +17,14 @@ in {
AllowUsers = [ cfg.username ];
};
};
services.fail2ban = {
enable = true;
maxretry = 5;
bantime = "168h";
bantime-increment = {
enable = true;
formula = "ban.Time * ban.Time";
};
};
}