Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Comments on Why is 32768-60999 the default for local/ephemeral ports?

Post

Why is 32768-60999 the default for local/ephemeral ports?

+3
−0

The local port range on my Arch Linux installation is 32768-60999 according to

cat /proc/sys/net/ipv4/ip_local_port_range

Wikipedia states that this range is "used by many Linux kernels" and the kernel documentation says it's the default range.

I'm especially interested in the reason for excluding ports 61000 to 65535 from use as local/ephemeral ports by default.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

Expanded between 2.2 and 2.4 (1 comment)
Expanded between 2.2 and 2.4
Michael‭ wrote 7 months ago · edited 7 months ago

One of the sources from the Wikipedia footnotes says that it had been 1024 through 4999 in kernel 2.2 and changed in kernel 2.4 to "32768 through 61000 if adequate kernel memory is available."

I don't know if this suggests a technical reason to limit the total number, or if they changed the range to get 7× the port numbers and decided that was enough not to change it again when RFC 6335 showed up in 2011.