[INCLUDES]
before = common.conf [Definition]
failregex = NOTICE%(__pid_re)s .: Registration from '.' failed for '<host>.' - Wrong password$
NOTICE%(__pid_re)s .: Registration from '.' failed for '<host>.</host>' - No matching peer found$
NOTICE%(__pid_re)s .: Registration from '.' failed for '<host>.' - Username/auth name mismatch$
NOTICE%(__pid_re)s .: Registration from '.' failed for '<host>.</host>' - Device does not match ACL$
NOTICE%(__pid_re)s .: Registration from '.' failed for '<host>.' - Peer is not supposed to register$
NOTICE%(__pid_re)s .: Registration from '.' failed for '<host>.</host>' - ACL error (permit/deny)$
NOTICE%(__pid_re)s <host>. failed to authenticate as '.'$
NOTICE%(__pid_re)s .: No registration for peer '.' (from <host>.)$
NOTICE%(__pid_re)s .: Host <host>. failed MD5 authentication for '.' (.)$
NOTICE%(__pid_re)s .: Failed to authenticate user .@<host>.</host>$
ignoreregex =</host></host></host></host></host></host>
Hi.
There is a filter for Asterisk:
/etc/fail2ban/filter.d/asterisk.conf
and in jail.conf
You may have to adapt the configurations to you system