From owner-freebsd-bugs Wed Apr 3 13:10: 9 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 922BC37B41B for ; Wed, 3 Apr 2002 13:10:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g33LA2F91312; Wed, 3 Apr 2002 13:10:02 -0800 (PST) (envelope-from gnats) Date: Wed, 3 Apr 2002 13:10:02 -0800 (PST) Message-Id: <200204032110.g33LA2F91312@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: David Malone Subject: Re: kern/36683: Stop dynamic rules from displaying using ipfw list command Reply-To: David Malone Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR kern/36683; it has been noted by GNATS. From: David Malone To: Joe Barbish Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: kern/36683: Stop dynamic rules from displaying using ipfw list command Date: Wed, 3 Apr 2002 22:01:11 +0100 On Tue, Apr 02, 2002 at 06:45:31PM -0800, Joe Barbish wrote: > I would like to see 3 enhancements added to ipfw list command > > Add a flag to only list the rules By default ipfw now only shows the static rules. You must use "-d" to see the dynamic rules. > Add a flag to only list the dynamic rules table. One option would be: ipfw -d show | awk '{ if (n) print $0 } /Dynamic/ { n=1 }' > Add another option to only list dynamic rules associated with a firewall > rule number. I guess it might be an ipfw bug that "ipfw -d show 200" doesn't show the dynamic rules corrisponding to rule 200 as well as the static rules. I have a vague memory of a PR with patches for this. David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message