Date: Thu, 4 Apr 2002 11:05:28 +0300 From: Peter Pentchev <roam@ringlet.net> To: David Malone <dwmalone@maths.tcd.ie> 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> In-Reply-To: <200204032110.g33LA2F91312@freefall.freebsd.org>; from dwmalone@maths.tcd.ie on Wed, Apr 03, 2002 at 01:10:02PM -0800 References: <200204032110.g33LA2F91312@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020404110528.C336>
