Is there a way to double the number of ephemeral ports and work with a 16-bit limit? I tried to create virtual Ethernet interfaces via eth0, and I hope this raises the limit. Although the application uses the new virtual IP addresses in outgoing traffic, it seems that it still faces the same ephemeral port limit. I believe that virtual ports have a 1 to 1 mapping on the physical interface.
ifconfig eth0: 1 10.10.10.210 netmask 255.255.255.192 ifconfig eht0: 2 10.10.10.211 netmask 255.255.255.192
Can someone please tell me how I can double the total number of ephemeral ports in Linux without adding an additional network adapter?
(FYI, I tried to increase the open ulimit / max file by changing the port range, turning on tcp recycle / timestamps, decreasing the tcp timeout ... I guess we just need more than 65k ports for this proxy machine.)
source share