modules/fail2ban: switch to submodule style
This commit is contained in:
parent
f973ca2084
commit
d378ff9d06
1 changed files with 1 additions and 5 deletions
|
@ -3,11 +3,7 @@
|
||||||
services.fail2ban = {
|
services.fail2ban = {
|
||||||
enable = true;
|
enable = true;
|
||||||
banaction = "iptables-multiport[blocktype=DROP]";
|
banaction = "iptables-multiport[blocktype=DROP]";
|
||||||
jails.sshd = ''
|
jails.sshd.settings.mode = "aggressive";
|
||||||
enabled = true
|
|
||||||
port = 22
|
|
||||||
mode = aggressive
|
|
||||||
'';
|
|
||||||
ignoreIP = [
|
ignoreIP = [
|
||||||
"10.0.0.0/8"
|
"10.0.0.0/8"
|
||||||
depot.reflection.interfaces.primary.addr
|
depot.reflection.interfaces.primary.addr
|
||||||
|
|
Loading…
Reference in a new issue