From 5cfda9d588c56e391afc0e0abf8a5b5ccacb5806 Mon Sep 17 00:00:00 2001 From: Maurizio De Magnis Date: Fri, 8 Dec 2023 22:21:43 +0100 Subject: [PATCH] Fixes Fail2Ban's directive (#969) Without `filter = sshd` and after restarting the service I see this error in Fail2Ban's logs (`/var/log/fail2ban.log`): ``` 2022-11-03 11:24:36,225 fail2ban.transmitter [1283507]: ERROR Jail 'sshd-ddos' skipped, because of wrong configuration: Unable to read the filter 'sshd-ddos' ``` I added the statement as per [this article](https://serverfault.com/a/1050315) and it worked. --- content/en/admin/prerequisites.md | 1 + 1 file changed, 1 insertion(+) diff --git a/content/en/admin/prerequisites.md b/content/en/admin/prerequisites.md index e6c3029d..6f5a3a42 100644 --- a/content/en/admin/prerequisites.md +++ b/content/en/admin/prerequisites.md @@ -45,6 +45,7 @@ port = 22 [sshd-ddos] enabled = true +filter = sshd port = 22 ```