Glossary

Proxy Server

A proxy server receives requests from clients and passes them on to another server on their behalf, then relays the answer back. It can filter, cache, log or hide what passes through.

What is a proxy server?

It is a middleman for network connections. Instead of talking to the destination directly, a client talks to the proxy, and the proxy opens its own connection to the destination. Because all traffic flows through it, the proxy can decide what is allowed, keep copies of answers, add or remove headers, log activity or change the apparent source of the request. Which of those it does depends on where it sits and who configured it.

Forward proxy or reverse proxy?

Forward proxyReverse proxy
Acts forThe clientsThe servers
Configured byClients or their network adminThe site operator
Destination seesThe proxy's addressNormal requests arriving at the proxy
Typical usesOutbound filtering, caching for an office, fixed egress addressTLS termination, load balancing, routing by host name, caching
Common softwareSquid, Tinyproxy, Dante (SOCKS)nginx, HAProxy, Caddy, Traefik

The terms trip people up because the software can be the same; nginx can act as either. What differs is whose side the proxy is on.

What is a reverse proxy used for on a dedicated server?

Nearly every web stack on a dedicated box has one. nginx or HAProxy accepts all HTTPS connections on ports 80 and 443, terminates TLS, and forwards each request to the right application: a PHP-FPM pool, a Node app on port 3000, a container on an internal Docker network. That lets several apps share one public IP address, keeps the apps themselves off the internet, and gives one place to handle certificates, compression, rate limits and logs. nginx reverse proxy in Docker shows a complete container setup.

What are forward proxies used for?

Companies route staff browsing through a forward proxy to filter categories of sites and cache common downloads. Build servers use one to cache package downloads. Teams use one to give outbound API calls a single, fixed source address that partners can allow. A SOCKS proxy, such as one created with ssh -D 1080, forwards any TCP connection and is a quick way to reach internal admin tools through an SSH tunnel; Everyday SSH commands covers the SSH side.

What is a transparent proxy?

One the client does not know about. The network redirects traffic to the proxy, typically with an iptables REDIRECT or DNAT rule, so no client settings change. It is common in office gateways and for caching DNS. It cannot read HTTPS content without installing its own certificate authority on every client, so on the modern web a transparent proxy mostly sees which host names are contacted, not what is inside. The redirect technique is explained in iptables port forwarding.

What should I consider before running a proxy on my machine?

  • Never run an open proxy. A forward proxy that accepts connections from anyone is found by scanners within hours and abused for spam, scraping and attacks. Restrict it by source address and require authentication.
  • Traffic counts twice. A forward proxy downloads content (inbound, free) and sends it to the client (outbound, counted against the monthly allowance). Estimate volume before offering a proxy to many users.
  • Logs matter. Decide what to log and for how long, both for troubleshooting and for privacy.
  • One public IPv4. Each of our machines has a single public address, so all proxied traffic leaves from that one IP. Extra addresses are not offered, which makes our boxes a fit for operator-run proxies, not for services that need rotating addresses.

Does a proxy need a big machine?

Very little for most uses. Proxying is mostly network work, and nginx or HAProxy handle tens of thousands of connections per core. TLS termination at high rates and caching are what add CPU and RAM. An E1 is plenty for a team's forward proxy; a reverse proxy in front of busy apps does well on S2 or S4 with a 2x 10 Gbps connection. Read the fair use rules before setting up a public-facing proxy service.

Related: Cache server for caching proxies, Gateway server for proxies that join different networks or protocols, and VPN server for tunneling whole devices instead of single connections.

Machines for Proxies and Front Doors

ServerProcessorCores / threadsMemoryStorageNetworkPer monthSmallest order
E1Intel Xeon E3-1240 v34 / 816 GB DDR32x 240 GB SSD2x 1 Gbps$30.52$91.56 (3 months)
E2Intel Xeon E3-1270 v34 / 832 GB DDR31x 480 GB SSD2x 1 Gbps$38.32$114.96 (3 months)
S2Intel Xeon E-2356G6 / 1264 GB DDR41x 1 TB NVMe2x 10 Gbps$58.39$58.39 (1 month)
S4Intel Xeon E-2388G8 / 1664 GB DDR41x 1 TB NVMe2x 10 Gbps$87.52$87.52 (1 month)

Keep Reading

nginx reverse proxy in Docker

Run nginx in a container as the front door for other containers, route by host name, pass real client IPs and add TLS.

Open

Cache server

A server that keeps copies of frequently requested data close to users or apps so the slow origin is asked less often.

Open

Gateway server

A server that joins two networks or protocols and controls what passes between them, from NAT gateways to API and payment gateways.

Open

VPN server

A server that accepts encrypted tunnels from devices or sites and joins them to a network, with WireGuard and OpenVPN compared.

Open

FAQ

Quick Answers

nginx is most often used as a reverse proxy in front of applications. It can also do limited forward proxying.

When a whole device or network should be tunneled. A proxy forwards specific connections or applications, while a VPN carries all traffic at the IP level.

Anyone can send traffic through it, so it gets abused for spam and attacks that appear to come from your address.

Yes. Clients only see the proxy, and the apps can listen on internal addresses that are not reachable from the internet.

No. Each machine has one public IPv4 address, and additional addresses are not offered.