Security · 5 min read · 30 November 2026
What Is a DMZ in Networking? How a Demilitarised Zone Protects Your LAN
A DMZ is a separate network zone for servers the internet must reach. How it works, the firewall rules it needs, and why a router's "DMZ host" is not a DMZ.
A DMZ (demilitarised zone) is a separate network segment that sits between the internet and your internal LAN. It holds the servers that outsiders must reach, such as a public web server or mail relay, so that if one of them is compromised, the attacker is still kept away from your internal network.
How a DMZ works
The firewall has three zones: the internet, the DMZ and the internal LAN. Traffic between them is controlled by rules:
| From → To | Typical rule |
|---|---|
| Internet → DMZ | Allow only the published services, for example HTTPS (TCP 443) to the web server |
| Internet → LAN | Deny everything |
| DMZ → LAN | Deny by default; allow only specific, documented connections (for example the web server to one database port) |
| LAN → DMZ | Allow administration from a management network only |
| DMZ → Internet | Allow only what the servers need, such as updates and DNS |
The key idea is that the DMZ is trusted less than the LAN: a server in the DMZ cannot freely open connections inward.
Single-firewall and dual-firewall designs
- Three-legged firewall: one firewall with separate interfaces or VLANs for internet, DMZ and LAN. Common in small and medium businesses.
- Two firewalls in series: an outer firewall between the internet and the DMZ, and an inner firewall between the DMZ and the LAN. Used where security requirements are higher.
The "DMZ host" setting on home routers
Many consumer routers have a "DMZ" option that forwards every incoming port to one device on the LAN. That is not a real DMZ: the device is fully exposed and still sits inside your network. Avoid it, and publish only the specific ports a service needs (see NAT and port forwarding).
Good practice
- Keep DMZ servers patched and hardened, and log all traffic that crosses zone boundaries.
- Never put file servers, domain controllers or NVRs in the DMZ.
- For remote access to internal systems, use a VPN or zero-trust access instead of publishing them (see ZTNA vs VPN).
- Put a web application firewall in front of public web applications.
- Write the rules down and review them regularly: firewall rule best practices.
A secure internet gateway with separate zones and per-zone rules is all a small business needs to build a proper DMZ.
FAQ
Frequently asked questions
What is a DMZ in networking?
A separate network zone between the internet and the internal LAN that hosts public-facing servers. Firewall rules let the internet reach only those servers and stop the DMZ from connecting freely into the LAN.
What should be placed in a DMZ?
Services that outside users must reach directly, such as public web servers, mail relays and reverse proxies. Internal systems such as file servers, directory servers and NVRs should stay on the LAN.
Is a router's DMZ host setting safe?
No. It forwards all incoming ports to one LAN device, exposing it completely while it still sits on your internal network. Forward only the ports a service needs, or use a VPN.
Do I need two firewalls for a DMZ?
No. A single firewall with three zones (internet, DMZ, LAN) is common and effective. Two firewalls in series add defence in depth where requirements are stricter.
Related
Keep reading
What is a RADIUS server and how does RADIUS authentication work? The Access-Request flow, ports 1812/1813, common uses for Wi-Fi, 802.1X and VPN, popular RADIUS servers and how to secure them.
Read more →VPN Terms Explained: VPN Tunnel, Concentrator, Passthrough, Kill Switch and VPN RouterClear answers to common VPN questions: what a VPN tunnel is, what a VPN concentrator does, VPN passthrough, VPN kill switch, VPN routers, split tunnelling and site-to-site vs remote-access VPN.
Read more →What Is a Firewall? Types, How It Works and Configuration BasicsWhat is a firewall and how does it work? Packet-filtering, stateful, proxy and next-generation firewalls (NGFW) explained, network vs host firewalls, and the configuration basics every business should apply.
Read more →Preparing Your Network for the IoT EraRead more →Need help designing your network?
Navijin engineers provide free design consultations, bills of materials and quotations for business projects.