Answer the question
In order to leave comments, you need to log in
Sending asterisk messages on invalid authorization?
How can I send a message if there is an incorrect authorization in Asterisk? (wrong password for example).
So that when you type an incorrect password, a message is sent to the mail.
Answer the question
In order to leave comments, you need to log in
configure fail2ban itself, it will analyze the logs and send you a whois soap at the ip address that it added, and of course it will add a blocking rule to iptables, if this is not necessary but you need it as simple as possible, then you can make a script with logic on your knee:
$log=tail -f /var/log/messages | grep failed to authenticate
if true sendmail -t [email protected] $log
Actually check line by line, send it when a line appears, clear the variable and look further.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question