No of fail2ban jails?

Discussion in 'Installation/Configuration' started by Andesh, Aug 22, 2021.

  1. Andesh

    Andesh Member

    Hi
    sudo fail2ban-client status show 4 jails:

    Status
    |- Number of jail: 4
    `- Jail list: dovecot, postfix, pure-ftpd, sshd​

    But /etc/fail2ban/jail.local only has 3 jails (pure-ftpd, dovecot and postfix) (as per The Perfect Setup 20.04).

    Where does the ssd jail come from?
     
  2. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    The default jail.conf.
     
  3. Andesh

    Andesh Member

    The jail.conf indeed has a sshd jail. But also a lot of other jails.
    1. Why do only sshd show up?
    2. Is th sshd jail and the other jails added by ISPConfig at installation or are they default jails that comes as standard when installing F2B?
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Rather than asking here, you should read fail2ban documentation. For example
    Code:
    man 5 jail.conf
    There is also the Wiki page
    Anyway, answers:
    1. it is enabled in some of the configuration files. I do not know which, since you do not say what OS you are running. On my Debian 10 it is in /etc/fail2ban/jail.d/defaults-debian.conf. The other not showing up jails are not enabled.
    2. sshd jail is enabled when installing fail2ban, at least on Debian. The other enabled jails you have enabled yourself when following the Perfect Server Guide.
     
    Last edited: Aug 23, 2021
    Andesh and ahrasis like this.
  5. Chris_UK

    Chris_UK Active Member HowtoForge Supporter

    Ubuntu too, I know its of the debian tree but just confirming.
     
    Andesh likes this.

Share This Page