From owner-freebsd-questions@FreeBSD.ORG Sat Apr 24 01:28:05 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 5389A1065675 for ; Sat, 24 Apr 2010 01:28:05 +0000 (UTC) (envelope-from shadowarrx@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0C6168FC13 for ; Sat, 24 Apr 2010 01:28:04 +0000 (UTC) Received: by gyh20 with SMTP id 20so5446981gyh.13 for ; Fri, 23 Apr 2010 18:28:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=0WxcX6mfFdRIZAg11v3IQxJVqn7eETM4F+BE7YYB8q0=; b=rckvkyuxDB/rniLTUbOHBl46M1ToAa/Ee1D5Q9D6inFcNCsOGd7aR1JcnKyu67NpHy F/s5QEXte6XRaN4JDR17Pv3wbhCcsdbsRLe5GjahQx3a2nINdS0saFfdTJbOQUfDzfW4 gv29KhyLlBteSSseWCVoyg3G5X4pp5qTaCULs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=RdlJPj4gUgOwQYzkChbohG/yB5WITWN1ijtG4ZBl+FVLtf+inkT0pu7leaElOPRhvf F0fAP2lOxNneoNZrq0VFYGecxjKEUl7KaKcwQrtl7SQZAEieriCwIq+iidMj6+L8tcRA ig/mbovnVn1O9PlA8/7LDJehvBCRrAgv+KgSU= Received: by 10.101.144.27 with SMTP id w27mr946413ann.197.1272071002762; Fri, 23 Apr 2010 18:03:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.44.19 with HTTP; Fri, 23 Apr 2010 18:03:02 -0700 (PDT) In-Reply-To: References: From: Zhu Jing Date: Sat, 24 Apr 2010 09:03:02 +0800 Message-ID: To: "Bauer, Aaron J." Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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: Sat, 24 Apr 2010 01:28:05 -0000 On Sat, Apr 24, 2010 at 1:49 AM, Bauer, Aaron J. 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@SAIC.com > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > http://www.freebsd.org/doc/en/books/handbook/configtuning-rcd.html ------- t is easy to check if a service is enabled in /etc/rc.conf by running the appropriate rc.d script with the option rcvar. Thus, an administrator can check that sshd is in fact enabled in /etc/rc.conf by running: # /etc/rc.d/sshd rcvar # sshd ---- $sshd_enable=YES