documentation icon indicating copy to clipboard operation
documentation copied to clipboard

fail2ban instructions fail with error on Ubuntu 20.04, fail2ban v0.11.1

Open brookmiles opened this issue 3 years ago • 0 comments

Following the current instructions:

Edit /etc/fail2ban/jail.local and put this inside:

[DEFAULT]
destemail = [email protected]
sendername = Fail2Ban

[sshd]
enabled = true
port = 22

[sshd-ddos]
enabled = true
port = 22

Results in the following error being logged:

May 05 04:51:01 sunny fail2ban-server[108985]: 2022-05-05 04:51:01,389 fail2ban.configreader   [108985]: ERROR   Found no accessible config files for 'filter.d/sshd-ddos' under /etc/fail2ban
May 05 04:51:01 sunny fail2ban-server[108985]: 2022-05-05 04:51:01,389 fail2ban.jailreader     [108985]: ERROR   Unable to read the filter 'sshd-ddos'
May 05 04:51:01 sunny fail2ban-server[108985]: 2022-05-05 04:51:01,389 fail2ban.jailsreader    [108985]: ERROR   Errors in jail 'sshd-ddos'. Skipping...

The config I used ended up being:

[DEFAULT]
destemail = [email protected]
sendername = Fail2Ban

[sshd]
enabled = true
mode = aggressive

aggressive mode includes ddos mode

brookmiles avatar May 05 '22 08:05 brookmiles