Course contentsShow
← Security
Lesson 423 of 3,05210. Network Security - Firewalls and SegmentationFree lesson

Demilitarized Zones (DMZ)

Design secure DMZ networks to isolate public-facing services from internal networks.

Demilitarized Zones (DMZ)

What you'll learn: How to use DMZ networks to safely expose public services while protecting your internal systems.

The Core Problem

When you run public-facing services like web servers, email servers, or FTP sites, they must be accessible from the internet—but you don't want attackers who compromise these servers to gain direct access to your internal network where sensitive data lives.

What Is a DMZ?

A Demilitarized Zone (DMZ) is a separate network segment that sits between the internet and your internal network. It's protected by firewalls on both sides: one firewall faces the internet, another faces your internal network.

Think of it like a hotel lobby. Guests (public internet users) can access the lobby (DMZ services), but they can't walk directly into the back offices (internal network) where employees work and sensitive records are stored. Security checkpoints control both entry points.

How DMZ Design Works

  1. External firewall filters traffic from the internet to the DMZ, allowing only necessary public services (ports 80/443 for web, 25 for email)
  2. DMZ hosts (web servers, mail servers) operate in isolation with minimal trust
  3. Internal firewall strictly controls traffic from DMZ to internal network—typically allowing almost nothing inbound, only specific outbound connections for updates or database queries
  4. Internal network remains protected even if a DMZ server is compromised

The Security Benefit

If an attacker compromises your web server in the DMZ, they're still outside your internal network. They face another firewall barrier before reaching employee workstations, databases, or file servers. This "defense in depth" limits damage from successful attacks.

Key Takeaway: A DMZ creates a buffer zone for public-facing services, isolating them from your internal network with dual firewall protection to contain breaches and protect sensitive systems.