fail2ban not reading the jails

Discussion in 'Installation/Configuration' started by Stelios, Jul 1, 2024.

  1. Stelios

    Stelios Active Member HowtoForge Supporter

    Hi all,
    For some reason the same config that is under jail.local on other servers and working fine into this server is not working at all.
    See output below:

    Code:
    @uk1:~$ sudo fail2ban-client version
    1.0.2
    @uk1:~$ sudo fail2ban-client ping
    Server replied: pong
    @uk1:~$ cat /etc/fail2ban/jail.local
    [pure-ftpd]
    enabled = true
    port = ftp
    filter = pure-ftpd
    logpath = /var/log/syslog
    maxretry = 10
    bantime = 1d
    
    [dovecot]
    enabled = true
    filter = dovecot
    logpath = /var/log/mail.log
    maxretry = 10
    bantime = 1d
    
    [postfix-sasl]
    enabled = true
    port = smtp
    filter = postfix[mode=auth]
    logpath = /var/log/mail.log
    maxretry = 10
    bantime = 1d
    
    @uk1:~$ sudo fail2ban-client status postfix-sasl
    2024-07-01 20:22:52,908 fail2ban                [1716072]: ERROR   NOK: ('postfix-sasl',)
    Sorry but the jail 'postfix-sasl' does not exist
    @uk1:~$
     
  2. Stelios

    Stelios Active Member HowtoForge Supporter

    For some reason after a few restarts it worked....
     

Share This Page