From owner-freebsd-net@FreeBSD.ORG Mon Sep 8 23:50:54 2003 Return-Path: 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 9E24916A4BF for ; Mon, 8 Sep 2003 23:50:54 -0700 (PDT) Received: from mail.econolodgetulsa.com (mail.econolodgetulsa.com [198.78.66.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC1834400E for ; Mon, 8 Sep 2003 23:50:53 -0700 (PDT) (envelope-from user@mail.econolodgetulsa.com) Received: from mail (user@mail [198.78.66.163])h896otnW087053 for ; Mon, 8 Sep 2003 23:50:55 -0700 (PDT) (envelope-from user@mail.econolodgetulsa.com) Date: Mon, 8 Sep 2003 23:50:53 -0700 (PDT) From: Josh Brooks To: freebsd-net@freebsd.org Message-ID: <20030908234910.H77579-100000@mail.econolodgetulsa.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: how do I delete just one ipfw rule ? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2003 06:50:54 -0000 Hi, If I create two ipfw rules with the same ID: ipfw add 00022 deny ip from x to y ipfw add 00022 allow ip from z to b they will both be there, and both work ... but is it possible to remove just one of them wihout removing the other ? Right now I am doing a hack with a ";" ipfw del 00022 ; ipfw add 00022 allow ip from z to b which removes both, and re-adds the one I want, but if the list gets more complicated than a few, this is really bad. So is it possible to remove just one ipfw rule from a list of same-index rules ? thank!