asterisk 11 + fail2ban (перестал банить)
Добавлено: 26 дек 2013, 16:41
fail2ban перестал банить
./jail.conf
./filter.d/asterisk.conf
./asterisk/logger.conf
/var/log/asterisk/messages
Подскажите возможные причины
В какую сторону "рыть"?
./jail.conf
Код: Выделить всё
[DEFAULT]
ignoreip =
bantime = 600
findtime = 600
maxretry = 3
backend = auto
[asterisk-iptables]
enabled = true
filter = asterisk
action = iptables-allports[name=ASTERISK, protocol=all]
sendmail-whois[name=ASTERISK, dest=root, sender=asterisk-iptables]
logpath = /var/log/asterisk/messages
maxretry = 3
findtime = 3600
bantime = 36000
destemail = support@domain.ru
ignoreip = wan/24 lan/12
Код: Выделить всё
[INCLUDES]
[Definition]
failregex = .*NOTICE.* .*: Registration from '.*' failed for '<HOST>' - Wrong password
.*NOTICE.* .*: Registration from '.*' failed for '<HOST>' - Peer is not supposed to register
.*NOTICE.* .*: Registration from '.*' failed for '<HOST>:.*' - Wrong password
.*NOTICE.* .*: Registration from '.*' failed for '<HOST>' - No matching peer found
.*NOTICE.* .*: Registration from '.*' failed for '<HOST>:.*' - No matching peer found
.*NOTICE.* .*: Registration from '.*' failed for '<HOST>:.*' - Username/auth name mismatch
.*NOTICE.* .*: Registration from '.*' failed for '<HOST>:.*' - Device does not match ACL
.*NOTICE.* .*: Registration from '.*' failed for '<HOST>:.*' - Peer is not supposed to register
.*NOTICE.* .*: Registration from '.*' failed for '<HOST>:.*' - ACL error (permit/deny)
.*NOTICE.* .*: Registration from '.*' failed for '<HOST>:.*' - Device does not match ACL
.*NOTICE.* .*: Registration from '\".*\".*' failed for '<HOST>:.*' - No matching peer found
.*NOTICE.* .*: Registration from '\".*\".*' failed for '<HOST>:.*' - Wrong password
.*NOTICE.* <HOST> failed to authenticate as '.*'$
.*NOTICE.* .*: No registration for peer '.*' \(from <HOST>\)
.*NOTICE.* .*: Host <HOST> failed MD5 authentication for '.*' (.*)
.*NOTICE.* .*: Failed to authenticate user .*@<HOST>.*
.*NOTICE.* .*[logfiles]: <HOST> failed to authenticate as '.*'
.*NOTICE.* .*: <HOST> tried to authenticate with nonexistent user '.*'
.*VERBOSE.*SIP/<HOST>-.*Received incoming SIP connection from unknown peer
.*NOTICE.* .*: Sending fake auth rejection for device.* \[IP: <HOST>:.*\]
ignoreregex =
Код: Выделить всё
dateformat=%F %T
[logfiles]
console => notice,warning,error
messages => notice,warning,error
messages => security
full => notice,warning,error,debug,verbose,dtmf,fax
Код: Выделить всё
Connected to Asterisk 11.5.0 currently running on server (pid = 1152)
[2013-12-26 08:30:18] NOTICE[1238]: chan_sip.c:27919 handle_request_register: Registration from '"0002499037" <sip:0002499037@ip>' failed for '176.74.14.86:5060' - Wrong password
[2013-12-26 08:30:18] NOTICE[1238]: chan_sip.c:27919 handle_request_register: Registration from '"0002499038" <sip:0002499038@ip>' failed for '176.74.14.86:5060' - Wrong password
[2013-12-26 08:33:18] NOTICE[1238]: chan_sip.c:27919 handle_request_register: Registration from '"0002499037" <sip:0002499037@ip>' failed for '176.74.14.86:5060' - Wrong password
[2013-12-26 08:33:18] NOTICE[1238]: chan_sip.c:27919 handle_request_register: Registration from '"0002499038" <sip:0002499038@ip>' failed for '176.74.14.86:5060' - Wrong password
Код: Выделить всё
[2013-12-26 08:33:18] NOTICE[1238] chan_sip.c: Registration from '"0002499037" <sip:0002499037@ip>' failed for '176.74.14.86:5060' - Wrong password
[2013-12-26 08:33:18] SECURITY[1165] res_security_log.c: SecurityEvent="InvalidPassword",EventTV="1388046798-520090",Severity="Error",Service="SIP",EventVersion="2",AccountID="0002499037",SessionID="0x7f0eedc82278",LocalAddress="IPV4/UDP/ip/5060",RemoteAddress="IPV4/UDP/176.74.14.86/5060",Challenge="2ffb348e",ReceivedChallenge="2ffb348e",ReceivedHash="fb80d1d181d8ba969b94c72836fbc9cc"
[2013-12-26 08:33:18] NOTICE[1238] chan_sip.c: Registration from '"0002499038" <sip:0002499038@ip>' failed for '176.74.14.86:5060' - Wrong password
[2013-12-26 08:33:18] SECURITY[1165] res_security_log.c: SecurityEvent="InvalidPassword",EventTV="1388046798-520764",Severity="Error",Service="SIP",EventVersion="2",AccountID="0002499038",SessionID="0x7f0eec6bbd28",LocalAddress="IPV4/UDP/ip/5060",RemoteAddress="IPV4/UDP/176.74.14.86/5060",Challenge="4e13c1bb",ReceivedChallenge="4e13c1bb",ReceivedHash="8c248aada11d99a6cb34157a9c796f64"
[2013-12-26 08:34:44] SECURITY[1165] res_security_log.c: SecurityEvent="ChallengeSent",EventTV="1388046884-703707",Severity="Informational",Service="SIP",EventVersion="1",AccountID="sip:0000001400@ip",SessionID="0x7f0eec70c008",LocalAddress="IPV4/UDP/ip/5060",RemoteAddress="IPV4/UDP/176.74.14.86/5060",Challenge="27d815f2"
В какую сторону "рыть"?