From owner-freebsd-questions@FreeBSD.ORG Wed Sep 21 08:06:00 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D8EA106564A for ; Wed, 21 Sep 2011 08:06:00 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3fd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 99FD08FC08 for ; Wed, 21 Sep 2011 08:05:59 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id p8L85sfw065367 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Wed, 21 Sep 2011 09:05:55 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk p8L85sfw065367 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1316592355; bh=Ogr2pBRHABc9TuoFoyXHgK+ovX9A97jntNEzE4AZS34=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4E799ADB.2090301@infracaninophile.co.uk>|Date:=20W ed,=2021=20Sep=202011=2009:05:47=20+0100|From:=20Matthew=20Seaman= 20|User-Agent:=20Mozilla/5.0=20(M acintosh=3B=20Intel=20Mac=20OS=20X=2010.6=3B=20rv:6.0.2)=20Gecko/2 0110902=20Thunderbird/6.0.2|MIME-Version:=201.0|To:=20Modulok=20|CC:=20FreeBSD=20Questions=20|Subject:=20Re:=20How=20to=20find=20out=20which=20versi on=20of=20PF=20a=20given=20box=20is=20using...|References:=20= 20<4E799390.2040303@infracaninophile.co.uk>|In-Reply-To:=20<4E7993 90.2040303@infracaninophile.co.uk>|X-Enigmail-Version:=201.3.1|Ope nPGP:=20id=3D60AE908C|Content-Type:=20multipart/signed=3B=20micalg =3Dpgp-sha1=3B=0D=0A=20protocol=3D"application/pgp-signature"=3B=0 D=0A=20boundary=3D"------------enigA3279DBFB7E7B24923F4BCD9"; b=HcmMn+2yWgHZIi+rh5AyX/oUhjQ39ssjPUKTIXtRz+5nSeVgpxTt7OgGSYkIoIJkS Aoohlknx/qBsrmtuTTheQggCU3Zflw+ZtUvsra/fZ6NgYkMOshRoVrdXUj9lGDD3J0 c0TTRy6eEygcipfSoHyKGkcIZYVp2GjgnCbPgLn8= Message-ID: <4E799ADB.2090301@infracaninophile.co.uk> Date: Wed, 21 Sep 2011 09:05:47 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 To: Modulok References: <4E799390.2040303@infracaninophile.co.uk> In-Reply-To: <4E799390.2040303@infracaninophile.co.uk> X-Enigmail-Version: 1.3.1 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigA3279DBFB7E7B24923F4BCD9" X-Virus-Scanned: clamav-milter 0.97.2 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Cc: FreeBSD Questions Subject: Re: How to find out which version of PF a given box is using... 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, 21 Sep 2011 08:06:00 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigA3279DBFB7E7B24923F4BCD9 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 21/09/2011 08:34, Matthew Seaman wrote: > On 21/09/2011 07:34, Modulok wrote: >> Is there an easy way to find out what version of PF a given FreeBSD ve= rsion is >> using? Currently I'm doing this: >> >> grep -iE '\bpf\b' /usr/src/UPDATING >> >> Just wondering if I'm missing something. I didn't see any '--version' >> flag in pfctl. >=20 > Uh -- bpf is a different thing to PF. bpf is Berkeley Packet Filter > which isn't anything to do with firewalling, but used eg. by tcpdump to= > select certain packets from the wire. As far as I know, bpf doesn't > have a separate version number; it just uses the OS version number. > It's been part of BSD Unices since dinosaurs roamed the earth. One of these days I'll learn not to send e-mail before coffee. Please ignore the above -- red herring. > PF is the firewalling code imported from OpenBSD. Again, it's part of > the base system in OpenBSD so it just uses the OpenBSD version number. > Every so often there will be a new import from OpenBSD -- I believe mos= t > released versions of FreeBSD are using PF from OpenBSD 4.2, but there i= s > an update to OpenBSD 4.mumble in the works for the upcoming FreeBSD 9.0= > release. You'ld have to check the commit history in CVS or SVN to be s= ure. In fact, the last import listed as such in the CVS history was from OpenBSD 4.1 but that was around 2007 when FreeBSD was on version 6.x -- long time ago. There's been plenty of updates since (which, IIRC, made the FreeBSD code pretty much equivalent to what is in OpenBSD 4.2), but no wholesale reimport until about 2 months ago, when OpenBSD 4.5 code was imported into head. http://svnweb.freebsd.org/base?view=3Drevision&revision=3D223637 AFAIK, that is not a candidate for MFC to stable/8 or earlier, as it modifies KBIs. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enigA3279DBFB7E7B24923F4BCD9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk55muIACgkQ8Mjk52CukIwBQgCeI033ZPnZhPuzCn858sqZOAol 85cAn3a3KWmKILG7GrUrtC1JHHZKfxM2 =vWYm -----END PGP SIGNATURE----- --------------enigA3279DBFB7E7B24923F4BCD9--