mirror of
https://github.com/kp2pml30/dotfiles.git
synced 2026-02-20 00:54:41 +04:00
server enhancements
This commit is contained in:
parent
95f65d9c03
commit
a5dfa8c3f8
7 changed files with 69 additions and 15 deletions
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue