Skip to main content

Proxy Servers

Postal Middlemen of Networking

In the Indian Postal System, sometimes people don’t want to reveal their exact house number when sending a letter. Instead, they hand it over to a middleman post office counter, which forwards the letter on their behalf. The recipient sees the middleman’s address, not the sender’s.

In networking, proxy servers play this role. They act as intermediaries between clients and servers, forwarding requests while hiding the client’s identity.


Core Concepts

  • Definition
    • A proxy server is an intermediary that forwards client requests to servers.
    • Like a postal middleman forwarding letters without exposing the sender’s real address.
  • Types of Proxies
    • Forward Proxy → Client → Proxy → Server.
      • Like handing your letter to a middleman who sends it to the destination.
    • Reverse Proxy → Client → Proxy → Multiple Servers.
      • Like a central postal hub receiving letters and distributing them to the right office.
    • Transparent Proxy → Works silently without altering requests.
      • Like a postal clerk who forwards letters without changing envelopes.
  • Functions of Proxy Servers
    • Anonymity → Hides client IP (like masking sender’s house number).
    • Caching → Stores frequently accessed data (like keeping copies of popular postal forms).
    • Load Balancing → Distributes requests across servers (like postal hubs spreading letters across counters).
    • Access Control → Blocks or allows requests (like postal rules restricting certain parcels).

Hands‑On Exercise

Reverse Proxy with Nginx

server {
    listen 80;
    location / {
        proxy_pass http://backend_servers;
    }
}

Acts as a reverse proxy like a postal hub distributing letters to multiple offices.

Test Proxy with Curl

curl -x http://proxy.example.com:8080 https://google.com

Observe how the proxy forwards your request.

Configure a Simple Proxy (Linux)

export http_proxy=http://proxy.example.com:8080
export https_proxy=https://proxy.example.com:8080

Routes your requests through a proxy like sending letters via a middleman.


Real‑World Relevance

  • Corporate Networks: Proxies enforce internet usage policies, like postal rules for employees.
  • Web Security: Reverse proxies protect servers by hiding their identities.
  • Performance: Caching proxies reduce load, like keeping popular forms ready at postal counters.
  • Cloud: Services like AWS CloudFront and Nginx act as reverse proxies for scalability.

The Hackers Notebook

Proxy servers are the postal middlemen of networking. They forward requests, hide identities, cache data, and balance loads just like postal counters forwarding letters without revealing the sender’s true address.


Tips, Tricks, Roadmaps, Resources, Networking, Motivation, Guidance, and Cool Stuff ♥

Updated on Jan 3, 2026