View Single Post
Old 24th June 2007, 05:57
cruz cruz is offline
Senior Member
Join Date: Apr 2007
Posts: 365
Thanks: 51
Thanked 2 Times in 2 Posts
Default need help with fail2ban install

I had to unistall fail2ban because I delited the wrong file. I reinstalled. when i got to the place were I was to create the file jail.local, i copied the the file from your install, pasted it to word. added my ip address for my laptop. then pasted it in the new file jail.local. when I restarted the program I got this error.
HTML Code:
server1:~# vi /etc/fail2ban/jail.local
server1:~# /etc/init.d/fail2ban restart
Restarting authentication failure monitor: fail2banTraceback (most recent call l                                                                             ast):
  File "/usr/bin/fail2ban-client", line 333, in ?
    if client.start(sys.argv):
  File "/usr/bin/fail2ban-client", line 311, in start
    return self.__processCommand(args)
  File "/usr/bin/fail2ban-client", line 175, in __processCommand
  File "/usr/bin/fail2ban-client", line 315, in __readConfig
  File "/usr/share/fail2ban/client/", line 56, in readAll
  File "/usr/share/fail2ban/client/", line 41, in read, "jail")
  File "/usr/share/fail2ban/client/", line 57, in read, [bConf, bLocal])
  File "/usr/lib/python2.4/", line 267, in read
    self._read(fp, filename)
  File "/usr/lib/python2.4/", line 462, in _read
    raise MissingSectionHeaderError(fpname, lineno, line)
ConfigParser.MissingSectionHeaderError: File contains no section headers.
file: /etc/fail2ban/jail.local, line: 4
'ignoreip =\n'
What dose this all mean. It sounded like all I had to change was to add my ip to the ignoreip line.
Reply With Quote
Sponsored Links