From owner-freebsd-questions@FreeBSD.ORG Fri Apr 23 18:01:54 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 21B191065675 for ; Fri, 23 Apr 2010 18:01:54 +0000 (UTC) (envelope-from AARON.J.BAUER@saic.com) Received: from cpmx.mail.saic.com (cpmx.mail.saic.com [139.121.17.160]) by mx1.freebsd.org (Postfix) with ESMTP id EA99D8FC2B for ; Fri, 23 Apr 2010 18:01:53 +0000 (UTC) Received: from 0599-its-sbg03.saic.com ([139.121.21.144] [139.121.21.144]) by cpmx.mail.saic.com with ESMTP id BT-MMP-11579672 for freebsd-questions@freebsd.org; Fri, 23 Apr 2010 10:46:43 -0700 X-AuditID: 8b79132a-b7cceae000005886-5c-4bd1dd039ef3 Received: from 0599-its-exbh01.us.saic.com (cpg-z7-si-srcnat.sw.saic.com [139.121.21.144]) by 0599-its-sbg03.saic.com (Symantec Brightmail Gateway) with SMTP id 75.A7.22662.30DD1DB4; Fri, 23 Apr 2010 10:46:43 -0700 (PDT) Received: from 0461-its-exmb04.us.saic.com ([10.8.67.27]) by 0599-its-exbh01.us.saic.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 23 Apr 2010 10:46:43 -0700 Received: from 10.31.250.17 ([10.31.250.17]) by 0461-its-exmb04.us.saic.com ([10.8.67.27]) via Exchange Front-End Server cpmail.saic.com ([139.121.17.195]) with Microsoft Exchange Server HTTP-DAV ; Fri, 23 Apr 2010 17:46:43 +0000 MIME-Version: 1.0 content-class: urn:content-classes:message From: "Bauer, Aaron J." To: "freebsd-questions@freebsd.org" Thread-Topic: Setup Fail2Ban on FreeBSD Thread-Index: AcrjDU86i5x9EHoFRuqQGem5YnX9rw== Message-Id: X-Mailer: Microsoft Outlook Web Access 6.5.7651.60 X-MimeCtl: Produced By Microsoft Exchange V6.5.7651.60 Date: Fri, 23 Apr 2010 10:49:23 -0700 X-OriginalArrivalTime: 23 Apr 2010 17:46:43.0601 (UTC) FILETIME=[EFD07810:01CAE30C] X-Brightmail-Tracker: AAAAAA== X-Mailman-Approved-At: Fri, 23 Apr 2010 18:09:45 +0000 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Setup Fail2Ban on FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Apr 2010 18:01:54 -0000 I am currently using FreeNAS 0.7 for a file server. I have multiple SSH br= uteforce attacks each week, and wish to use fail2ban to prevent this. I don't have much experience with BSD, and am having trouble getting everyt= hing to work. I ran pkg_add -r python25 and pkg_add -r py25-fail2ban. I n= ow 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 an= d 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=20 Software Research Intern=20 Aaron.J.Bauer@SAIC.com