liveBook · Manning

Reverse proxy

As explained in Secure APIs

A reverse proxy receives client requests and forwards them to backend servers on the clients' behalf.

A reverse proxy receives internet requests and forwards them to backend services on the clients’ behalf. It acts as a controlled gateway between untrusted traffic and internal systems. section 9.2

Place reverse proxies in a hardened DMZ rather than exposing application services directly. Keep backend services in private subnets and restrict communication between network segments. section 9.2

Use this deployment pattern to reduce exposure:

  • Channel inbound traffic through the DMZ and the reverse proxy. section 9.2
  • Keep internal APIs and other services in private subnets. section 9.2
  • Restrict traffic between services with firewalls, access control lists, or security groups. section 9.2
  • Replicate the configuration accurately across environments and audit infrastructure code. section 1.2.3

DMZ-to-backend request path

A client reaches the reverse proxy in the DMZ. The proxy forwards an approved request to an API in a private subnet, while unrelated internal endpoints remain inaccessible from the internet. section 9.2

Figure 9.10 The DMZ is a region of our network that is exposed to the internet. It’s good practice to channel inbound traffic through the DMZ and keep all our services in private subnets. The DMZ can include elements such as an API gateway and bastion server.
figure

Use the network diagram to see how a DMZ channels inbound traffic while keeping services in private subnets. section 9.2

How Secure APIs covers it

How deep it goes
Explains the network role and placement but stops short of implementation-specific proxy configuration.
Examples
Uses a DMZ request path that forwards traffic to private APIs while withholding internal and development endpoints.
What you can do after
Operate/configure inbound paths by placing reverse proxies in a DMZ and keeping backend services in private subnets.
How it connects
Connects reverse proxies with DMZs, network segmentation, private subnets, API gateways, load balancers, and WAFs.

Also explained in

Compare how 5 books explain reverse proxy →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Secure APIs. The section links point to the parts of the book it draws on.