Date: Tue, 13 Nov 2012 15:48:13 -0600 From: Dustin Wenz <dustinwenz@ebureau.com> To: Colin O'Keeffe <cokeeffe@gmail.com> Cc: freebsd-net@freebsd.org Subject: Re: Default ephemeral port range Message-ID: <2EEDF65D-C235-48A7-9464-82475C26E9DD@ebureau.com> In-Reply-To: <95686CBD-5A11-48BD-A556-5133F537C82E@gmail.com> References: <87A2D317-77BA-4641-979D-0AE43247D99E@ebureau.com> <95686CBD-5A11-48BD-A556-5133F537C82E@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Thanks for the information; It would seem that when I invoke the connect() system call, it picks a = client port in the portrange.first-last range and not necessarily in = portrange.hifirst-hilast. Is this expected behavior, or a bug in = connect()? - .Dustin On Nov 12, 2012, at 12:49 PM, Colin O'Keeffe <cokeeffe@gmail.com> wrote: > 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 >=20 > Correct me if I'm wrong but netinet/in_pcb.c:490 indicates this is the = case. >=20 > -Colin >=20 > On 12 Nov 2012, at 17:57, Dustin Wenz wrote: >=20 >> 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" >=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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2EEDF65D-C235-48A7-9464-82475C26E9DD>