1. Forward proxy
The forward proxy is located between the original server and the client, and its role is to send requests in place of the client, for example, to protect the client, or to flip the wall (the condition is that the proxy server must not be limited by GFW, currently, most VPs instances outside China are purchased. The process is as follows:
1. The client initiates a request to the proxy server to notify the proxy server of the website blocked by gFW.
2. the proxy server accesses the blocked website and obtains the content of the blocked website.
3. the proxy server returns the obtained content to the client to view the websites blocked by gFW.
At this time, the original server does not know what the client actually accesses it. It protects and shields the client.
When the client initiates a request, GFW considers that the client is requesting a valid website and does not know what the access is, so it cannot block the firewall.
2. Reverse Proxy
The reverse proxy is mainly used for load balancing to share the pressure on the master server. The process is as follows:
1. The client accesses www.origin.com
2. Because the reverse proxy is configured on the server where www.origin.com is located, the request will be sent to www.revproxy.com as a condition (for example, the proxy containing/Proxy/in the URL will be sent out, then)
3. the proxy server processes the request and sends the response back to the client.
It is worth noting that when you access www.origin.com, the request header in the HTTP request is still www.origin.com, but it is actually handed over to www.revproxy.com