I am trying to build a proxy server that will receive all client packets and forward to the content server. As I read the proxy type is "forward proxy". While doing the system architecture I couldn't answer this question.
How does the proxy server know the destination ip?
Suppose we have a client with ip 11.1.1.1 and proxy server with 12.2.2.2 and google with ip 13.3.3.3.
When the client send the packet to the proxy. The packet will have 11.1.1.1:xxxx as source ip and port, and 12.2.2.2:xxxx as destination ip and port. How does the proxy server forward the packet to 13.3.3.3 ?