Hallo Zusammen,
ich betreibe auf meinen Asterisk fail2ban.
Ich habe vermehrt verschiedene Login Versuche von Hackern.
Bei folgendem Angriff wird die IP Adresse geblockt und ich bekomme eine E-Mail.
Bei folgenden Zeilen passiert leider gar nichts
Meine asterisk.conf sieht so aus
Hat jemand eine Idee
ich betreibe auf meinen Asterisk fail2ban.
Ich habe vermehrt verschiedene Login Versuche von Hackern.
Bei folgendem Angriff wird die IP Adresse geblockt und ich bekomme eine E-Mail.
Code:
[2017-02-28 13:59:38] NOTICE[1417]: chan_sip.c:28485 handle_request_register: Registration from '<sip:[email protected]>' failed for '80.137.87.271:5060' - Wrong password
Bei folgenden Zeilen passiert leider gar nichts
Code:
[2017-02-28 14:04:45] NOTICE[1417][C-00000016]: chan_sip.c:26165 handle_request_invite: Failed to authenticate from 89.163.146.59:5073 device 120<sip:[email protected]>;tag=c8ac6676
[2017-02-28 14:10:43] NOTICE[1417][C-0000001e]: chan_sip.c:26165 handle_request_invite: Failed to authenticate from 89.163.146.59:5105 device 104<sip:[email protected]>;tag=f129f0e6
[2017-02-28 14:07:45] NOTICE[1417][C-0000001a]: chan_sip.c:26165 handle_request_invite: Failed to authenticate from 89.163.146.59:5089 device 305<sip:[email protected]>;tag=b70a8b36
Meine asterisk.conf sieht so aus
Code:
# Fail2Ban configuration.#
[INCLUDES]
# Read common prefixes. If any customizations available -- read them from
# common.local
#before = common.conf
[Definition]
#_daemon = asterisk
# 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>\S+)
# Values: TEXT
#
failregex = 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.* .*: <HOST> failed to authenticate as '.*'
NOTICE.* .*: <HOST> tried to authenticate with nonexistent user '.*'
VERBOSE.*SIP/<HOST>-.*Received incoming SIP connection from unknown peer
# Option: ignoreregex
# Notes.: regex to ignore. If this regex matches, the line is ignored.
# Values: TEXT
#
ignoreregex =
Hat jemand eine Idee