summary refs log tree commit diff stats
path: root/system/services/fail2ban/default.nix
blob: 5b5e9e7bde872e305c5b6c21b726d459196138b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# vim: ts=2
{...}: {
  services.fail2ban = {
    enable = true;
    maxretry = 2; # ban after 2 failures
    bantime-increment = {
      enable = true;
      rndtime = "8m";
      overalljails = true;
      multipliers = "2 4 16 128 256";
      maxtime = "72h";
    };
  };
}