From owner-freebsd-net@FreeBSD.ORG Fri Jun 23 09:09:12 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 15CA916A49A for ; Fri, 23 Jun 2006 09:09:12 +0000 (UTC) (envelope-from peter@bgnett.no) Received: from skapet.datadok.no (skapet.datadok.no [194.54.107.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 79B5F43D48 for ; Fri, 23 Jun 2006 09:09:11 +0000 (GMT) (envelope-from peter@bgnett.no) Received: from amidala.datadok.no ([194.54.103.98] helo=amidala.datadok.no.bsdly.net ident=peter) by skapet.datadok.no with esmtp (Exim 4.60) (envelope-from ) id 1Fthf3-0003XV-TT for freebsd-net@freebsd.org; Fri, 23 Jun 2006 11:09:09 +0200 To: freebsd-net@freebsd.org References: <7.0.1.0.2.20060620151013.042be3f8@lariat.org> From: peter@bgnett.no (Peter N. M. Hansteen) Date: Fri, 23 Jun 2006 11:09:08 +0200 In-Reply-To: <7.0.1.0.2.20060620151013.042be3f8@lariat.org> (Brett Glass's message of "Tue, 20 Jun 2006 15:22:46 -0600") Message-ID: <87ejxg2q8b.fsf@amidala.datadok.no> User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.17 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: Best way to block a long list of IPs? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 09:09:12 -0000 Brett Glass writes: >>there are efficient tables in ipfw as well, which Ruslan implemented >>some time ago -- yet another reason we should be grateful to him > > How would I build a table of arbitrary IP addresses and be able > to update it atomically (i.e. add and delete individual addresses > and not lose all filtering when there was a modification)? This sounds very much like what PF's tables was made for. You can add or remove addresses from the command line (see eg http://www.bgnett.no/~peter/pf/en/tables.html) and there are ways to add and remove individual addresses automatically as well (see eg http://www.bgnett.no/~peter/pf/en/bruteforce.html). -- 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