DMZ Design
You build a dmz design by placing public servers inside an isolated buffer subnet. Firewalls on both sides restrict traffic between the internet and your private network. Engineering teams use this layout to expose web apps while hiding internal databases. Still, broad firewall rules or shared server keys often weaken this boundary. If an attacker compromises a public host, open internal ports let them move deeper. How a dual-firewall dmz design works A standard dmz design relies on two separ
DevSecOps Pipeline Design: the complete guide
Architecture patterns, implementation strategies, and security best practices. Delivered to your inbox.
You build a dmz design by placing public servers inside an isolated buffer subnet. Firewalls on both sides restrict traffic between the internet and your private network. Engineering teams use this layout to expose web apps while hiding internal databases. Still, broad firewall rules or shared server keys often weaken this boundary. If an attacker compromises a public host, open internal ports let them move deeper.
How a dual-firewall dmz design works
A standard dmz design relies on two separate firewall tiers to filter network packets. The outer firewall sits at the edge and accepts public traffic from the internet. It forwards only approved requests, such as web traffic, to hosts inside the buffer zone. These buffer hosts handle public requests without holding sensitive customer records on their own disks.
The inner firewall sits between the buffer subnet and the private internal network. Teams set up strict rules on this inner boundary to block direct public requests. Only specific hosts in the buffer zone can open a session to internal databases. Network engineers also turn off routing between the internet and the private zone. Every packet must stop inside the buffer zone before a new internal session starts.
How to segment hosts and rules in the buffer zone
Good segmentation starts by grouping public services into smaller subnets based on their role. You should put web servers, mail relays, and partner APIs in separate network segments. This prevents a compromise in one public app from spreading to other buffer hosts. Each subnet gets its own access control list on the inner and outer firewalls.
Teams also harden each host inside the buffer zone by removing unused software tools. You must close all listening ports that the public app does not need to run. Engineers restrict outbound traffic from the buffer zone back to the public internet as well. If an attacker breaks into a web server, outbound blocks stop them from downloading tools. Strict host rules keep the buffer zone clean and easy to monitor.
DevSecOps Pipeline Design: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
What network boundaries solve and what they miss
Network zones and firewall rules do a great job of blocking unauthorized IP addresses. They stop random internet scanners from reaching your private databases or internal services directly. A solid perimeter layout also limits how many hosts face the public web. This reduces the surface area that your security team has to patch every week.
Still, firewalls only check network addresses and ports to decide who can connect. Once a buffer host or engineer opens an approved port, the firewall steps aside. Native network rules cannot read the database queries or shell commands running inside that session. If an app or user runs a destructive query over an allowed port, it succeeds. Network boundaries also cannot rewrite sensitive fields like emails or card numbers in query results. Teams still need visibility and control over what happens inside each active session.
Check database and API queries on the wire
Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.
Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.
Frequently asked questions
What is the difference between a single and dual firewall layout?
A single firewall uses three network interfaces to separate public, buffer, and private zones. A dual layout uses two separate firewall tiers so one device failure cannot expose private data.
Should databases ever sit inside the buffer subnet?
No, you should keep all databases with sensitive records inside the private internal network. If a database sits in the buffer zone, a single host breach exposes raw records.
Do cloud networks still need a buffer subnet layout?
Yes, cloud teams still separate public subnets with internet routing from private database subnets. Even in cloud setups, isolating public endpoints from internal storage remains a core safety practice.
Related guides
In this post