hklcf this might be your issue...

You must verify that each of the services you enabled has a log file that matches what fail2ban is expecting.
logpath = %(sshd_log)s
which further maps to:
sshd_log = %(syslog_authpriv)s
and then depends on a specific distro file like
paths-fedora.conf:syslog_authpriv = /var/log/secure

If the file is not found, fail2ban won't start. If you know where the file is then just edit manually the logpath line and that will fix your problem.

hklcf
From your logs, it should be that fail2ban was not installed successfully.
please try to reinstall the pulgin

    fix the panel, update the app list, reinstall fail2ban
    work fine now!

    thank you

      hklcf
      Try executing the following command to check if the return value is normal

      fail2ban-client status (Your protection project name)

      For example my sshd protection project return Acquisition failed
      you can run
      fail2ban-client status sshd

        aaPanel_Jose I try many time to reinstall fail2ban...
        panel show install success

        9 months later

        Hi, I have the same problem. fail2ban does not work, does not start. reinstalled 10 times, with no result. What should I do?

        Sorry, something went wrong:
        Traceback (most recent call last):
        File "class/panelPlugin.py", line 1957, in a
        return eval(execStr)
        File "", line 1, in
        File "plugin/fail2ban/fail2ban_main.py", line 516, in set_anti
        return self.set_cc_anti(values)
        File "plugin/fail2ban/fail2ban_main.py", line 450, in set_cc_anti
        self._check_conf_exist(conf, values["mode"])
        File "plugin/fail2ban/fail2ban_main.py", line 185, in _check_conf_exist
        if '[{}]'.format(mode) in jail_conf:
        TypeError: argument of type 'NoneType' is not iterable

        maybe fail2ban doesn't work with Nginx 1.17.10? I have Nginx 1.17.10 installed. also installed Nginx Free Firewall protection. the matter is that my forum on the server started to be parsed through JSchallenger scripts. it helped that I enabled DDoS attack on cloudflare. I have not a standard case with the forum. external parsers rob the forum content.

          5 days later
          Connect with us: 📨 Telegram 💬 Discord Email: support@aapanel.com