Setup Fail2Ban on FreeBSD

Tim Daneliuk tundra at tundraware.com
Sat Apr 24 14:47:43 UTC 2010


On 4/23/2010 8:03 PM, Zhu Jing wrote:
> On Sat, Apr 24, 2010 at 1:49 AM, Bauer, Aaron J. <AARON.J.BAUER at saic.com>wrote:
> 
>> I am currently using FreeNAS 0.7 for a file server.  I have multiple SSH
>> bruteforce attacks each week, and wish to use fail2ban to prevent this.
>>
>> I don't have much experience with BSD, and am having trouble getting
>> everything to work.  I ran pkg_add -r python25 and pkg_add -r py25-fail2ban.
>>  I now have all the files for Fail2Ban, and did the cp jail.conf jail.local
>> as the other distro's for linux use.
>>
>> However, how do I start using fail2ban?  I have configured it for CentOS
>> and Ubuntu, and it starts in init.d.  I don't know how to add it to
>> /etc/rc.d to get it to work correctly..
>>
>> Any help is greatly appreciated.  If you need more info, please let me
>> know.
>>
>> Aaron
>> Software Research Intern
>> Aaron.J.Bauer at SAIC.com

I came up with another approach to this problem that involves dynamic
control of TCP Wrappers.  It's freely available at:

  http://www.tundraware.com/Software/tperimeter/

----------------------------------------------------------------------------
Tim Daneliuk     tundra at tundraware.com
PGP Key:         http://www.tundraware.com/PGP/



More information about the freebsd-questions mailing list