Здравствуйте.
Подскажите/помогите.
Есть:
iptaf пишет лог
Thu Oct 2 18:58:35 2014; TCP; wlan0; 60 bytes; from 192.168.1.200:7777 to 192.168.1.40:52013; first packet (SYN)
Thu Oct 2 18:58:35 2014; TCP; wlan0; 463 bytes; from 192.168.1.200:7777 to 192.168.1.40:52013; FIN sent; 17 packets, 21309 bytes, av$
Thu Oct 2 18:58:35 2014; TCP; wlan0; 52 bytes; from 192.168.1.200:7777 to 192.168.1.40:52013; FIN acknowleged
есть 7777.conf
[Definition]
# Option: failregex
# Notes.: regex to match the password failures messages in the logfile. The
# host must be matched by a group named "host". The tag "<HOST>" can
# be used for standard IP/hostname matching and is only an alias for
# (?:::f{4,6}:)?(?P<host>[\w\-.^_]+)
# Values: TEXT
#
failregex = /from <HOST>:7777 to/
# Option: ignoreregex
# Notes.: regex to ignore. If this regex matches, the line is ignored.
# Values: TEXT
#
ignoreregex =
jail.conf
enabled = true
port = 7777
filter = 7777
logpath = /home/test/traf.log
maxretry = 6
рестарт fail2ban
лог fail2ban
2014-10-02 21:23:13,258 fail2ban.server : INFO Stopping all jails
2014-10-02 21:23:13,381 fail2ban.jail : INFO Jail '7777' stopped
2014-10-02 21:23:13,382 fail2ban.server : INFO Exiting Fail2ban
2014-10-02 21:23:13,694 fail2ban.server : INFO Changed logging target to /home/test/fail2ban.log for Fail2ban v0.8.6
2014-10-02 21:23:13,694 fail2ban.jail : INFO Creating new jail '7777'
2014-10-02 21:23:13,695 fail2ban.jail : INFO Jail '7777' uses Gamin
2014-10-02 21:23:13,704 fail2ban.filter : INFO Set maxRetry = 6
2014-10-02 21:23:13,705 fail2ban.filter : INFO Set findtime = 600
2014-10-02 21:23:13,705 fail2ban.actions: INFO Set banTime = 600
2014-10-02 21:23:13,708 fail2ban.jail : INFO Jail '7777' started
iptables -S
test@test:~$ iptables -S
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
-N fail2ban-7777
-A INPUT -p tcp -m multiport --dports 7777 -j fail2ban-7777
-A fail2ban-7777 -j RETURN
test@test:~$
Подключаюсь 6 и более раз(стоит разрешенное 6) ничего не происходит. В параметрах стоит 6 подключений за 600 секунд.
Что я делаю не так? Почему не срабатывает?
Спасибо.