fail2ban on rackserv
This commit is contained in:
parent
a1dc18d3c8
commit
85962b9344
2 changed files with 13 additions and 4 deletions
12
sys/machines/rackserv/fail2ban.nix
Normal file
12
sys/machines/rackserv/fail2ban.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
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