security: init fail2ban

This commit is contained in:
notohh 2023-06-14 04:44:39 -04:00
parent 270bfded6f
commit 0d421e54eb
Signed by: notohh
GPG key ID: BD47506D475EE86D

View file

@ -47,4 +47,14 @@
acceptTerms = true; acceptTerms = true;
defaults.email = "github@notohh.dev"; defaults.email = "github@notohh.dev";
}; };
services.fail2ban = {
enable = true;
maxretry = 3;
bantime = "10m";
ignoreIP = [
"192.168.0.0/16"
"172.16.0.0/12"
"10.0.0.0/8"
];
};
} }