ip_local_port_range与ip_local_reserved_ports

ip_local_port_range

The /proc/sys/net/ipv4/ip_local_port_range defines the local port range that is used by TCP and UDP traffic to choose the local port.
它指定了本地发起连接请求时可以获取的随机端口

ip_local_reserved_ports

它指定了本地预留的服务端监听端口,默认无。

参考
1,https://www.thegeekdiary.com/how-to-reserve-a-port-range-for-a-third-party-application-in-centos-rhel/
2, https://github.com/kubernetes/kops/pull/6343/files
3,https://ma.ttias.be/linux-increase-ip_local_port_range-tcp-port-range/

你可能感兴趣的:(Linux)