From owner-freebsd-bugs Thu Apr 4 0: 5:43 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from south.nanolink.com (south.nanolink.com [217.75.134.10]) by hub.freebsd.org (Postfix) with SMTP id EB59C37B416 for ; Thu, 4 Apr 2002 00:05:35 -0800 (PST) Received: (qmail 10440 invoked from network); 4 Apr 2002 08:11:16 -0000 Received: from discworld.nanolink.com (HELO straylight.ringlet.net) (217.75.135.248) by south.nanolink.com with SMTP; 4 Apr 2002 08:11:16 -0000 Received: (qmail 4227 invoked by uid 1000); 4 Apr 2002 08:05:28 -0000 Date: Thu, 4 Apr 2002 11:05:28 +0300 From: Peter Pentchev To: David Malone Cc: freebsd-bugs@FreeBSD.org Subject: Re: kern/36683: Stop dynamic rules from displaying using ipfw list command Message-ID: <20020404110528.C336@straylight.oblivion.bg> Mail-Followup-To: David Malone , freebsd-bugs@FreeBSD.org References: <200204032110.g33LA2F91312@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="5QAgd0e35j3NYeGe" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200204032110.g33LA2F91312@freefall.freebsd.org>; from dwmalone@maths.tcd.ie on Wed, Apr 03, 2002 at 01:10:02PM -0800 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 --5QAgd0e35j3NYeGe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 03, 2002 at 01:10:02PM -0800, David Malone wrote: > 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 > >=20 > > Add a flag to only list the rules > =20 > By default ipfw now only shows the static rules. You > must use "-d" to see the dynamic rules. > =20 > > Add a flag to only list the dynamic rules table. > =20 > One option would be: > ipfw -d show | awk '{ if (n) print $0 } /Dynamic/ { n=3D1 }' Or (easier on the fingers, but might be wrong with much too many rules): ipfw -d show | fgrep -A 999999 Dynamic G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 Nostalgia ain't what it used to be. --5QAgd0e35j3NYeGe Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjysCUgACgkQ7Ri2jRYZRVNuyQCgkT23BWe2Cd59sOTicxubQYzm ytsAn0+ndiuMHSd0enpLvk+8/NV4tC5r =awIw -----END PGP SIGNATURE----- --5QAgd0e35j3NYeGe-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message