Updated
A company that hosts its own public services: a reverse proxy, a mail relay and a VPN gateway in a DMZ, the servers, users and management VLANs inside, and one firewall with three legs. A second page draws every flow the firewall allows as a numbered arrow with its port, so the diagram and the rule base can be checked against each other. A third page shows the same services behind two firewalls, back to back.
Three pages. The devices drawn on more than one page keep the same hostname and IP.
One firewall: WAN1 to a 1 Gbps fiber circuit with a /28 public block, X2 to the DMZ on its own switch, X3 to the inside core over 10 Gbps. Each leg is labeled with what it lets through.
BWS-RP01 (reverse proxy, 443), BWS-MX01 (mail relay, 25) and BWS-VPN01 (remote access with MFA, 443) on 172.16.10.0/24, each with its published public address and a note that it isn't domain-joined.
Eight numbered arrows: three from the internet into the DMZ, four from the DMZ inward (each to one server on one port), and admin access from the jump host only. A note lists what's denied.
The same DMZ between an outer and an inner firewall from different vendors, the inner one passing only the four inward flows and VPN client traffic. Use whichever page matches your design and delete the other.
The DMZ gets its own subnet and its own switch, so a cable or VLAN mistake is far less likely to put a DMZ host on an inside network. Public addresses are translated to DMZ addresses on the firewall; record both on each host so whoever reads the diagram can match it to the NAT rules.
| Zone / VLAN | Subnet | Gateway | DHCP | What's on it |
|---|---|---|---|---|
| Outside | 203.0.113.32/28 | ISP, .33 | Static | Firewall WAN1 (.34); published: RP01 (.35:443), MX01 (.36:25), VPN01 (.37:443) |
| DMZ (VLAN 10) | 172.16.10.0/24 | 172.16.10.1 | Static | BWS-RP01 (.10), BWS-MX01 (.20), BWS-VPN01 (.30). Back-to-back page: inner firewall at .254 |
| Servers (VLAN 20) | 10.50.20.0/24 | 10.50.20.1 | Static | BWS-DC01 (.5), BWS-APP01 (.10), BWS-DB01 (.11), BWS-MAIL01 (.12) |
| Users (VLAN 30) | 10.50.30.0/24 | 10.50.30.1 | BWS-DC01, .100-.250 | 60 staff PCs |
| VPN clients | 10.50.40.0/24 | BWS-VPN01 | BWS-VPN01 | Remote staff, given the Users VLAN's rules |
| Management (VLAN 99) | 10.50.99.0/24 | 10.50.99.1 | Static | Firewall (.1), core (.2), DMZ switch out-of-band (.4), jump host (.20), log collector (.30); back-to-back page: outer and inner firewalls (.11, .12) |
The public block is from a range reserved for documentation (RFC 5737); the rest are private (RFC 1918) addresses. Plan your own with the subnet calculator.
Rules 1 to 8 match the numbered arrows on the template's Allowed Flows page. Rules are read top to bottom; the last one catches everything else.
| # | Source | Destination | Port | Why |
|---|---|---|---|---|
| 1 | Any (internet) | BWS-RP01 | TCP 443 | Customer portal, published by the reverse proxy |
| 2 | Any (internet) | BWS-MX01 | TCP 25 | Inbound email to the relay, which filters it |
| 3 | Any (internet) | BWS-VPN01 | TCP 443 | Remote access, MFA required (add UDP 443 if your gateway uses it) |
| 4 | BWS-RP01 | BWS-APP01 | TCP 8443 | The one app server the proxy fronts |
| 5 | BWS-MX01 | BWS-MAIL01 | TCP 25 | Deliver filtered mail |
| 6 | BWS-VPN01 | BWS-DC01 | UDP 1812 | RADIUS: check VPN sign-ins |
| 7 | DMZ hosts | BWS-LOG01 | TCP 6514 | Syslog over TLS, so DMZ logs survive a compromised host |
| 8 | BWS-JMP01 | DMZ hosts | TCP 22, 443 | Administration, from the jump host only |
| 9 | VPN clients | Inside | As Users VLAN | Remote staff get what they'd get at their desks |
| 10 | DMZ hosts | Internet | UDP/TCP 53, UDP 123, TCP 443 to named update hosts | DNS, time and patches; nothing else outbound |
| 11 | Any | Any | Any | Deny and log |
Look up any port in the port numbers reference. Your products' ports may differ: an app server may listen on 443, a RADIUS server on 1645, and some VPN gateways use UDP as well as TCP.
In a three-legged DMZ one firewall has at least three interfaces: outside, DMZ and inside. It's one device to buy, license and manage, and one rule base to read, which is why most small and mid-sized networks use it. The catch is that the same firewall is the only thing between the internet, the DMZ and the inside, so a flaw in it or one bad rule can expose everything.
In a back-to-back (or dual-firewall) DMZ, the DMZ sits between an outer firewall facing the internet and an inner firewall guarding the inside. Getting through the outer one only reaches the DMZ. Using two vendors means a single vulnerability doesn't open both, at the cost of two rule bases, two sets of skills and two support contracts. It's common where a regulator, an auditor or the value of the data justifies the extra work.
Either way, the DMZ should be a separate subnet, ideally on its own switch or at least its own VLAN on a switch with no inside ports, and the inside should be split into zones too. The template puts servers, users and management in separate VLANs with the firewall as their gateway, so a DMZ host that's allowed to reach one server on one port can't reach the rest.
Fewer services need one than ten years ago. Email has largely moved to hosted providers that filter inbound mail themselves, and many web apps are now published through a cloud WAF or reverse proxy, or through an identity-aware access service whose connector makes outbound connections only, so nothing on your network accepts inbound traffic. Remote access is going the same way. What tends to stay in a DMZ: on-premises apps that the public must reach and that can't move, SMTP relays for on-premises systems, VPN gateways, file transfer servers for partners, and session border controllers for VoIP. If a cloud service can front an app with no inbound port open, that's usually less to defend than a DMZ host. Draw it anyway: the connector, the cloud service and the flows belong on the diagram.
| Mistake | Why it hurts | Instead |
|---|---|---|
| DMZ hosts joined to the domain | A compromised DMZ host holds domain credentials, and domain membership needs a long list of ports open to the domain controllers | Local accounts managed from the jump host; if a DMZ host must authenticate users, use a narrow protocol like RADIUS or LDAPS to one server |
| Any/any or "temporary" broad rules | One DMZ compromise reaches everything the rule allows, and temporary rules rarely get removed | One source, one destination, one port per rule, each with a reason and an owner; review them yearly |
| Management from the internet | Firewall and server admin pages exposed to the internet are a frequent way in | Admin interfaces reachable only from a management VLAN or jump host, with MFA |
| DMZ to database, directly | The DMZ host gets a path to the data an attacker wants most | The DMZ reaches an app server; only the app server reaches the database |
| Unrestricted outbound from the DMZ | Malware on a DMZ host can download tools and send data out freely | Allow DNS, NTP and named update sources only |
| DMZ on a VLAN of the inside switch | One wrong port setting or switch flaw puts a public-facing host on the inside network | A dedicated DMZ switch, or a switch with no inside VLANs |
| No logs leaving the DMZ | An attacker on the host deletes the evidence | Send logs to a collector inside (flow 7), over TLS |
Each firewall interface with its zone and address, each published service with its public address and port, each allowed flow with its port and a number that matches the rule base, and the management path. In the template, a firewall's notes list its interfaces, each DMZ host's notes carry its NAT address, and the Allowed Flows page's arrows record the protocol, encryption and purpose, which the PDF prints as a table.
Work from the firewall's interface list, NAT table and rule base.
Click Open this template. No account needed; nothing you type leaves your computer.
Keep the three-legged page or the back-to-back page, whichever you run, and delete the other.
Set each firewall interface as a link with its port and label, and each zone's subnet. Put every public-facing host in the DMZ zone with its NAT address in its notes.
On the Allowed Flows page, draw a Data Flow line for each allow rule, numbered to match the rule base, with its port in the label. A flow you can't draw is a rule to question.
Fill in models, serials and management IPs, then click Check for duplicate IPs, addresses outside their subnet and flows with no purpose recorded.
Mark verified today and export the PDF. At each firewall review, compare the rule base to the arrows.
Every template opens in the same editor, so you can copy devices and areas from one into another.
A separate network segment for the systems the internet has to reach, such as a web proxy or a mail relay, with a firewall between it and the internet and between it and your internal network. If one of those systems is compromised, the attacker is in the DMZ, not on the inside.
Yes. "Screened subnet" is another name for a DMZ network, and newer training material often prefers it. Older texts also use "screened subnet" for the back-to-back design specifically, with the DMZ between two filtering devices.
Generally no. Joining a DMZ host to the domain means opening many ports from the DMZ to the domain controllers and leaving domain credentials on a public-facing machine. Use local accounts managed from a jump host, or a narrow protocol such as RADIUS or LDAPS to a single server if the host must check users.
No. On most home routers, "DMZ host" forwards every unsolicited inbound connection to one inside device. That device stays on the same network as everything else, so nothing is separated. It's closer to opening every port than to a DMZ.
Maybe not. If email is hosted and your apps are published through a cloud WAF, reverse proxy or an access service with outbound-only connectors, you may have nothing that accepts inbound connections. Anything on-premises that must accept them still belongs in a DMZ.
Opening and editing it in your browser is free, with no account. Saving the file and exporting the PDF need the free 14-day trial (just your email, no credit card). After that, editing it needs Pro: it has three pages and 14 devices on the first one alone, more than the Free plan's 10 devices on one page. Pro is $9 a month billed yearly, or $15 month to month, and CallSketch is included.
No signup to look around. Swap in your firewall and services, and start the trial when you want the PDF.
Open this template