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

Posted on in Categories High performance computing, Linux, Linux Scalability, Networking, Troubleshooting, Tuning last updated September 23, 2017

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.