public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Linux ephemeral port range defaults to "broken".
@ 2025-08-07  1:38 Grant Edwards
  2025-08-07  3:49 ` Alexandru N. Barloiu
                   ` (4 more replies)
  0 siblings, 5 replies; 20+ messages in thread
From: Grant Edwards @ 2025-08-07  1:38 UTC (permalink / raw
  To: gentoo-user

According to IANA (and before that ICANN and USC/ISI) port numbers
from 1024 to 49151 are registerd ports, and are to be used for
specific protocols. For example ports 2222 and 44818 are registered
for used by the Ethernet/IP Rockwell PLC protocol.

Dynamic or ephemeral ports are supposed to be in the range
49152-65535.

Linux defaults to 32768-60999 for ephemeral ports. That clearly
overlaps with a _lot_ of assigned/registered port numbers in the range
32786-49151.

That seems just plain wrong. What am I missing?

It's simple enough to change the ephemeral range so it doesn't overlap
with registered port numbers, and it looks like I'm going to need to
do that to avoid possible collisions in a project I'm working on. The
question is why do I have to do that? The standards are pretty clear.
Why does Linux default to being broken like that?

--
Grant





^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2025-08-10 23:13 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-07  1:38 [gentoo-user] Linux ephemeral port range defaults to "broken" Grant Edwards
2025-08-07  3:49 ` Alexandru N. Barloiu
2025-08-07  6:44 ` Zhixu Liu
2025-08-07 13:04 ` Javier Martinez
2025-08-07 13:12 ` Javier Martinez
2025-08-07 14:01   ` [gentoo-user] " Grant Edwards
2025-08-07 14:25     ` Javier Martinez
2025-08-07 14:37     ` Javier Martinez
2025-08-10  1:54 ` [gentoo-user] " Grant Taylor
2025-08-10 21:13   ` [gentoo-user] " Grant Edwards
2025-08-10 21:25     ` Javier Martinez
2025-08-10 21:35       ` Grant Edwards
2025-08-10 21:28     ` Grant Edwards
2025-08-10 21:30     ` Javier Martinez
2025-08-10 21:39       ` Grant Edwards
2025-08-10 21:43         ` Javier Martinez
2025-08-10 22:55           ` Grant Edwards
2025-08-10 23:12             ` Javier Martinez
2025-08-10 21:59         ` Javier Martinez
2025-08-10 23:00           ` Grant Edwards

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox