DMZ Network Architecture

Published
Length
3 min read

Luis Felipe Dias

All posts

A dmz network architecture isolates public servers in a buffer subnet between the internet and your private network. You set it up by placing firewalls before and after this middle zone to filter traffic. Teams often build this layout to protect internal databases from external web traffic. Still, teams often open broad network ports so internal apps and engineers can reach private data. Once a connection passes the inner firewall, wide permissions expose your sensitive records. How a dmz netw

Zero Trust Architecture: the complete guide

Architecture patterns, implementation strategies, and security best practices. Delivered to your inbox.

Free white paper. No spam. Unsubscribe anytime.

A dmz network architecture isolates public servers in a buffer subnet between the internet and your private network. You set it up by placing firewalls before and after this middle zone to filter traffic. Teams often build this layout to protect internal databases from external web traffic. Still, teams often open broad network ports so internal apps and engineers can reach private data. Once a connection passes the inner firewall, wide permissions expose your sensitive records.

How a dmz network architecture routes traffic

In a standard setup, the outer firewall sits at the edge of your network. It accepts incoming requests from the public internet and sends them to servers in the buffer subnet. This middle zone holds your web servers, mail servers, and DNS hosts. These public hosts never store sensitive customer records on their own local disks.

When a web server needs data, it sends a request through the inner firewall. The inner firewall checks the source IP address and the destination port number. If the rule matches, the firewall lets the packet enter the private local network. Teams use either a single firewall with three network ports or two separate firewalls. The dual firewall setup offers stronger separation because two distinct rule sets must pass.

Cloud teams build this same layout using virtual subnets and routing tables. Public subnets hold load balancers that have public IP addresses. Private subnets hold databases and backend services that only accept traffic from the middle tier. Security groups act as virtual firewalls around each subnet and server group.

Network perimeter controls versus query and command visibility

A buffer subnet stops strangers on the internet from scanning your private databases. It ensures that only approved middle-tier servers and admin hosts can open a TCP socket. This perimeter design solves the problem of raw network exposure across your subnets. It keeps public traffic contained if an attacker takes over a front-end web server.

Yet network firewalls only decide which IP address and port can open a session. Once a session starts, the firewall cannot read the SQL queries or shell commands inside it. Engineers and middle-tier apps still log in using shared database roles with broad rights. If an engineer runs a destructive query, the inner firewall lets the packet pass. Likewise, if a compromised web app dumps customer emails or card numbers, the port keeps the session active.

Zero Trust Architecture: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Why static credentials weaken subnet isolation

To reach systems across subnets, teams often store database keys on servers in the buffer zone. They also hand out static VPN keys and database passwords to developers for daily tasks. When a developer needs to fix a bug, they log in to the network and open a full session. Every tool on their laptop can now reach the private port over that open tunnel.

Network rules cannot tell the difference between a safe read query and a table drop. They also cannot rewrite sensitive fields like phone numbers or national IDs in query results. True security requires checking every single command and query after the network check passes.

Govern statements and responses across databases and APIs

Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev sits inline in the protocol beside each supported service as an open-source proxy, a sidecar for your database or API. For every query or command an AI agent or engineer runs against production, hoop.dev decides to pass, mask, block, or hold it for human approval.

First, hoop.dev guardrails block banned queries before they run or hold risky ones for review, and hoop.dev data masking rewrites matched sensitive values in responses in memory. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.

Frequently asked questions

What belongs inside the DMZ subnet?

Place any host that must talk to the public internet inside this buffer subnet. Common examples include web servers, load balancers, email relays, and public DNS servers. Never put relational databases, internal file shares, or domain controllers in this zone.

Should teams use a single firewall or dual firewalls?

Dual firewalls provide better safety for production systems than a single three-legged firewall. With two firewalls, an attacker must bypass two separate rule sets to reach private servers. A single firewall saves money for small test setups, but it creates a single point of failure.

Does a DMZ protect against stolen developer credentials?

No, subnet isolation only controls network paths between IP addresses and ports. If an attacker steals an engineer's VPN key and database password, the firewall allows the login. You still need command-level controls and data masking to protect data during active sessions.

Short role checks help teams work fast. Simple rules make each review clear. Good logs keep every team safe. Scoped keys stop bad changes early.

Save the open-source gateway.

hoop is MIT-licensed infrastructure for controlling how AI agents reach production data. Star hoophq/hoop so you can inspect it, deploy it, or share it when your team starts governing agent access.