Can't make fail2ban start

tiggerpaws
Posts: 45
Member Since:
2010-05-11

When I edit the jail.conf file with nano it won't
start.

I added some ip addresses for it to ignore.

I tried to start fail2ban and it won't start.

The errors are:
[trixbox1.localdomain fail2ban]# /etc/init.d/fail2ban restart
Stopping fail2ban: [FAILED]
Starting fail2ban: Traceback (most recent call last):
File "/usr/bin/fail2ban-client", line 401, in ?
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 374, in __readConfig
self.__configurator.readAll()
File "/usr/share/fail2ban/client/configurator.py", line 58, 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 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
parser.read(resource)
File "/usr/lib/python2.4/ConfigParser.py", line 267, in read
self._read(fp, filename)
File "/usr/lib/python2.4/ConfigParser.py", line 490, in _read
raise e
ConfigParser.ParsingError: File contains parsing errors: /etc/fail2ban/jail.conf
[line 17]: '204.155.28.10 66.54.140.46 66.54.140.42 64.21.13.43 64.21.35.236 64.21.13.41\n'
[FAILED]

Please note, I AM mentally handicapped, I have autism
and I don't think like the rest of people do, so if your
responce does not make sense, I will ask for further help
onderstanding what you are saying..

If you say something "mean", I WILL have a reaction to it,
I will curse if you curse, I will snap back if you snap
at me, I will come back with a smart aleck attitude if
you have one at me, This is how I react, if you don't liek it,
then please act how you want me to act toward you, Ok?

Good.

I am asking politely how to do thisw, if this isn't
the place to do it, please tell me in the way YOU
want me to respond back to you, If you tell me
in a mean way, I will respond the same way back
to you, if you tell me in a kind polite way, I will
react the same way with you.

If you can tell me a useful place to post
this kind of question and I will go post it there.

Thank you to those that give me actual help.



SkykingOH
Posts: 9681
Member Since:
2007-12-17
I have deleted the replies

I have deleted the replies as they were not appropriate nor relevant.

--

Scott

aka "Skyking"



cvander
Posts: 637
Member Since:
2006-06-26
jail.conf please...

Tiggerpaws, if you could post the contents of your jail.conf file, I think that would be helpful. It seems to me that there may be a typo in the file (line 17). post it up here (please use the code tags) and I'll give it a look.

-Chris



obeliks
Posts: 878
Member Since:
2010-03-14
the line needs to

the line needs to be:

ignoreip = 204.155.28.10 66.54.140.46 66.54.140.42 64.21.13.43 64.21.35.236 64.21.13.41

not just bare IPs by themselves



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.