Advanced Topic 39 of 50 Computer Networks
Proxies
Intermediaries forwarding requests on behalf of clients or servers.
How it works
A proxy is an intermediary that handles requests on behalf of others. A forward proxy sits in front of clients, controlling, filtering or caching outbound traffic and hiding client identity, while a reverse proxy sits in front of servers, handling TLS, caching, compression, routing and protection for the backends. Transparent proxies intercept traffic without client configuration, and SOCKS and HTTP CONNECT tunnel arbitrary traffic.
Step-by-step walkthrough
- A forward proxy sits in front of clients and requests on their behalf.
- It can filter, cache and hide client addresses.
- A reverse proxy sits in front of servers.
- It handles TLS, caching and load balancing.
- Clients talk to it without knowing the real servers.
Where it is used
Corporate content filtering, caching of downloads, API gateways, web application firewalls, CDNs and service meshes use proxies such as Squid, NGINX, Envoy and HAProxy.
Common pitfall
Proxies add latency and a point of failure, and can see unencrypted traffic, which raises privacy concerns. TLS interception breaks end-to-end security assumptions. Misconfigured open proxies are abused by attackers. Preserve client IPs through headers such as X-Forwarded-For and validate them carefully, because clients can forge them.
Where it fits in the course
Proxies is topic 39 of 50 in Computer Networks, rated Advanced. It follows Load Balancers. The next topic is Firewalls.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the Computer Networks quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the Computer Networks quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is Proxies?
Where do people use Proxies?
What is the most common mistake with Proxies?
What should I learn before this topic?
How can I practice it?
Is Proxies hard to learn?
How long does it take to learn Proxies?
Which topics are related to Proxies?
What should I study after Proxies?
Related topics
- Load Balancers (Computer Networks)
- Firewalls (Computer Networks)
- CDN (Computer Networks)
- VPN (Computer Networks)