Fail2Ban doing its thing

  • I uninstalled the plugin several times and enabled the jails first but same result!

    Code
     ls -al /var/run/fail2ban/
    total 0
    drwxr-xr-x  2 root root   40 Dec 17 07:05 .
    drwxr-xr-x 37 root root 1180 Dec 17 10:24 ..
    Code
     sudo fail2ban-client -x start
    2023-12-17 10:27:57,177 fail2ban                [104851]: ERROR   Failed during configuration: While reading from '/etc/fail2ban/jail.local' [line 101]: option 'bantime' in section 'DEFAULT' already exists
    root@openmediavault:~# sudo fail2ban-client status
    2023-12-17 10:28:13,225 fail2ban                [105434]: ERROR   Failed to access socket path: /var/run/fail2ban/fail2ban.sock. Is fail2ban running?
    Code
    :~# sudo systemctl status fail2ban.service
    × fail2ban.service - Fail2Ban Service
         Loaded: loaded (/lib/systemd/system/fail2ban.service; enabled; preset: enabled)
         Active: failed (Result: exit-code) since Sun 2023-12-17 10:26:11 PST; 2min 17s ago
       Duration: 35ms
           Docs: man:fail2ban(1)
       Main PID: 100055 (code=exited, status=255/EXCEPTION)
            CPU: 35ms
  • Well I think the error is because I used another way for fail2ban Omv rejected login with Fail2Ban so now I need to remove this one and use the plugin

    Code
     sudo fail2ban-client -x start
    2023-12-17 10:27:57,177 fail2ban                [104851]: ERROR   Failed during configuration: While reading from '/etc/fail2ban/jail.local' [line 101]: option 'bantime' in section 'DEFAULT' already exists
    root@openmediavault:~# sudo fail2ban-client status
    2023-12-17 10:28:13,225 fail2ban                [105434]: ERROR   Failed to access socket path: /var/run/fail2ban/fail2ban.sock. Is fail2ban running?
  • Got it working :) :) :) doing:

    Code
        sudo systemctl stop fail2ban – Stops the Fail2Ban service.
        sudo apt-get purge fail2ban – Uninstalls Fail2Ban and its configuration files.
        sudo rm -rf /etc/fail2ban/ – Removes additional Fail2Ban configuration files.
        sudo apt-get update – Updates the package database.
        sudo systemctl status fail2ban – Checks the status of the Fail2Ban service.

    And reinstalled the fail2ban plugin. :)

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!