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網絡