DMZ Zone Network Diagram

Published
Length
3 min read

Luis Felipe Dias

All posts

You build a dmz zone network diagram by placing public servers between two firewalls. An outer firewall filters internet traffic, and an inner firewall guards private databases. Teams often start by drawing subnets and IP routing rules for web apps. When teams make firewall rules too broad, attackers can reach internal data stores. Broad network permissions also give engineers full database reach once they log in. How to map a dmz zone network diagram A standard diagram splits your network in

Zone Network Diagram: the complete guide

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

Free white paper. No spam. Unsubscribe anytime.

You build a dmz zone network diagram by placing public servers between two firewalls. An outer firewall filters internet traffic, and an inner firewall guards private databases. Teams often start by drawing subnets and IP routing rules for web apps. When teams make firewall rules too broad, attackers can reach internal data stores. Broad network permissions also give engineers full database reach once they log in.

How to map a dmz zone network diagram

A standard diagram splits your network into three distinct security zones. The first zone is the untrusted public internet where external user requests start. The second zone is the perimeter subnet that holds your public web servers. Load balancers and mail servers also sit inside this middle perimeter zone. The third zone is the private internal network where core databases run.

In a dual-firewall design, the outer firewall sits at the internet edge. It allows web traffic into the perimeter subnet on specific network ports. It blocks all direct packets from the internet to the private network. The inner firewall sits between the perimeter subnet and the private zone. It only lets the web servers talk to internal app servers or databases. If a single-firewall design is used, one appliance manages three network interfaces.

How network zones handle traffic and permissions

Network teams map out every allowed path between the three zones. Each line on the diagram shows a strict firewall rule with source IPs. It also lists destination IPs, protocols, and allowed port numbers. For example, a web server in the middle zone needs data. It sends a request across the inner firewall to an internal app server. The inner firewall checks the source IP and port before passing the packet.

Engineers also need a path to fix and update these servers. Teams add an admin subnet to the diagram for operator traffic. VPN concentrators or SSH hosts sit in a locked segment with strict rules. An engineer logs in through the VPN and gets an internal IP address. From that IP, the firewall allows traffic to both zones for maintenance.

Zone Network Diagram: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

What network perimeters solve and what they miss

A clear perimeter layout stops outsiders from scanning your private databases directly. If an attacker compromises a public web server, the inner firewall blocks lateral movement. The attacker cannot open raw network sockets to arbitrary internal hosts. This layout also helps compliance auditors see how public and private systems stay separate. It enforces strong boundaries at the network packet level.

Still, network firewalls only decide which IP addresses can open a port. They do not inspect what individual database queries or admin commands do in flight. Once an engineer or app server passes the firewall, the network step ends. A shared database role can still run a drop table statement. It can also pull raw emails, phone numbers, card numbers, or national IDs. Without query-level checks and field masking, valid network traffic can still leak data.

Add runtime guardrails and masking beside your databases and APIs

Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.

Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.

Frequently asked questions

What servers belong in the perimeter subnet?

Place any host that accepts direct traffic from external users in the perimeter. This includes web servers, load balancers, public API endpoints, and email relays. Never place primary databases or internal identity stores in the perimeter subnet.

Should a dmz use one firewall or two?

A dual-firewall layout offers stronger isolation for production systems. If one firewall rule has a flaw, the second firewall still blocks traffic. Single-firewall setups cost less and work well for smaller test setups.

Why do internal databases still need command checks behind a firewall?

Firewalls only check IP addresses and ports when a session starts. They cannot tell a safe read query from a destructive delete command. Command checks and data masking rewrite matched fields in results during live sessions.

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.