From owner-freebsd-net@FreeBSD.ORG Mon Nov 12 18:49:26 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6B44262F for ; Mon, 12 Nov 2012 18:49:26 +0000 (UTC) (envelope-from cokeeffe@gmail.com) Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by mx1.freebsd.org (Postfix) with ESMTP id E4CC18FC0C for ; Mon, 12 Nov 2012 18:49:25 +0000 (UTC) Received: by mail-wi0-f170.google.com with SMTP id hm9so2535121wib.1 for ; Mon, 12 Nov 2012 10:49:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=/dvqoVHI/gGJ9HhG/m+Po6JxrkI0Z3PE8vKwMowwovk=; b=nbMlGowBWB7cdtA/ANFrAUHu5DUrWjQN9oOMpxynTrnroYwgjHdac+BLQc5TJHHYWw TdG0qQBZhMy5NafOXWKm5Ulwb/xFA1N+MO/P8V3NzHOLZmbu9vcn/4GiJl78shA2gmBB 8GxZDAjWJ3aNbudiiav7ZivqAfMozikzB4/xGQPovnzqNDPXqUDl7wir7gl+QdzcGo6G fLMi1tJYWR+a6rObDib1njqU9CGFjODNCdg/owMWbItmOKyPuXuFy+0pEbC61B5aZE71 01xIKnP4dz1nu4W5aDvPrCa3G2NDk1wuheMrLe+pmuAuOzV03Itb0injUGsgVsHtUBmu xkJg== Received: by 10.216.226.220 with SMTP id b70mr7758828weq.10.1352746159033; Mon, 12 Nov 2012 10:49:19 -0800 (PST) Received: from [10.10.10.18] ([109.78.27.254]) by mx.google.com with ESMTPS id gz3sm3442338wib.2.2012.11.12.10.49.18 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 12 Nov 2012 10:49:18 -0800 (PST) Subject: Re: Default ephemeral port range Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=us-ascii From: Colin O'Keeffe In-Reply-To: <87A2D317-77BA-4641-979D-0AE43247D99E@ebureau.com> Date: Mon, 12 Nov 2012 18:49:17 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: <95686CBD-5A11-48BD-A556-5133F537C82E@gmail.com> References: <87A2D317-77BA-4641-979D-0AE43247D99E@ebureau.com> To: Dustin Wenz X-Mailer: Apple Mail (2.1278) Cc: freebsd-net@freebsd.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Nov 2012 18:49:26 -0000 8.1 through 9.1RC will use net.inet.ip.portrange.hifirst (49152) to = .hilast (65535) for ephemeral ports as far as I'm aware. = net.inet.ip.portrange.first to .last are just a reference to available = port numbers as per RFC6056 Correct me if I'm wrong but netinet/in_pcb.c:490 indicates this is the = case. -Colin On 12 Nov 2012, at 17:57, Dustin Wenz wrote: > I'm trying to determine why the default ephemeral port range appears = to be 10000 through 65535 in at least 8.1 through 9.1RC. Documentation = regarding the lower bound on the range seems inconsistent. The FreeBSD = website (http://wiki.freebsd.org/SystemTuning) suggests that = net.inet.ip.portrange.first defaults to 49152, which I don't believe is = accurate. >=20 > The IANA recommends the range be 49152 through 65535 = (http://tools.ietf.org/html/rfc6056). Is there any particular reason why = net.inet.ip.portrange.first defaults to 10000? >=20 > - .Dustin >=20 > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"