View Single Post
  #7  
Old 6th August 2011, 19:19
mentes mentes is offline
Senior Member
 
Join Date: Aug 2011
Location: Spain
Posts: 132
Thanks: 4
Thanked 15 Times in 13 Posts
Default

I'm sure what I do, but I'm not sure what happens.

Code:
root@main:~# cat /etc/fail2ban/fail2ban.conf 
# Fail2Ban configuration file
#
# Author: Cyril Jaquier
#
# $Revision: 629 $
#

[Definition]

# Option:  loglevel
# Notes.:  Set the log level output.
#          1 = ERROR
#          2 = WARN
#          3 = INFO
#          4 = DEBUG
# Values:  NUM  Default:  3
#
loglevel = 4 

# Option:  logtarget
# Notes.:  Set the log target. This could be a file, SYSLOG, STDERR or STDOUT.
#          Only one log target can be specified.
# Values:  STDOUT STDERR SYSLOG file  Default:  /var/log/fail2ban.log
#
logtarget = /var/log/fail2ban.log

# Option: socket
# Notes.: Set the socket file. This is used to communicate with the daemon. Do
#         not remove this file when Fail2ban runs. It will not be possible to
#         communicate with the server afterwards.
# Values: FILE  Default:  /var/run/fail2ban/fail2ban.sock
#
socket = /var/run/fail2ban/fail2ban.sock
I have restarted it some times, and the server too but log still contains the same.

Code:
root@main:~# cat /var/log/fail2ban.log 
2011-08-05 20:56:20,180 fail2ban.server : INFO   Changed logging target to /var/log/fail2ban.log for Fail2ban v0.8.4-SVN
2011-08-05 20:56:20,181 fail2ban.jail   : INFO   Creating new jail 'ssh'
2011-08-05 20:56:20,181 fail2ban.jail   : INFO   Jail 'ssh' uses poller
2011-08-05 20:56:20,231 fail2ban.filter : INFO   Added logfile = /var/log/auth.log
2011-08-05 20:56:20,231 fail2ban.filter : INFO   Set maxRetry = 6
2011-08-05 20:56:20,232 fail2ban.filter : INFO   Set findtime = 600
2011-08-05 20:56:20,233 fail2ban.actions: INFO   Set banTime = 600
2011-08-05 20:56:20,312 fail2ban.jail   : INFO   Jail 'ssh' started
2011-08-05 21:01:04,889 fail2ban.jail   : INFO   Jail 'ssh' stopped
2011-08-05 21:01:04,889 fail2ban.server : INFO   Exiting Fail2ban
root@main:~#
Reply With Quote