– Forward agent
Set up a proxy server of your own
1. The user sends the request to its own proxy server
2. Its proxy server sends requests to the server
3. The server returns the data to its proxy server
4. The proxy server returns the data to the user
Forward proxy for purposes:
Effect: the forward proxy hides the user, the user’s request is received by the proxy server, the server does not know who the user is.
Use: If you are blocked from accessing a foreign site using your browser, you can set up a proxy server in a foreign country and access it normally (just to give an example).
– The reverse proxy
1. The user sends a request to the server (it is actually a reverse proxy server, but the user does not know)
2. The reverse proxy server sends requests to the real server
3. The real server returns the data to the reverse proxy server
4. The reverse proxy server returns the data to the user
Functions of reverse proxy: Functions: The server has a limit to handle too many requests from users. So a reverse proxy server is used to accept the request, and the load is balanced to distribute the request to multiple real servers. Not only can improve efficiency but also certain security. Purpose: If the proxy is not used, the user’s IP address and port number are directly exposed to the Internet (although address translation NAT), external hosts can still exploit host security vulnerabilities according to IP address and port number. Therefore, proxy servers are generally used to access the Internet on enterprise networks.
The simplest difference between a forward proxy and a reverse proxy is that a forward proxy hides users while a reverse proxy hides servers
This article is based on: blog.csdn.net/qq_40112630…