fail2ban nginx-botsearch
This commit is contained in:
parent
6582e62fc6
commit
cce83b0c08
1 changed files with 10 additions and 0 deletions
|
@ -13,6 +13,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
maxretry = 5;
|
maxretry = 5;
|
||||||
ignoreIP = [
|
ignoreIP = [
|
||||||
|
"86.173.148.116"
|
||||||
];
|
];
|
||||||
bantime-increment = {
|
bantime-increment = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -29,6 +30,15 @@
|
||||||
bantime = 600;
|
bantime = 600;
|
||||||
maxretry = 10;
|
maxretry = 10;
|
||||||
};
|
};
|
||||||
|
nginx-botsearch.settings = {
|
||||||
|
filter = "nginx-botsearch";
|
||||||
|
action = "iptables-allports";
|
||||||
|
logpath = "/var/log/nginx/access.log";
|
||||||
|
backend = "auto";
|
||||||
|
findtime = 600;
|
||||||
|
bantime = 86400;
|
||||||
|
maxretry = 3;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue