Reverse Proxy Server

Tram Ho

After a few articles about Nginx, Proxy server, we still have a lot of work to do to first step learn about the server further. Today I am writing an article to supplement information about Reverse proxy server. Let’s find out about it together.

What is a reverse proxy server?

A reverse proxy is a type of proxy server that mediates between a server and the clients sending requests. It controls the requests of clients, if they are valid, to pass through to the appropriate servers. In contrast to a forward proxy, which is an intermediary that allows clients contacting it to communicate with any virtual server, a reverse proxy is an intermediary for the servers contacting it to be contacted by any client. Come on. The biggest advantage of using a reverse proxy is centralized management. It helps to control all requests sent by clieny to the protected servers.

Source: https://en.wikipedia.org/wiki/Reverse_proxy

A proxy server is an intermediary or intermediary server that forwards content requests from multiple clients to different servers on the Internet. The reverse proxy server is a proxy server that is often behind the firewall on a private network and directs client requests to the appropriate server. Reverse proxies are often deployed to help increase security, performance, and reliability.

What is a reverse proxy server used for?

The reverse proxy is between the client and the network service, such as a website. Some of the features it brings will be listed below.

Security : By blocking requests from being sent to your backend server, the reverse proxy server protects our identities and acts as a safeguard against security attacks. With a reverse proxy server a website or service will never reveal the IP addresses of the original servers. This makes these attacks difficult to execute.

Load Balancing : For a popular website millions of users visit every day and it may not be able to handle all incoming traffic with a single server. So the website should be distributed among a group of different servers and they all handle requests for the same website. In this case, the reverse proxy can provide a load balancing solution that evenly distributes incoming traffic between different servers to prevent several servers from being overwhelmed by multiple requests at the same time. In the case of one server failure altogether, the other servers can handle the traffic as well. The reverse proxy server sits in front of your backend servers and distributes client requests across a group of servers in a way that maximizes speed and capacity usage while ensuring no servers are overloaded.

Speed ​​up the website : The reverse proxy server can compress incoming and outgoing data, as well as cache frequently requested content, both of which will speed up the flow of traffic between the client and the server. It can also do some additional tasks like SSL encryption to reduce the load on your web servers, so performance is increased.

Reverse proxy and forward proxy

Unlike a reverse proxy, a forward proxy is used to regulate client traffic outside the Internet. It is also used to conceal the IP addresses of clients and to block risky or unauthorized access by the organization. Forward proxies are often used for large agencies and organizations to limit client access.

  • Prevent access to certain websites
  • Monitoring activities
  • Block unauthorized access to the root server
  • Increase user experience by caching frequently requested page content.

Risk with reverse proxy

By preventing anyone from directly accessing the network, the reverse proxy server makes hackers less likely to attack customer data or compromise IT infrastructure. It has less risk of attack because:

  • The server is better protected from bad actors.
  • Once your website is more secure, the hacker will probably choose to bypass the attack.

It is not entirely free of security risks, however. That cannot be said with certainty. An HTTP / S reverse proxy can read and modify all the traffic and IP of the users passing through it. In order to filter / cache / compress or modify the traffic it must be able to decrypt and re-encrypt the HTTPS traffic and thus have the corresponding private key of the TLS certificate. So it can obviously log all the passwords that go through it or put malware on the websites in case it gets compromised or run by a malicious party. If a reverse proxy is using multiple domains, its shutdown could damage the supported domains.

Some organizations can configure their own reverse proxy for their organization, but this requires intensive hardware and software engineering resources and a large investment in IT infrastructure. This reduces the risk of third-party managed instances and attacks compromising the organization’s systems. If you do not have the ability to be self-employed, you can completely use third-party services. Cloudflare CDN, for example, offers all the performance and security features and many more.

Conclude

Using a reverse proxy gives us a lot of benefits not only in terms of security but also in terms of performance and speed. My article here is to end and hope to receive the contribution of everyone if there is any problem.

Refer

https://en.wikipedia.org/wiki/Reverse_proxy

https://www.cloudflare.com/learning/cdn/glossary/reverse-proxy/

Share the news now

Source : Viblo