From owner-freebsd-security@FreeBSD.ORG Fri Jul 11 16:28:37 2008 Return-Path: Delivered-To: freebsd-security@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DE5F3106564A; Fri, 11 Jul 2008 16:28:37 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 61CD88FC1B; Fri, 11 Jul 2008 16:28:37 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.2/8.14.2) with ESMTP id m6BGSJqa030626; Fri, 11 Jul 2008 17:28:19 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.6.0 smtp.infracaninophile.co.uk m6BGSJqa030626 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1215793700; bh=aHUreu7XAc7qSx GNchPP+fi4IH4ApAdjAWpv0Lwv/i4=; 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=Mes sage-ID:=20<48778A1B.4060504@infracaninophile.co.uk>|Date:=20Fri,=2 011=20Jul=202008=2017:28:11=20+0100|From:=20Matthew=20Seaman=20|Organization:=20Infracaninophile|User -Agent:=20Thunderbird=202.0.0.14=20(X11/20080607)|MIME-Version:=201 .0|To:=20Alan=20Clegg=20|CC:=20Jeremy=20Chadwick=20 ,=20Doug=20Barton=20,=20=0D= 0A=20stef@memberwebs.com,=20=0D=0A=20"freebsd-security@freebsd.org" =20,=0D=0A=20secteam@freebsd.org,=20B rett=20Glass=20,=20=0D=0A=20Remko=20Lodder=20,=0D=0A=20Andrew=20Storms=20|Su bject:=20Re:=20[Fwd:=20cvs=20commit:=20ports/dns/bind9=20Makefile=2 0distinfo=09ports/dns/bind94=0D=0A=20Makefile=20distinfo=20ports/dn s/bind95=20Makefile=09distinfo]|References:=20=09<20080709204114.471A2F1835D@mx.npubs.com>=09<487 6A3FE.1070407@FreeBSD.org>=09<200807111454.IAA18639@lariat.net>=09< 20080711151228.GA52385@eos.sc1.parodius.com>=20<487782C5.7050703@cl egg.com>|In-Reply-To:=20<487782C5.7050703@clegg.com>|X-Enigmail-Ver sion:=200.95.6|Content-Type:=20multipart/signed=3B=20micalg=3Dpgp-s ha256=3B=0D=0A=20protocol=3D"application/pgp-signature"=3B=0D=0A=20 boundary=3D"------------enig2148D20582FA7402A999D175"; b=bOR6126yDD H163xGDMT0qR57mJStBls5GVxIj6BiEm+1BevXw27MAA3hn2snwpaAsh1PY8dUH+1g7 8coRoCtHZ2kr9LIRWaKJqqJpDF2+kXmjMPa7SXUi16j8i3nh5FZm2Wy481tkn2Y9k8t 7E3AXKphvvVWTCRUeYttx+CAcX4= Message-ID: <48778A1B.4060504@infracaninophile.co.uk> Date: Fri, 11 Jul 2008 17:28:11 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.14 (X11/20080607) MIME-Version: 1.0 To: Alan Clegg References: <20080709204114.471A2F1835D@mx.npubs.com> <4876A3FE.1070407@FreeBSD.org> <200807111454.IAA18639@lariat.net> <20080711151228.GA52385@eos.sc1.parodius.com> <487782C5.7050703@clegg.com> In-Reply-To: <487782C5.7050703@clegg.com> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig2148D20582FA7402A999D175" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (smtp.infracaninophile.co.uk [IPv6:::1]); Fri, 11 Jul 2008 17:28:20 +0100 (BST) X-Virus-Scanned: ClamAV 0.93.1/7692/Fri Jul 11 16:35:49 2008 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: Doug Barton , stef@memberwebs.com, Jeremy Chadwick , "freebsd-security@freebsd.org" , secteam@freebsd.org, Brett Glass , Remko Lodder , Andrew Storms Subject: Re: [Fwd: cvs commit: ports/dns/bind9 Makefile distinfo ports/dns/bind94 Makefile distinfo ports/dns/bind95 Makefile distinfo] X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Security issues \[members-only posting\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jul 2008 16:28:38 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig2148D20582FA7402A999D175 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Alan Clegg wrote: > Jeremy Chadwick wrote: >> On Fri, Jul 11, 2008 at 08:54:48AM -0600, Brett Glass wrote: >>> Is there a way to restrict the ports which BIND selects -- perhaps >>> at the expense of a small amount of entropy -- such that it doesn't >>> try to use UDP ports which are administratively blocked (e.g. ports >>> used by worms, or insecure Microsoft network utilities)? We don't=20 >>> dare turn these port blocks off, or naive users will fall prey to=20 >>> security holes in Microsoft products. But if BIND doesn't know to >>> work around them, lookups will occasionally (and infuriatingly!) >>> fail. >> query-source has an argument called "port" which will do what you want= =2E >> That option *only* affects UDP queries, however; TCP queries are alway= s >> random. =20 > While query-source allows you to lock down to a single port, you DO NOT= > WANT TO DO THIS -- if you do, you will be vulnerable to the very thing > that the patch made you immune (well, safer) from. >=20 > What Brett (and others) need to do is risk the waters with the new beta= > code (9.4.3b2 and 9.5.1b1) which includes additional "fine-grained" > control for the UDP ports to be used. >=20 > Please, PLEASE, do not introduce "query-source port XX" into your > configurations. Probably what Brett is looking for are the avoid-v4-udp-ports and avoid-= v6-udp-ports options -- these just contain lists of UDP ports to avoid as the source of any DNS traffic. Details are available here (for bind95) http://www.isc.org/sw/bind/arm95/Bv9ARM.ch06.html#options but it's the same for all 9.x versions of BIND. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig2148D20582FA7402A999D175 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkh3iiMACgkQ8Mjk52CukIxpAQCgjm4KMcYVNHHQjMX5w7RuH784 sRsAn3V5fHGqgaIQVzkb054LcPp9RgTQ =hvxj -----END PGP SIGNATURE----- --------------enig2148D20582FA7402A999D175--