From owner-freebsd-net@FreeBSD.ORG Mon Dec 22 21:26:49 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A88F716A4CE for ; Mon, 22 Dec 2003 21:26:49 -0800 (PST) Received: from lariat.org (lariat.org [63.229.157.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 295AF43D39 for ; Mon, 22 Dec 2003 21:26:48 -0800 (PST) (envelope-from brett@lariat.org) Received: from runaround.lariat.org (IDENT:ppp1000.lariat.org@lariat.org [63.229.157.2]) by lariat.org (8.9.3/8.9.3) with ESMTP id WAA13493; Mon, 22 Dec 2003 22:26:39 -0700 (MST) X-message-flag: Warning! Use of Microsoft Outlook renders your system susceptible to Internet worms. Message-Id: <6.0.0.22.2.20031222222449.03cd58c8@localhost> X-Sender: brett@localhost (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Mon, 22 Dec 2003 22:25:43 -0700 To: Barney Wolff , Mike Silbersack From: Brett Glass In-Reply-To: <20031223051259.GA36331@pit.databus.com> References: <200312120312.UAA10720@lariat.org> <20031212074519.GA23452@pit.databus.com> <6.0.0.22.2.20031212011133.047ae798@localhost> <20031212083522.GA24267@pit.databus.com> <6.0.0.22.2.20031212103142.04611738@localhost> <20031212181944.GA33245@pit.databus.com> <6.0.0.22.2.20031212161250.045e9408@localhost> <20031213001913.GA40544@pit.databus.com> <6.0.0.22.2.20031212175801.04b066d8@localhost> <20031222182913.M2799@odysseus.silby.com> <20031223051259.GA36331@pit.databus.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" cc: net@freebsd.org Subject: Re: Controlling ports used by natd X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Dec 2003 05:26:49 -0000 At 10:12 PM 12/22/2003, Barney Wolff wrote: >It is odd that libalias picks a port number, and then, if the "use sockets" >option is set, tries to open a socket on that port. Perhaps if the above >option is set, it should bind port 0 and use the port the kernel assigns. > >If folks think that's a good idea, I could produce a patch to alias_db.c >for evaluation. Good idea. One might also want to set a separate pair of sysctl variables to control the range of ports selected by libalias, just in case the administrator wanted to reserve distinct ports for NAT. --Brett