Fail2ban: Found no accessible config files for ‘filter.d/sshd-ddos’

Fail2banUpon enabling ssh-ddos jail in Fail2ban jail.local you may have the following errors:

Jail ‘sshd-ddos’ skipped, because of wrong configuration: Unable to read the filter ‘sshd-ddos’

and

Found no accessible config files for ‘filter.d/sshd-ddos’

The reason is that [sshd-ddos] jail in fact is served by sshd.conf.

under [sshd-ddos] section.

Thus the renewed section should look like this:

Please note the comment under [sshd-ddos] directive that explains the difference:

#This jail corresponds to the standard configuration in Fail2ban.
#The mail-whois action send a notification e-mail with a whois request in the body.

Want me to do this for you? Drop me a line: itgalaxyzzz {at} gmail [point] com