<div class="gmail_quote">On Tue, Apr 5, 2011 at 2:40 PM, Steve Edwards <span dir="ltr">&lt;<a href="http://asterisk.org">asterisk.org</a>@<a href="http://sedwards.com">sedwards.com</a>&gt;</span> wrote:<br><div>&lt;snip&gt; <br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Are there possibly other drawbacks that I&#39;m not seeing/remembering? I&#39;ve been running an iptables based setup for some time, never really jumped into the fail2ban wagon<br>
</blockquote>
<br></div>
I&#39;ve never used fail2ban either. I don&#39;t think it&#39;s advantages are functional, but the more somewhat intangible:<br>
<br>
) It&#39;s included with several of the all-in-one Asterisk distributions.<br>
<br>
) It&#39;s documented.<br>
<br>
) It&#39;s more flexible<br>
<br>
) Somebody else gets to enhance and maintain the code.<div class="im"><br clear="all"></div></blockquote></div><br>Fail2ban is &quot;easy&quot;.  It&#39;s well documented and can be setup in just a few minutes.  It&#39;s got an easy way to setup a whitelist that doesn&#39;t get banned (so you don&#39;t ban yourself or any of your trunks, etc), and you can use it for more than just &quot;asterisk&quot; blocking (I use it to monitor ssh and ftp as well).  You can easily copy config files between systems, etc, plus all the things you mentioned Steve.<br>
<br>That being said, it has several downsides too, i.e - whenever fail2ban is restarted, the fail2ban chains are flushed (this is occurs on system restarts as well).  If you need to make changes to your iptables setup (i.e change an IP address of a service provider), you really want to unload fail2ban, make your changes directly to iptables, then save your new iptables setup, then restart fail2ban.  Otherwise you&#39;ll end up saving your fail2ban chains in with your regular chains, and when you restart fail2ban, it&#39;ll try to add new f2b chains.  And for some reason people seem to think that it requiring Python is a bad thing.  But then again, I&#39;m not running it on small systems - most of the systems I&#39;ve put it on have plenty of excess cpu and memory, so that hasn&#39;t been an issue for me.<br>
<br>-- <br>Thanks,<br>--Warren Selby, dCAP<br><a href="http://www.selbytech.com" target="_blank">http://www.selbytech.com</a><br>