Добрый вечер.
Что то упарился я....подскажите....
ftp блокирует,а web +ssh нет
[DEFAULT]
# "ignoreip" can be an IP address, a CIDR mask or a DNS host. Fail2ban will not
# ban a host which matches an address in this list. Several addresses can be
# defined using space separator.
#ignoreip = 127.0.0.1/8
# "bantime" is the number of seconds that a host is banned.
bantime = 600
# A host is banned if it has generated "maxretry" during the last "findtime"
# seconds.
findtime = 600
maxretry = 3
# HTTP servers
#
[apache]
enabled = false
port = http,https
filter = apache-auth
logpath = /var/log/apache2/error.log
maxretry = 3
# default action is now multiport, so apache-multiport jail was left
# for compatibility with previous (<0.7.6-2) releases
[apache-multiport]
enabled = true
port = http,https
filter = apache-auth
logpath = /var/log/apache*/*error.log
maxretry = 3
[vsftpd]
enabled = true
port = ftp,ftp-data,ftps,ftps-data
filter = vsftpd
logpath = /var/log/vsftpd.log
# or overwrite it in jails.local to be
# logpath = /var/log/auth.log
# if you want to rely on PAM failed login attempts
# vsftpd's failregex should match both of those formats
maxretry = 3
[ssh]
enabled = true
port = 3399
filter = sshd
logpath = /var/log/auth.log
maxretry = 3
[Sun Dec 21 23:19:10.805384 2014] [auth_basic:error] [pid 3612] [client ip:51935] AH01617: user stat: authentication failure for "/lightsquid": Password Mismatch
[Sun Dec 21 23:19:11.931110 2014] [auth_basic:error] [pid 3612] [client ip:51935] AH01617: user stat: authentication failure for "/lightsquid": Password Mismatch
[Sun Dec 21 23:19:12.802513 2014] [auth_basic:error] [pid 3612] [client ip:51935] AH01617: user stat: authentication failure for "/lightsquid": Password Mismatch
[Sun Dec 21 23:19:13.209279 2014] [auth_basic:error] [pid 3612] [client ip:51935] AH01617: user stat: authentication failure for "/lightsquid": Password Mismatch
[Sun Dec 21 23:19:13.603503 2014] [auth_basic:error] [pid 3612] [client ip:51935] AH01617: user stat: authentication failure for "/lightsquid": Password Mismatch
2014-12-21 23:19:42,335 fail2ban.jail : INFO Jail 'ssh' started
2014-12-21 23:19:42,337 fail2ban.jail : INFO Jail 'apache-multiport' started
2014-12-21 23:19:42,339 fail2ban.jail : INFO Jail 'vsftpd' started
2014-12-21 23:20:36,371 fail2ban.server : INFO Stopping all jails
2014-12-21 23:20:36,443 fail2ban.jail : INFO Jail 'vsftpd' stopped
2014-12-21 23:20:37,413 fail2ban.jail : INFO Jail 'ssh' stopped
2014-12-21 23:20:37,427 fail2ban.jail : INFO Jail 'apache-multiport' stopped
2014-12-21 23:20:37,428 fail2ban.server : INFO Exiting Fail2ban
2014-12-21 23:20:37,825 fail2ban.server : INFO Changed logging target to /var/log/fail2ban.log for Fail2ban v0.8.11
2014-12-21 23:20:37,826 fail2ban.jail : INFO Creating new jail 'ssh'
2014-12-21 23:20:37,848 fail2ban.jail : INFO Jail 'ssh' uses pyinotify
2014-12-21 23:20:37,868 fail2ban.jail : INFO Initiated 'pyinotify' backend
2014-12-21 23:20:37,869 fail2ban.filter : INFO Added logfile = /var/log/auth.log
2014-12-21 23:20:37,869 fail2ban.filter : INFO Set maxRetry = 3
2014-12-21 23:20:37,870 fail2ban.filter : INFO Set findtime = 600
2014-12-21 23:20:37,870 fail2ban.actions: INFO Set banTime = 600
2014-12-21 23:20:37,901 fail2ban.jail : INFO Creating new jail 'apache-multiport'
2014-12-21 23:20:37,902 fail2ban.jail : INFO Jail 'apache-multiport' uses pyinotify
2014-12-21 23:20:37,906 fail2ban.jail : INFO Initiated 'pyinotify' backend
2014-12-21 23:20:37,907 fail2ban.filter : INFO Added logfile = /var/log/apache2/error.log
2014-12-21 23:20:37,908 fail2ban.filter : INFO Added logfile = /var/log/apache2/gw.site.ru.error.log
2014-12-21 23:20:37,909 fail2ban.filter : INFO Added logfile = /var/log/apache2/wpad.site.ru.error.log
2014-12-21 23:20:37,909 fail2ban.filter : INFO Set maxRetry = 3
2014-12-21 23:20:37,910 fail2ban.filter : INFO Set findtime = 600
2014-12-21 23:20:37,910 fail2ban.actions: INFO Set banTime = 600
2014-12-21 23:20:37,934 fail2ban.jail : INFO Creating new jail 'vsftpd'
2014-12-21 23:20:37,934 fail2ban.jail : INFO Jail 'vsftpd' uses pyinotify
2014-12-21 23:20:37,938 fail2ban.jail : INFO Initiated 'pyinotify' backend
2014-12-21 23:20:37,939 fail2ban.filter : INFO Added logfile = /var/log/vsftpd.log
2014-12-21 23:20:37,940 fail2ban.filter : INFO Set maxRetry = 3
2014-12-21 23:20:37,940 fail2ban.filter : INFO Set findtime = 600
2014-12-21 23:20:37,941 fail2ban.actions: INFO Set banTime = 600
2014-12-21 23:20:37,949 fail2ban.jail : INFO Jail 'ssh' started
2014-12-21 23:20:37,953 fail2ban.jail : INFO Jail 'apache-multiport' started
2014-12-21 23:20:37,955 fail2ban.jail : INFO Jail 'vsftpd' started
2014-12-21 23:23:08,137 fail2ban.actions: WARNING [vsftpd] Ban ip
Почему не блокирует...
хотя есть сервера на 10.04 и 12.04 там все прекрасно работает!