As I know that NAT tracks the Source IP & port number of the packet before change the IP header to external IP and send to the internet. When receive the response packet, NAT change the packet's header from external IP to private IP by using the value that tracked before.
For proxy server, in 1 second, proxy server retrieves a lot of packets from the clients, proxy server changes the IP header of packet from client's IP to proxy server's IP and send to the internet. When receive response packets, proxy server change IP header from proxy server's IP to client's IP and send back the client.
So, my question is the detail of process how proxy server work? And with the limit of ports(65535), how many connections between proxy server and proxy clients can be established at the same time?
Thanks you very much.