Fail2Ban installation issues

Discussion in 'Installation/Configuration' started by 51b0rg, Apr 5, 2012.

  1. 51b0rg

    51b0rg New Member

    when installing fail to ban on page 5 of The Perfect Server - Ubuntu 11.10 [ISPConfig 3],
    when i try to restart fail2ban at the end i get this error
     * Restarting authentication failure monitor fail2ban                                                                                                                             Traceback (most recent call last):
      File "/usr/bin/fail2ban-client", line 401, in <module>
        if client.start(sys.argv):
      File "/usr/bin/fail2ban-client", line 370, in start
        return self.__processCommand(args)
      File "/usr/bin/fail2ban-client", line 180, in __processCommand
        ret = self.__readConfig()
      File "/usr/bin/fail2ban-client", line 375, in __readConfig
        ret = self.__configurator.getOptions()
      File "/usr/share/fail2ban/client/", line 65, in getOptions
        return self.__jails.getOptions(jail)
      File "/usr/share/fail2ban/client/", line 64, in getOptions
        ret = jail.getOptions()
      File "/usr/share/fail2ban/client/", line 75, in getOptions
        ret =
      File "/usr/share/fail2ban/client/", line 53, in read
        return, "filter.d/" + self.__file)
      File "/usr/share/fail2ban/client/", line 59, in read, [bConf, bLocal])
      File "/usr/share/fail2ban/client/", line 105, in read
        fileNamesFull += SafeConfigParserWithIncludes.getIncludes(filename)
      File "/usr/share/fail2ban/client/", line 76, in getIncludes
      File "/usr/lib/python2.7/", line 297, in read
        self._read(fp, filename)
      File "/usr/lib/python2.7/", line 504, in _read
        raise MissingSectionHeaderError(fpname, lineno, line)
    ConfigParser.MissingSectionHeaderError: File contains no section headers.
    file: /etc/fail2ban/filter.d/courierpop3.conf, line: 1
    'l2Ban configuration file\n'
  2. falko

    falko Super Moderator ISPConfig Developer

    Please post your /etc/fail2ban/filter.d/courierpop3.conf file.
  3. 51b0rg

    51b0rg New Member

    ln configuration file
    # $Revision: 100 $
    # Option:  failregex
    # Notes.:  regex to match the password failures messages in the logfile. The
    #          host must be matched by a group named "host". The tag "<HOST>" can
    #          be used for standard IP/hostname matching and is only an alias for
    #          (?:::f{4,6}:)?(?P<host>\S+)
    # Values:  TEXT
    failregex = pop3d: LOGIN FAILED.*ip=\[.*:<HOST>\]
    # Option:  ignoreregex
    # Notes.:  regex to ignore. If this regex matches, the line is ignored.
    # Values:  TEXT
    ignoreregex =
  4. 51b0rg

    51b0rg New Member

    fixed it

    figured out it erased '# Fai" from 3 of the configs when i pasted them

Share This Page