View Single Post
  #1  
Old 24th June 2007, 04: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
    self.__readConfig()
  File "/usr/bin/fail2ban-client", line 315, in __readConfig
    self.__configurator.readAll()
  File "/usr/share/fail2ban/client/configurator.py", line 56, in readAll
    self.__jails.read()
  File "/usr/share/fail2ban/client/jailsreader.py", line 41, in read
    ConfigReader.read(self, "jail")
  File "/usr/share/fail2ban/client/configreader.py", line 57, in read
    SafeConfigParser.read(self, [bConf, bLocal])
  File "/usr/lib/python2.4/ConfigParser.py", line 267, in read
    self._read(fp, filename)
  File "/usr/lib/python2.4/ConfigParser.py", line 462, in _read
    raise MissingSectionHeaderError(fpname, lineno, line)
ConfigParser.MissingSectionHeaderError: File contains no section headers.
file: /etc/fail2ban/jail.local, line: 4
'ignoreip = 127.0.0.1 192.168.1.101\n'
 failed!
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