IP_BIND_ADDRESS_NO_PORT (since Linux 4.2)
Inform the kernel to not reserve an ephemeral port when
usingbind(2) with a port number of 0. The port will later be auto‐ matically
chosen at connect(2) time, in a way that allows
sharing a source port as long as the 4-tuple is unique.
1.7版的haproxy开启了IP_BIND_ADDRESS_NO_PORT支持 ,便可以复用source port,这样能够从更基础的内核层面解决这个问题,惟一不足是须要将内核升级到4.2以上版本才能够。
html
特殊网络设备服务器
/dev/net/tun网络