Fail2ban error

  • I have installed and activated the Fail2Ban plugin and setup some jails.

    In the "Services" area it is enabled again but not running.

    When I click on the Fail2ban tab the following error is shown

    This is the error with it's details:

    Someone can help me?



  • In Fail2ban the filter configuration file for Nextcloud is missing!

    Create it with:

    sudo nano /etc/fail2ban/filter.d/nextcloud.conf

    Add the following to the file:

    # Fail2Ban filter configuration file for Nextcloud
    # /etc/fail2ban/filter.d/nextcloud.conf
    failregex = ^{"reqId":".","remoteAddr":".","app":"core","message":"Login failed: '.' (Remote IP: '')","level":2,"time":"."}$
    ^{"reqId":".","level":2,"time":".","remoteAddr":".","app":"core".","message":"Login failed: '.' (Remote IP: '')".}$
    ^.\"remoteAddr\":\"\".Trusted domain error.*$

    Now go to Fail2Ban --> Jails and add a new jails with this options:

    Name: nextcloud
    Port: http,https
    Max Retry: 3
    Ban Time: -1
    Filter: nextcloud
    Log Path: path/to/yournextcloud/data/nextcloud.log

    Activate the nextcloud jail and deactivate apache-404 and apache-noscript jails (if they are not present in your installation).

    Problem solved! 8o

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!