move some stuff into hosts/hostname/profiles
This commit is contained in:
parent
9c9a3d543c
commit
e2946e4a1f
33 changed files with 14 additions and 14 deletions
14
hosts/rackserv/profiles/fail2ban.nix
Normal file
14
hosts/rackserv/profiles/fail2ban.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
services.openssh.startWhenNeeded = false; # i dont think this works with fail2ban
|
||||
|
||||
services.fail2ban = {
|
||||
enable = true;
|
||||
ignoreIP = ["100.64.0.0/10"]; # tailscale
|
||||
bantime = "1h";
|
||||
bantime-increment = {
|
||||
enable = true;
|
||||
maxtime = "168h";
|
||||
factor = "4";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue