From owner-freebsd-security@FreeBSD.ORG Sat Sep 18 20:07:37 2004 Return-Path: Delivered-To: freebsd-security@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0225716A4CE for ; Sat, 18 Sep 2004 20:07:37 +0000 (GMT) Received: from relay.pair.com (relay.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 7823143D1F for ; Sat, 18 Sep 2004 20:07:36 +0000 (GMT) (envelope-from silby@silby.com) Received: (qmail 91840 invoked from network); 18 Sep 2004 20:07:35 -0000 Received: from niwun.pair.com (HELO localhost) (209.68.2.70) by relay.pair.com with SMTP; 18 Sep 2004 20:07:35 -0000 X-pair-Authenticated: 209.68.2.70 Date: Sat, 18 Sep 2004 15:07:34 -0500 (CDT) From: Mike Silbersack To: "Danil V.Gerun" In-Reply-To: <621146771453.20040918232248@625.ru> Message-ID: <20040918150205.A8909@odysseus.silby.com> References: <621146771453.20040918232248@625.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: freebsd-security@freebsd.org Subject: Re: Random source ports in FreeBSD? X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Security issues [members-only posting] List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Sep 2004 20:07:37 -0000 On Sat, 18 Sep 2004, Danil V.Gerun wrote: > So, as far as I got to know, randomizing source ports in FreeBSD is > impossible now? (to be exact - is not implemented?) > > It's very interesting to me - WHY is it so? > I mean - may be there are good reasons for not making all this?.. Source port randomization was implemented before 4.10 was released. See in_pcb.c revisions 1.143 - 1.146, 1.59.2.27, or 1.59.2.27.2.1, depending on the branch you're interested in: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/netinet/in_pcb.c > I don't have opportunity to test the FreeBSD 5 patch, but I tried to > analyze the patching results attentively (what I worry about - is > using the arc4random() function in FreeBSD 5...). What are your concerns with the way port randomization was implemented in FreeBSD? Mike "Silby" Silbersack