What are well-known, registered and ephemeral ports?
IntermediateConceptNetworking, SSH & Scheduling
Answer
Ports 0–1023 are well-known and need root or CAP_NET_BIND_SERVICE to bind. 1024–49151 are registered. Ephemeral ports are used for the client side of outgoing connections; Linux uses net.ipv4.ip_local_port_range (default 32768 60999).
sysctl net.ipv4.ip_local_port_range
More on Networking, SSH & Scheduling
Which `ip` commands replace ifconfig, route and arp?BeginnerWhat does `ss` show, and which flags do you use?BeginnerExplain the TCP connection states you see in ss.AdvancedWhat happens, step by step, when you run `curl https://example.com`?AdvancedWhich curl flags are most useful for debugging?BeginnerHow do you use `dig` for DNS troubleshooting?Beginner