In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
The reading guide proxy server is divided into the forward proxy server and the reverse proxy server. they both act as the intermediary between the client and the target server. the client sends the request to the proxy server, and then the proxy server transmits the request to the target server. finally, the proxy server transmits the response information to the client. They are very similar in structure. What is the difference? The forward agent is a matchmaker.
Forward proxy, which means a server between the client and the original server (origin server). In order to get content from the original server, the client sends a request to the agent and specifies the target (the original server), and then the agent transfers the request to the original server and returns the obtained content to the client.
When will a forward agent be used? Take Chestnut, for example, what if you are tired of domestic search sites and want to fan qiang on Google? One way is to buy a foreign proxy server, which can access Google. Therefore, we can ask the proxy server to help us access the Google page and return the Google page to us so that we can bypass the * *. This mediation server is a typical forward proxy server.
Therefore, the forward agent, that is, the client entrusts a server as its representative to initiate a request to the target server. A positive agent is like a matchmaker in ancient times. if a man sees a girl, he cannot propose marriage directly to the girl's family, but must find a matchmaker to handle it, saying that the matchmaker is marrying.
Because the proxy server initiates the request on behalf of the client, Server does not know who the real Client is (of course, if the proxy server advertises the Clien). Therefore, with forward proxies, clients can hide their addresses from Server, thus avoiding possible attacks.
The proxy server has another advantage: it can cache the contents of Server in advance, and some requests of Client can be returned directly by the proxy server, thus improving the access speed of the client.
In addition, if Client wants to access the target server through the forward proxy, you must set the proxy server to set the IP address of the proxy server and the port of the agent before you can access the proxy server.
The reverse agent is a double.
The reverse proxy server is also an intermediary server that acts as a bridge between Client and Server. But what's the difference between him and a forward agent? If the forward proxy server is like a matchmaker, then the reverse proxy server is like a stand-in for a beautiful girl who is not known to outsiders in purdah. However, from the point of view of the Client, Client does not know that he is dealing with a stand-in. He thinks he is visiting the target Server, because many websites publish access addresses that are actually the access addresses of proxy servers. Look at the following picture:
Why do you need a reverse proxy server as a bridge? Consider this situation: for security reasons, we do not want to expose Server directly, but to put it on the intranet. At this time, Client cannot be Server on the public network. Therefore, we can add an intermediate server to connect to the internal and external network, which can allow external network users to access, and can be used as a firewall to restrict external requests and improve the security of the internal server.
In addition to firewalls, a typical use of a reverse proxy server is to act as a load balancing server to distribute requests to the appropriate server according to the workload of the target server.
Summary
The differences between forward and reverse proxies are summarized as follows:
The forward proxy is the proxy to the client, which is set up by the client, the client knows the proxy server and the target server, but the target server does not know who the real client is, using the forward proxy can break through the access restrictions, improve the access speed, and hide the client IP from the server.
Reverse proxy is a proxy to the server, which is set up by the server, and the client does not know who the real server is. The use of reverse proxy can achieve load balancing, ensure server security, hide server IP from the client, and so on.
The original text is from: https://www.linuxprobe.com/zx-proxy-fx.html
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.