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.
This commit is contained in:
Maurizio De Magnis 2023-12-08 22:21:43 +01:00 committed by GitHub
parent 6ae7a7334b
commit 5cfda9d588
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -45,6 +45,7 @@ port = 22
[sshd-ddos] [sshd-ddos]
enabled = true enabled = true
filter = sshd
port = 22 port = 22
``` ```