Linux Increase TCP Port Range with net.ipv4.ip_local_port_range Kernel Parameter

last updated in Categories High performance computing, Linux, Linux Scalability, Networking, Troubleshooting, Tuning

Linux Local Port Range
If your Linux server is opening lots of outgoing network connections, you need to increase local port range. By default range is small. For example a squid proxy server can come under fire if it runs out of ports. Other example includes heavy traffic network servers, like nginx load balancers, LXD vm and more.