From owner-freebsd-questions@FreeBSD.ORG Wed Nov 29 20:39:27 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A2E4D16A403 for ; Wed, 29 Nov 2006 20:39:27 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F53F43DF4 for ; Wed, 29 Nov 2006 20:37:16 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.6/8.13.8) id kATKbFOM066814; Wed, 29 Nov 2006 14:37:15 -0600 (CST) (envelope-from dan) Date: Wed, 29 Nov 2006 14:37:15 -0600 From: Dan Nelson To: "Dan Mahoney, System Admin" Message-ID: <20061129203714.GD69797@dan.emsphone.com> References: <20061129145422.I70323@prime.gushi.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061129145422.I70323@prime.gushi.org> X-OS: FreeBSD 6.2-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.13 (2006-08-11) Cc: questions@freebsd.org Subject: Re: IPFW: delete range of rules? 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: Wed, 29 Nov 2006 20:39:27 -0000 In the last episode (Nov 29), Dan Mahoney, System Admin said: > Hey all, the ipfw man page says rules can be deleted individually or > in groups, but I don't see (other than the sets) an easy way to craft > deletion of rules in a range (for example, 500-550). You could expand the rules before calling ipfw: ipfw delete $(jot - 500 550 1) or, if you use zsh: ipfw delete {500..550} It would also be possible to extend the ipfw 'delete' rule parser to handle ranges. -- Dan Nelson dnelson@allantgroup.com