Home » Linux » How to Install fail2ban on CentOS in DirectAdmin

4 thoughts on “How to Install fail2ban on CentOS in DirectAdmin”

  1. -rw-r–r– 1 root root 711 Feb 9 2009 apache-auth.conf
    -rw-r–r– 1 root root 2396 Mar 6 2008 apache-badbots.conf
    -rw-r–r– 1 root root 628 Oct 13 2008 apache-nohome.conf
    -rw-r–r– 1 root root 763 Feb 9 2009 apache-noscript.conf
    -rw-r–r– 1 root root 444 Mar 6 2008 apache-overflows.conf
    -rw-r–r– 1 root root 1039 Feb 9 2009 common.conf
    -rw-r–r– 1 root root 616 Feb 9 2009 courierlogin.conf
    -rw-r–r– 1 root root 591 Feb 9 2009 couriersmtp.conf
    -rw-r–r– 1 root root 1012 Feb 9 2009 cyrus-imap.conf
    -rw-r–r– 1 root root 540 Mar 23 21:49 dovecot-pop3imap.conf
    -rw-r–r– 1 root root 613 Feb 9 2009 exim.conf
    -rw-r–r– 1 root root 447 May 22 2008 gssftpd.conf
    -rw-r–r– 1 root root 397 Aug 30 2009 lighttpd-fastcgi.conf
    -rw-r–r– 1 root root 1013 Feb 10 2009 named-refused.conf
    -rw-r–r– 1 root root 870 May 22 2008 pam-generic.conf
    -rw-r–r– 1 root root 867 Aug 30 2009 php-url-fopen.conf
    -rw-r–r– 1 root root 591 Feb 9 2009 postfix.conf
    -rw-r–r– 1 root root 878 Feb 9 2009 proftpd.conf
    -rw-r–r– 1 root root 801 Feb 9 2009 pure-ftpd.conf
    -rw-r–r– 1 root root 606 Feb 9 2009 qmail.conf
    -rw-r–r– 1 root root 679 Feb 9 2009 sasl.conf
    -rw-r–r– 1 root root 581 Feb 4 2009 sieve.conf
    -rw-r–r– 1 root root 1648 Feb 9 2009 sshd.conf
    -rw-r–r– 1 root root 627 Feb 9 2009 sshd-ddos.conf
    -rw-r–r– 1 root root 700 Feb 9 2009 vsftpd.conf
    -rw-r–r– 1 root root 827 Feb 9 2009 webmin-auth.conf
    -rw-r–r– 1 root root 437 May 22 2008 wuftpd.conf
    -rw-r–r– 1 root root 848 Feb 9 2009 xinetd-fail.conf

    Try to install the fail2ban again ?

  2. dovecot-pop3imap.conf doesn’t exist from a standard installation. You have to touch the file then edit it; this is what the fail2ban wiki suggests you put in dovecot-pop3imap.conf:

    [Definition]
    failregex = (?: pop3-login|imap-login): .*(?:Authentication failure|Aborted login \(auth failed|Aborted login \(tried to use disabled|Disconnected \(auth failed|Aborted login \(\d+ attempts).*rip=(?P\S*),.*
    ignoreregex =

    After I manually created the file fail2ban started immediately (before then, service start would just fail immediately.)

    Also Justin, your automatic code highlighter has a problem with the sample email address in your example configuration — it replaces the @example.com link with some horrible part-evaluated Javascript. You may want to fix that :-)

    Thanks for the blog post, helped me get to grips with my first f2b install on a rather tricky DirectAdmin server.

    Cheers
    Chris

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.