WIP: FINISH SETTING UP FAIL2BAN
This commit is contained in:
parent
1fc8790790
commit
771da4b137
|
@ -45,5 +45,21 @@ in
|
|||
inherit (cfg) port;
|
||||
};
|
||||
};
|
||||
|
||||
services.fail2ban.jails = {
|
||||
stirling-pdf = ''
|
||||
enabled = true
|
||||
filter = stirling-pdf
|
||||
port = http,https
|
||||
'';
|
||||
};
|
||||
|
||||
environment.etc = {
|
||||
"fail2ban/filter.d/stirling-pdf.conf".text = ''
|
||||
[Definition]
|
||||
failregex = ^.*Failed login attempt from IP: <HOST>$
|
||||
journalmatch = _SYSTEMD_UNIT=stirling-pdf.service
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue