Add fail2ban

This commit is contained in:
Charlotte 🦝 Delenk 2022-01-15 12:57:44 +01:00
parent 501757dd10
commit fbcf829d8c
Signed by: darkkirb
GPG key ID: 015E3768A70AFBC5
3 changed files with 10 additions and 0 deletions

View file

@ -33,4 +33,6 @@
listenAddress = (import ../utils/getInternalIP.nix config).listenIP;
};
# boot.kernel.sysctl."kernel.perf_event_paranoid" = 0; # for the perf exporter
nix.buildCores = 0;
}

View file

@ -3,5 +3,6 @@
imports = [
./services/nginx.nix
./services/acme.nix
./services/fail2ban.nix
];
}

View file

@ -0,0 +1,7 @@
{ ... }: {
services.fail2ban = {
enable = true;
bantime-increment.enable = true;
bantime-increment.maxtime = "48h";
};
}