Proxy server

Also known as: forward proxy

On this page 7

A proxy server is an intermediary system that accepts requests from clients and forwards them to destination servers on their behalf, so that the client never connects to the destination directly. In network security, the term usually refers to a forward proxy, which sits between internal users and the internet and applies filtering, inspection, logging and access control to outbound traffic.

Because every request passes through one controlled point, a proxy server gives an organization visibility and policy enforcement that a simple router or packet filter cannot provide, at the cost of added latency, configuration effort and a component that must itself be hardened.

How a proxy server relays traffic

A proxy server works by terminating the client connection and opening a separate connection to the destination. The client sends its request to the proxy, the proxy evaluates it against policy, retrieves the resource and returns the response, so that two independent sessions exist instead of one end-to-end session.

For plain HTTP, the client sends the full URL to the proxy, which can read and modify the request. For HTTPS, the client usually issues an HTTP CONNECT request, and the proxy opens a TCP tunnel to the destination port. Without further measures, the proxy then sees only the destination host name and the volume of encrypted data, not the content.

To inspect encrypted traffic, many enterprise proxies perform TLS interception. The proxy presents a certificate signed by an internal certificate authority that managed devices trust, decrypts the session, applies policy and re-encrypts it toward the real server. This capability is powerful but sensitive, because the proxy becomes a privileged point of decryption.

The table below lists the main protocols and modes a proxy server handles.

Protocol or modeTypical portWhat the proxy can see
HTTP proxy3128 or 8080Full URL, headers and content
HTTPS via CONNECT3128 or 8080Destination host and port only
TLS interception3128, 8080 or 443Decrypted URL and content
SOCKS51080Destination address and port, any TCP or UDP payload
Proxy protocols and what each exposes

Types of proxy servers

Proxy servers are classified by which side they serve and how clients reach them. A forward proxy represents clients toward the internet, while a reverse proxy represents servers toward clients, accepting inbound traffic and distributing it to back-end applications.

Deployment mode also matters. An explicit proxy requires each client to be configured, manually or through a proxy auto-configuration (PAC) file or WPAD discovery. A transparent proxy, also called an intercepting proxy, receives traffic redirected by a router or firewall, so clients need no configuration.

TypeServesPrimary purpose
Forward proxyInternal clientsOutbound filtering, logging and caching
Reverse proxyPublished serversLoad balancing, TLS offload and protection
Transparent proxyClients without configurationEnforced filtering on redirected traffic
Anonymizing proxyIndividual usersHiding the client IP address
Caching proxyClients on slow linksReducing bandwidth and latency
Proxy server types and their purpose

In cloud architectures, the forward proxy function increasingly runs as a secure web gateway delivered from provider points of presence, which forms one component of a SASE design.

Security functions of a forward proxy

A forward proxy strengthens network security by acting as a mandatory egress checkpoint. When the firewall blocks direct outbound web traffic and allows only the proxy to reach the internet, every client request becomes subject to the same policy.

  • URL and category filtering blocks known malicious, phishing or unwanted sites.
  • User authentication, often through Kerberos or LDAP, ties each request to a named account rather than an IP address.
  • Malware scanning of downloads stops many threats before they reach endpoints.
  • Data loss prevention inspects uploads for sensitive content when TLS interception is enabled.
  • Detailed access logs support incident response and help detect command-and-control traffic.
  • Address hiding keeps internal IP addresses out of external server logs.

The control is strongest when combined with egress filtering on the firewall. If clients can bypass the proxy through direct connections, alternative ports or DNS tunneling, the policy becomes advisory rather than enforced.

A proxy server differs from neighboring security controls mainly in the layer at which it operates and in whether it terminates connections. The comparison below helps clarify where each tool fits.

ControlOperating layerTerminates sessionsMain goal
Proxy serverApplicationYesMediate and inspect client requests
Packet-filtering firewallNetwork and transportNoAllow or block flows by rules
VPNNetworkNo, encapsulates trafficCreate an encrypted tunnel
Network ACLNetworkNoRestrict traffic between segments
Zero trust network accessApplicationYesGrant per-application access by identity
Comparison with neighboring network controls

A common confusion concerns consumer services marketed for privacy. A web proxy hides the client address only for traffic sent through it and often does not encrypt the connection between client and proxy, whereas a VPN encrypts all traffic from the device to the VPN endpoint.

Limitations and deployment risks

A proxy server introduces a single point of failure and a performance bottleneck unless it is deployed in a redundant cluster with sufficient capacity. Each request adds processing time, and TLS interception adds cryptographic work that can increase latency noticeably under heavy load.

The table below lists frequent problems, their cause and the usual remedy.

ProblemCauseRemedy
Applications fail behind the proxyCertificate pinning rejects the interception certificateExempt pinned domains from decryption
Users bypass filteringDirect outbound traffic is still allowedBlock egress except from the proxy
Proxy is abused by outsidersOpen proxy accepts unauthenticated external requestsRestrict listeners and require authentication
Privacy complaintsDecryption of banking or health trafficDefine category-based decryption exemptions
Slow page loadsUndersized hardware or single nodeScale horizontally and tune caching
Common problems and remedies

Encrypted protocols such as TLS 1.3 with Encrypted Client Hello and DNS over HTTPS reduce what a proxy can observe without interception, so organizations must decide deliberately how much inspection is necessary, lawful and proportionate.

Understanding it simply

A proxy server is like a receptionist who places every outside call for the employees of a company. Staff tell the receptionist whom they want to reach, the receptionist checks that the call is allowed, makes it and passes along the answer.

The main idea is that requests go through a middleman instead of directly. That middleman can block dangerous places, keep a record of who contacted whom and hide the inside phone numbers from the outside world. If people can still call out on their own, however, the receptionist loses most of that protection.

Applied in practice

A regional hospital with about 2,000 workstations wants to stop staff from reaching phishing sites and to detect malware that calls home. The network team deploys a pair of forward proxy servers in a cluster, distributes a PAC file through group policy and changes the perimeter firewall so that only the proxies may send traffic to ports 80 and 443.

The proxies authenticate users with Kerberos, block newly registered domains and decrypt general web traffic, while banking and patient portal categories are exempt from interception. Within the first month, the logs reveal several workstations repeatedly contacting a known command-and-control domain. The security team isolates them and removes the malware before any patient data leaves the network.