Old 5th April 2012, 22:30
51b0rg 51b0rg is offline
Junior Member
Join Date: Feb 2012
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Fail2Ban installation issues

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/configurator.py", line 65, in getOptions
    return self.__jails.getOptions(jail)
  File "/usr/share/fail2ban/client/jailsreader.py", line 64, in getOptions
    ret = jail.getOptions()
  File "/usr/share/fail2ban/client/jailreader.py", line 75, in getOptions
    ret = self.__filter.read()
  File "/usr/share/fail2ban/client/filterreader.py", line 53, in read
    return ConfigReader.read(self, "filter.d/" + self.__file)
  File "/usr/share/fail2ban/client/configreader.py", line 59, in read
    SafeConfigParserWithIncludes.read(self, [bConf, bLocal])
  File "/usr/share/fail2ban/client/configparserinc.py", line 105, in read
    fileNamesFull += SafeConfigParserWithIncludes.getIncludes(filename)
  File "/usr/share/fail2ban/client/configparserinc.py", line 76, in getIncludes
  File "/usr/lib/python2.7/ConfigParser.py", line 297, in read
    self._read(fp, filename)
  File "/usr/lib/python2.7/ConfigParser.py", 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'
Reply With Quote
Sponsored Links
Old 6th April 2012, 13:10
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts

Please post your /etc/fail2ban/filter.d/courierpop3.conf file.
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Old 14th April 2012, 02:49
51b0rg 51b0rg is offline
Junior Member
Join Date: Feb 2012
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts

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 =
Reply With Quote
Old 14th April 2012, 07:32
51b0rg 51b0rg is offline
Junior Member
Join Date: Feb 2012
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts

fixed it

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


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Fail2ban florix.net Installation/Configuration 4 26th January 2011 01:53
fail2ban is doing nothing? rlischer Server Operation 16 29th June 2010 08:29
fail2ban configuration issues... hemajanger Server Operation 0 15th May 2009 21:53
ISPConfig 3 installation issues jhughes Developers' Forum 1 5th October 2008 13:47
ISPConfig help on Ubuntu - Installation Issues ShawnHunt Installation/Configuration 3 23rd November 2006 11:27

All times are GMT +2. The time now is 17:58.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.