security: init fail2ban
This commit is contained in:
parent
270bfded6f
commit
0d421e54eb
1 changed files with 10 additions and 0 deletions
|
@ -47,4 +47,14 @@
|
|||
acceptTerms = true;
|
||||
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"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue