Fail2ban jails update
This commit is contained in:
parent
823904c37c
commit
5c008c6a35
1 changed files with 14 additions and 0 deletions
|
|
@ -60,6 +60,20 @@ with lib; {
|
||||||
fail2ban = {
|
fail2ban = {
|
||||||
enable = true;
|
enable = true;
|
||||||
bantime-increment.enable = true;
|
bantime-increment.enable = true;
|
||||||
|
jails = {
|
||||||
|
"nginx-botsearch" = ''
|
||||||
|
filter = nginx-botsearch
|
||||||
|
action = nftables-multiport[name=HTTP, port="http,https"]
|
||||||
|
logpath = /var/log/nginx/error.log*
|
||||||
|
backend = auto
|
||||||
|
'';
|
||||||
|
"nginx-http-auth" = ''
|
||||||
|
filter = nginx-http-auth
|
||||||
|
action = nftables-multiport[name=HTTP, port="http,https"]
|
||||||
|
logpath = /var/log/nginx/error.log*
|
||||||
|
backend = auto
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
nginx = {
|
nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue