(cesium/services) add alightweight fail2ban

This commit is contained in:
Laureηt 2024-07-20 12:16:17 +02:00
parent 8b99e9d3b3
commit f1060fdb52
Signed by: Laurent
SSH key fingerprint: SHA256:pb5NrYg80So5z9hmqQFPmp//sgr+DFeJkKhmGyU2NLk
2 changed files with 8 additions and 0 deletions

View file

@ -6,6 +6,7 @@
./gitea
./nginx
./ssh
./fail2ban.nix
];
networking.firewall = {

View file

@ -0,0 +1,7 @@
{...}: {
services.fail2ban = {
enable = true;
maxretry = 3;
bantime = "10m";
};
}