From owner-freebsd-questions@FreeBSD.ORG Fri Apr 23 20:21:37 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 6C23A1065673 for ; Fri, 23 Apr 2010 20:21:37 +0000 (UTC) (envelope-from noeldude@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id 411698FC1B for ; Fri, 23 Apr 2010 20:21:37 +0000 (UTC) Received: by pva18 with SMTP id 18so789973pva.13 for ; Fri, 23 Apr 2010 13:21:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=W0Ih2N7t4GdMYW40do+jL0MJHrsS+hada2WaX8BVSqg=; b=Z1X1EPSEFPZxK1SS5mjRMuSaDR2CmGvn56H0+qolD0y6vv7/7h/WWB16UESkV0CwHv PdrfYiZZUD+iMOoL8XS/pmDdHpFMj+kaNZKRLzmX4iYzWPL8WPloA2bUsIhF6bpXzI3y I5+X6o0BHV5hXBycP4WFkLMM5+zeYEoVnz3Pc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Qhf2wtkG2Y8SEiaN9JGEVUNjT0bpUoYMgP9KDudahbbX5QENuVUVFjr23I7ALpWiQD 8+6ycIyJBiBb2+9MKWqbljrtD58q2lIakkyfmejGs1ZgYa5PxM3wLoWOiWyV42+qIS0q uRkH/HayarEuf+quv1o08yRHcvb/P/fWOxbJw= MIME-Version: 1.0 Received: by 10.140.58.18 with SMTP id g18mr818922rva.46.1272054096611; Fri, 23 Apr 2010 13:21:36 -0700 (PDT) Received: by 10.150.97.5 with HTTP; Fri, 23 Apr 2010 13:21:36 -0700 (PDT) In-Reply-To: References: Date: Fri, 23 Apr 2010 15:21:36 -0500 Message-ID: From: Noel Jones To: "Bauer, Aaron J." Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-questions@freebsd.org" Subject: Re: 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 20:21:37 -0000 On Fri, Apr 23, 2010 at 12:49 PM, Bauer, Aaron J. wrote: > I am currently using FreeNAS 0.7 for a file server. =A0I have multiple SS= H 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 ever= ything to work. =A0I ran pkg_add -r python25 and pkg_add -r py25-fail2ban. = =A0I now have all the files for Fail2Ban, and did the cp jail.conf jail.loc= al as the other distro's for linux use. > > However, how do I start using fail2ban? =A0I have configured it for CentO= S and Ubuntu, and it starts in init.d. =A0I don't know how to add it to /et= c/rc.d to get it to work correctly.. > add the line: fail2ban_enable=3D"YES" to /etc/rc.conf