<span id="result_box" class="long_text"><span title="">Hello list.<br><br></span><span title="">I&#39;m trying to find a way to block any ip that tries to login 
more than three times with the wrong password and try to log in three 
different extensions. </span><span title="">For I have suffered some 
brute force attacks on my asterisk in the morning period.<br><br></span><span title="">The idea would be: Any ip with three attempts without success 
to log into an extension is blocked.<br><br></span><span title="">Is 
there any way to accomplish this directly by the asterisk? </span><span title="">Or is there some kind of asterisk spit this information via the
 AMI?<br><br></span><span title=""></span></span><span id="result_box" class="long_text"><span style="" title="">I was 
wondering to make a Java program to listen to the AMI and create a rule 
in iptables for ip in specific.</span></span><br><span id="result_box" class="long_text"><span title=""><br></span><span title="">Does anyone have any suggestions?<br><br><br></span><span title="">Thanks,<br></span><span title="">Rodrigo Lang.</span></span>