Date: Sat, 24 Apr 2010 09:03:02 +0800 From: Zhu Jing <shadowarrx@gmail.com> To: "Bauer, Aaron J." <AARON.J.BAUER@saic.com> Cc: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: Setup Fail2Ban on FreeBSD Message-ID: <q2he8b268881004231803t3a6d3f4ai6dfd167c05f10997@mail.gmail.com> In-Reply-To: <FFD86018-E200-4471-B65D-A4CDC0505BE4@mimectl> References: <FFD86018-E200-4471-B65D-A4CDC0505BE4@mimectl>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Apr 24, 2010 at 1:49 AM, Bauer, Aaron J. <AARON.J.BAUER@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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?q2he8b268881004231803t3a6d3f4ai6dfd167c05f10997>