A DMZ is a separate part of a network for servers the public can reach.
This guide is for students, people new to IT and anyone looking after a small business network. You do not need to configure firewalls yourself to benefit: if your business runs a website, email or file server on its own premises, where it sits on the network matters.
In short
- A DMZ (demilitarised zone) is a buffer area between the internet and your private office network.
- Servers the public must reach, such as a website, go in the DMZ, not next to staff computers and private files.
- Firewall rules let the internet reach the DMZ, but keep tight limits on what the DMZ can reach inside.
- If a public server is broken into, the DMZ makes it harder for the attacker to move on to everything else.
What you will learn
- Explain what a DMZ is and why it exists.
- Spot which of your systems belong in a DMZ.
- Check that a public server cannot freely reach your private network.
- Ask your IT supplier where your public services sit.
- Buffer zone (DMZ)
- a separate network area for systems that the internet can reach.
- Traffic filter (firewall)
- a device or program that allows or blocks network traffic using rules.
- Private network (internal network)
- the part of a network that holds staff computers and private data.
What is a DMZ?
Think of a post office. Members of the public walk up to the counter and are served there. The sorting room behind the counter stays shut to them. Staff pass things through a hatch, under clear rules.
A DMZ is the counter area of a network. The name comes from the military term "demilitarised zone", a strip of land between two sides. In computing, it is a network area that sits between the internet and your internal network (the private part, with staff computers and files).[1]
Servers that outsiders must reach, such as a public website, go in the DMZ. A firewall (a traffic filter that follows rules) sits between each area. It lets the public reach the counter, but keeps the sorting room closed.[1] Some guides call a DMZ a "screened subnet", meaning a network area protected by filters on both sides.
Where the comparison stops working: a post office counter is watched by staff all day. A DMZ server is often unattended. If someone breaks into it, nobody may notice unless logs and alerts are in place.
Why does it matter?
If the public can reach a server, so can attackers. If that server sits next to everything else, one break-in can open the way to the whole network. Splitting a network into areas helps. An attacker who gets in at one point may then not reach your most important data.[2]
If you run a small business
What could happen: your website server sits on the same network as the accounts PC, so a website break-in reaches your finances.
Check this: ask your IT supplier, "Are our public servers kept apart from our office computers?"
If you are studying IT or networking
What could happen: you learn the diagram but miss the point, which is the rules between the areas.
Check this: for any DMZ drawing, ask what traffic is allowed in, and what is allowed from the DMZ inwards.
If you are new to IT support
What could happen: someone adds a "temporary" rule that lets the DMZ reach everything inside, and nobody removes it.
Check this: every rule from the DMZ inwards should have an owner, a reason and a review date.
Next: Firewalls for Beginners
What does it look like?
Network teams describe a DMZ by its areas and by the rules between them. Here is a made-up, plain-words version for a small firm.
Example only. All values are made up.
Area 1 Internet anyone Area 2 DMZ web server www.example.com Area 3 Internal staff PCs, file server, database Rule A Internet -> DMZ web server: web traffic only (1) Rule B DMZ web server -> Internal database: one port (2) Rule C Internet -> Internal: blocked (3) Rule D DMZ -> Internal (anything else): blocked (4)
- The public can reach the website, and only in the way a website needs.
- The website may ask the database for one thing, in one way. In a real file, this line would contain the exact address and port.
- Nobody on the internet can reach staff computers directly.
- If the web server is broken into, it cannot freely reach the office.
Why this is risky: without a DMZ, there is no Area 2. The web server would live in Area 3, and Rule A would then open a door straight into the office network.
The safer way: keep the public server in the DMZ, allow only the few connections it needs, and block the rest by default. Write down why each allowed rule exists.
How does it work?
Here is what happens when a visitor opens a company website that sits in a DMZ.
- The visitor connects. Their browser sends a request across the internet to the company's web address.
- The outer filter checks it. The firewall allows only web traffic, and only to the web server in the DMZ.
- The web server answers. If it needs data, it asks the database inside, through the one connection that is allowed.[1]
- The inner filter checks that too. Anything else the DMZ tries to reach inside is blocked and can be logged.
- Staff manage it carefully. Admins reach DMZ servers from one controlled starting point, not from any office PC. This is often a jump box, a single locked-down computer used only for admin work.

Some small networks use one firewall with three connections, one each for the internet, the DMZ and the internal network. Others use two firewalls, one on each side of the DMZ. Both aim for the same result: separate areas, with rules between them.[1][3]
In the cloud, the same idea is built from network areas called subnets. On Amazon Web Services, for example, a public subnet has a direct route to the internet and a private subnet does not.[4] Public-facing servers go in the public subnet, and databases stay in the private one.

A worked example
Bea Strand is a networking student on a summer placement with a small, fictional travel firm. The office manager, Vida Rinaldi, asks her to help tidy up the network before a new booking website goes live.
Bea draws what she finds. The booking website runs on a server in the office cupboard. It sits on the same network as the staff laptops, the shared drive and the customer database.
She explains the post office picture to Vida. "Right now, the public is walking straight into the sorting room."
With the firm's IT supplier, they agree a plan. The supplier sets up a third connection on the firewall for a new DMZ. The web server moves there. The firewall allows web traffic from the internet to the web server only.
The booking site still needs customer details. So they allow one connection from the web server to the database, for one purpose. Everything else from the DMZ to the office is blocked.
Bea also notices an old rule that let the internet reach the shared drive "for working from home". Vida checks with staff, and nobody uses it. They remove it, and staff working remotely use the firm's existing secure remote access instead.
Finally, the supplier turns on firewall logging for blocked traffic from the DMZ. Vida adds a yearly review of every rule to the office calendar.
Bea writes up the change for her placement report. Her key line: "The DMZ does not make the website unbreakable. It makes a break-in much less likely to reach everything else."
Myths and mistakes
| What people think | What is true |
|---|---|
| A server in the DMZ is safe. | A DMZ server is the most exposed system you have. It still needs updates, strong logins and monitoring. |
| The DMZ is just a box on a diagram. | The protection comes from the firewall rules between areas. Weak rules give weak protection. |
| One "temporary" open rule will not matter. | Broad rules from the DMZ inwards undo the point of the DMZ. Give every rule an owner and a review date. |
| Traffic from inside our network can be trusted. | The UK's cyber security agency advises not to trust traffic automatically just because it starts inside the network.[2] |
| Cloud services do not need a DMZ. | The idea still applies. Cloud networks use public and private subnets and filters to do the same job.[4] |
What can I do this week?
- List every server or service that people outside your business can reach.
- Ask your IT supplier whether those servers are kept apart from office computers.
- Ask for a plain-words list of what the public servers are allowed to reach inside.
- Remove any old rule that nobody can explain.
- Check that admin access to public servers comes from one controlled place.
Checklist
- Every public-facing server sits in a DMZ or a public subnet, not on the office network.
- The internet can reach DMZ servers only in the ways each service needs.
- The internet cannot reach the internal network directly.
- Connections from the DMZ to the internal network are few, named and justified.
- Every rule has an owner, a reason and a review date.
- Blocked traffic from the DMZ is logged and someone looks at it.
- DMZ servers are kept up to date and use strong, unique logins.
- Admins manage DMZ servers from a controlled starting point.
Common questions
What does DMZ stand for?
DMZ stands for demilitarised zone. The term comes from the military, where it means a strip of land between two sides. In networking, it means a buffer area between the internet and a private network, used for servers that the public must reach.
What goes in a DMZ?
Servers that outsiders need to reach. Common examples are public websites, email gateways that receive mail from the internet, and file transfer servers used by customers or suppliers. Databases, staff computers and private files usually stay on the internal network instead.
Is the DMZ setting on my home router the same thing?
Not quite. On many home routers, "DMZ host" sends all incoming traffic to one device, with few filters in front of it. That device is more exposed, not more protected. Most homes do not need it, so leave it off unless you know why you need it.
Is a DMZ the same as network segmentation?
A DMZ is one kind of network segmentation. Segmentation means splitting any network into areas with rules between them. The DMZ is the specific area for public-facing servers. Larger networks often have many other areas too, for example for payments or building systems.
Do I still need a DMZ if my website is hosted elsewhere?
Often not for the website itself, because the host keeps it off your office network. You may still need one if you run other public services on your premises, such as remote access or file transfer servers. Ask your IT supplier what is reachable from outside.
Where next?
Ready for the detail? Read the practitioner guide: DMZ Design. It goes further into single and dual firewall designs, traffic rules and admin access, and cloud equivalents.
Also useful:
- Network Segmentation for Beginners
- Firewalls for Beginners
- Lateral Movement for Beginners
- Cloud Networking for Beginners
- Web Application Firewalls for Beginners
Related NHI Mgmt Group resources: Network Segmentation Guide · Firewall Management Guide · Firewall Rule Review Checklist
Key terms
- DMZ
- A separate network area, between the internet and the internal network, for servers the public must reach.
- Firewall
- A device or program that allows or blocks network traffic using rules.
- Internal network
- The private part of a network, with staff computers and private data.
- Firewall rule
- One instruction saying which traffic may pass between two places.
- Network segmentation
- Splitting a network into areas, so trouble in one area is harder to spread.
- Jump box
- A single locked-down computer that admins use to manage other servers.
- Lateral movement
- An attacker moving from the first system they reach on to other systems.
Sources and further reading
- Demilitarized Zone (DMZ), glossary entry with definitions from CNSSI 4009-2022, NIST SP 800-41 Rev. 1 and other NIST publications. NIST Computer Security Resource Center. https://csrc.nist.gov/glossary/term/demilitarized_zone, accessed 28 Nov 2026.
- Preventing Lateral Movement. National Cyber Security Centre (UK), published 8 February 2018, reviewed 10 March 2021. https://www.ncsc.gov.uk/guidance/preventing-lateral-movement, accessed 28 Nov 2026.
- NIST SP 800-41 Rev. 1, Guidelines on Firewalls and Firewall Policy. NIST, September 2009. https://csrc.nist.gov/pubs/sp/800/41/r1/final, accessed 28 Nov 2026.
- Subnets for your VPC: subnet types. Amazon VPC User Guide, Amazon Web Services. https://docs.aws.amazon.com/vpc/latest/userguide/configure-subnets.html, accessed 28 Nov 2026.