Cyberstudy
3.2 4.5 In progress

Proxy Servers

10 flashcards

Summary

A proxy server sits between clients and servers and makes requests on their behalf. A forward proxy handles users' outbound web traffic for filtering, logging and caching. A reverse proxy sits in front of servers to handle inbound requests, hiding and protecting them.

In plain words

A proxy receives a request, takes it apart, checks it, and rebuilds it before sending it on. A forward proxy handles users' outbound traffic, giving control, logging, authentication and caching. A reverse proxy sits in front of internal servers and handles inbound requests from the Internet. A transparent proxy intercepts traffic without any client setup; a non-transparent one must be configured in the client (manually, or with PAC/WPAD).

Detailed explanation

  • Proxy server: An intermediary that terminates a client's connection and opens a new one to the destination.
  • Forward proxy: Handles outbound requests from internal clients to the internet.
    • Uses: URL and content filtering, malware scanning, user authentication, logging and caching.
    • Non-transparent proxy: Clients are configured to use it, manually or through a proxy auto-configuration (PAC) file or WPAD.
    • Transparent proxy: Intercepts traffic without client configuration. Also called an intercepting proxy.
  • Reverse proxy: Receives inbound requests from the internet and forwards them to internal servers.
    • Uses: Hiding server addresses, TLS termination, load distribution, caching and applying web application firewall rules.

Important terms

taken from the text above
Proxy server
An intermediary that terminates a client's connection and opens a new one to the destination.
Forward proxy
Handles outbound requests from internal clients to the internet.
Non-transparent proxy
Clients are configured to use it, manually or through a proxy auto-configuration (PAC) file or WPAD.
Transparent proxy
Intercepts traffic without client configuration. Also called an intercepting proxy.
Reverse proxy
Receives inbound requests from the internet and forwards them to internal servers.

Examples & real-world scenarios

  • A web proxy on TCP 8080 that users must authenticate to.
  • A reverse proxy in front of an internal web application.
  • A PAC file telling browsers which proxy to use.

Scenario

A company wants to publish an internal web app to the Internet without exposing the app server directly. A reverse proxy at the edge filters requests and forwards only accepted ones to the protected subnet.

Common mistakes

  • Mixing up forward proxies (outbound, for users) and reverse proxies (inbound, for servers).
  • Thinking transparent means 'no filtering'. It just means clients don't need configuring.

Practical skills

  • Pick a forward or reverse proxy for a scenario.

What I should remember

  • Forward proxy: Protects and controls users going out to the internet.
  • Reverse proxy: Protects servers receiving requests from the internet.
  • Transparent proxy: Needs no client configuration.
  • Content filtering: A main reason to deploy a forward proxy.