From owner-freebsd-questions@FreeBSD.ORG Wed Sep 21 07:34:53 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 041DA106564A for ; Wed, 21 Sep 2011 07:34:53 +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 627648FC15 for ; Wed, 21 Sep 2011 07:34:52 +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 p8L7Ymup064962 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Wed, 21 Sep 2011 08:34:48 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk p8L7Ymup064962 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1316590488; bh=qBO+QGITttqL84IuDIzG1Yg24pXYkDPb1MXjteUn9C4=; 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<4E799390.2040303@infracaninophile.co.uk>|Date:=20W ed,=2021=20Sep=202011=2008:34:40=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| In-Reply-To:=20|X-Enigmail-Version:=201.3.1|OpenPGP:=20id=3D60 AE908C|Content-Type:=20multipart/signed=3B=20micalg=3Dpgp-sha1=3B= 0D=0A=20protocol=3D"application/pgp-signature"=3B=0D=0A=20boundary =3D"------------enigE947B8B1511428CB997C19D0"; b=pHU6OktNApn0eQMUhTX7VyBlinod/TEWkmt8mvP+dEn2fJmX+WIlAHJQrS+Pf7HMV n3R8VM9jGi42fMzF7u6GlnzESLHskn3ZeGCPkHrBmucb0jx4bghEsdngrZCA1gxVvg E7u1/78sEZeUE8uaOvA/LamCUSkguqMddExLOUfo= Message-ID: <4E799390.2040303@infracaninophile.co.uk> Date: Wed, 21 Sep 2011 08:34:40 +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: In-Reply-To: X-Enigmail-Version: 1.3.1 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigE947B8B1511428CB997C19D0" X-Virus-Scanned: clamav-milter 0.97.2 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,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 07:34:53 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigE947B8B1511428CB997C19D0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 21/09/2011 07:34, Modulok wrote: > Is there an easy way to find out what version of PF a given FreeBSD ver= sion is > using? Currently I'm doing this: >=20 > grep -iE '\bpf\b' /usr/src/UPDATING >=20 > Just wondering if I'm missing something. I didn't see any '--version' > flag in pfctl. 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. 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 most released versions of FreeBSD are using PF from OpenBSD 4.2, but there is 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 sur= e. 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 --------------enigE947B8B1511428CB997C19D0 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/ iEYEARECAAYFAk55k5cACgkQ8Mjk52CukIw6MwCfQYe6Jur1fUS4+j3DWX5Mg4MA 8UUAn0mQ7gZ6GAyFr/IUINc1a/rXvdtG =UFY3 -----END PGP SIGNATURE----- --------------enigE947B8B1511428CB997C19D0--