<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Boa noite<div><br></div><div><br></div><div>Alguém mais tem alguma dica?</div><div><br></div><div>Irei relatar o que já fiz</div><div><br></div><div>dei permissão &nbsp;de execução para o script, coloquei ele na pasta /usr/bin/</div><div><br></div><div>via linha de comando ele dispara a ligação normalmente.</div><div><br></div><div><br></div><div>coloquei no sendmail-whois.conf como um amigo da lista tinha proposto porem ainda não obtive êxito, segue como ficou no arquivo.</div><div><br></div><div><br></div><div style="margin: 0px; font-size: 10px; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);">actionban = printf %%b "Subject: [Fail2Ban] &lt;name&gt;: banned &lt;ip&gt; from `uname -n`</div><div style="margin: 0px; font-size: 10px; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Date: `LC_TIME=C date -u +<span style="color: #c33720">"%%a, %%d %%h %%Y %%T +0000"</span>`</div><div style="margin: 0px; font-size: 10px; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; From: &lt;sendername&gt; &lt;&lt;sender&gt;&gt;</div><div style="margin: 0px; font-size: 10px; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; To: &lt;dest&gt;\n</div><div style="margin: 0px; font-size: 10px; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Hi,\n</div><div style="margin: 0px; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);"><span style="font-size: 10px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="font-size: 14px;">&nbsp; \n Ligando para celular Responsavel \n\n</span></div><div style="margin: 0px; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);"><span style="font-size: 14px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; `/usr/bin/chamada.sh`</span></div><div style="margin: 0px; font-size: 10px; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; The IP &lt;ip&gt; has just been banned by Fail2Ban after</div><div style="margin: 0px; font-size: 10px; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;failures&gt; attempts against &lt;name&gt;.\n\n</div><div style="margin: 0px; font-size: 10px; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Here is more information about &lt;ip&gt;:\n</div><div style="margin: 0px; font-size: 10px; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; `/usr/bin/whois &lt;ip&gt; || echo missing whois program`\n</div><div style="margin: 0px; font-size: 10px; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Regards,\n</div><div><span style="background-color: rgb(0, 0, 0); color: rgb(245, 245, 245); font-family: Monaco; font-size: 10px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><span style="background-color: rgb(0, 0, 0); color: rgb(245, 245, 245); font-family: Monaco; font-size: 10px;">Fail2Ban" | /usr/sbin/sendmail -f &lt;sender&gt; &lt;dest&gt;</span>&nbsp;</div><div><br></div><div>Alguém mais tem uma dica?</div><div><br></div><div>A linha maior foi o que acrescentei</div><div><br></div><div><br></div><div>Abs</div><div><br></div><div><br></div></body></html>