From owner-freebsd-questions@FreeBSD.ORG Sun Apr 2 20:34:37 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6524B16A400 for ; Sun, 2 Apr 2006 20:34:37 +0000 (UTC) (envelope-from peter@bgnett.no) Received: from vs3.bgnett.no (vs3.bgnett.no [194.54.96.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1DA2243D5E for ; Sun, 2 Apr 2006 20:34:35 +0000 (GMT) (envelope-from peter@bgnett.no) Received: from amidala.datadok.no (skapet.datadok.no [194.54.107.19]) by vs3.bgnett.no (8.12.9p2/8.12.9) with ESMTP id k32KYG0E051037 for ; Sun, 2 Apr 2006 22:34:18 +0200 (CEST) (envelope-from peter@bgnett.no) To: freebsd-questions@freebsd.org References: <442D31C6.5050700@wmptl.com> From: peter@bgnett.no (Peter N. M. Hansteen) Date: Sun, 02 Apr 2006 22:34:11 +0200 In-Reply-To: <442D31C6.5050700@wmptl.com> (Nathan Vidican's message of "Fri, 31 Mar 2006 08:42:30 -0500") Message-ID: <86acb3u37g.fsf@amidala.datadok.no> User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.19 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-bgnett.no-virusscanner: Found to be clean X-Envelope-To: freebsd-questions@freebsd.org Subject: Re: repeated ssh login attempts/failure/break-in attempts from kiddy script 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: Sun, 02 Apr 2006 20:34:37 -0000 Nathan Vidican writes: > ie: after 4 failed attempts from IP _BLANK_ in less than _BLANK_ minutes, deny > all attempts and drop connection from said IP... possible? using pf, this is astoundingly easy, see eg http://www.bgnett.no/~peter/pf/en/bruteforce.html If you go down this route, you might want to use expiretable (/usr/ports/security/expiretable) to trim the contents of the table after a while (I tend to use 24 hours expiry). -- Peter N. M. Hansteen, member of the first RFC 1149 implementation team http://www.blug.linux.no/rfc1149/ http://www.datadok.no/ http://www.nuug.no/ "First, we kill all the spammers" The Usenet Bard, "Twice-forwarded tales" 20:11:56 delilah spamd[26905]: 146.151.48.74: disconnected after 36099 seconds.