summaryrefslogtreecommitdiff
path: root/common/fail2ban.nix
blob: 0670df5e9a706fe6e8568fd120cc4cd5bd1296b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
{
  services.fail2ban = {
    enable = true;
    maxretry = 5;
    bantime = "24h";
    bantime-increment = {
      enable = true;
      formula = "ban.Time * math.exp(float(ban.Count+1)*banFactor)/math.exp(1*banFactor)";
      rndtime = "12h";
      overalljails = true;
    };
  };
}