update(baldur): better fail2ban filters
This commit is contained in:
parent
3cb057a31a
commit
79138d965d
1 changed files with 24 additions and 0 deletions
|
|
@ -51,6 +51,14 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
bantime-increment.enable = true;
|
bantime-increment.enable = true;
|
||||||
jails = {
|
jails = {
|
||||||
|
"nginx-bad-request" = {
|
||||||
|
settings = {
|
||||||
|
filter = "nginx-bad-request";
|
||||||
|
action = ''nftables-multiport[name=HTTP, port="http,https"]'';
|
||||||
|
logpath = "/var/log/nginx/error.log*";
|
||||||
|
backend = "auto";
|
||||||
|
};
|
||||||
|
};
|
||||||
"nginx-botsearch" = {
|
"nginx-botsearch" = {
|
||||||
settings = {
|
settings = {
|
||||||
filter = "nginx-botsearch";
|
filter = "nginx-botsearch";
|
||||||
|
|
@ -59,6 +67,14 @@
|
||||||
backend = "auto";
|
backend = "auto";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
"nginx-forbidden" = {
|
||||||
|
settings = {
|
||||||
|
filter = "nginx-forbidden";
|
||||||
|
action = ''nftables-multiport[name=HTTP, port="http,https"]'';
|
||||||
|
logpath = "/var/log/nginx/error.log*";
|
||||||
|
backend = "auto";
|
||||||
|
};
|
||||||
|
};
|
||||||
"nginx-http-auth" = {
|
"nginx-http-auth" = {
|
||||||
settings = {
|
settings = {
|
||||||
filter = "nginx-http-auth";
|
filter = "nginx-http-auth";
|
||||||
|
|
@ -67,6 +83,14 @@
|
||||||
backend = "auto";
|
backend = "auto";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
"nginx-limit-req" = {
|
||||||
|
settings = {
|
||||||
|
filter = "nginx-limit-req";
|
||||||
|
action = ''nftables-multiport[name=HTTP, port="http,https"]'';
|
||||||
|
logpath = "/var/log/nginx/error.log*";
|
||||||
|
backend = "auto";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
nginx = {
|
nginx = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue