The reason for this error is that after installation of fail2ban
the configuration file /etc/fail2ban/paths-fedora.conf
contains several lines, which set backends for some applications to systemd
, which is not present in CentOS 6.x.
Just remove all strings like
syslog_backend = systemd
sshd_backend = systemd
dropbear_backend = systemd
proftpd_backend = systemd
pureftpd_backend = systemd
wuftpd_backend = systemd
postfix_backend = systemd
dovecot_backend = systemd
from /etc/fail2ban/paths-fedora.conf
(or search for the file, which contains such strings, using grep). In this case you do not need to change backend = %(sshd_backend)s
to backend = auto
-- everything will work fine without such changes.