Will It Work? · Guide
DMZ host on a home router: when to use it, and when not
By Bulan Sarkar, founder of ElectronicsInfoline (since 2000)
The DMZ setting looks like a quick fix when a game, camera or video call will not connect, because it opens everything to one address. It does fix some problems, but it opens up the device you choose, and most of the time port forwarding does the same job more safely. This guide is drawn from two router makers' support pages (one read on its US and India sites).
A DMZ host gets every port the router has not forwarded elsewhere, so it faces the internet with little firewall protection. Use it to pass everything from the provider's box to your own router behind it. For a PC, console or camera, forward the ports its maker lists instead, and turn DMZ off when you are not using it.
What a DMZ host is
Normally the router drops incoming traffic from the internet that is not a reply to one of your devices or a service you set up with port forwarding or triggering (NETGEAR). The DMZ setting sends that traffic to one device instead, which one maker calls the default DMZ server (NETGEAR). The other maker says a home router's DMZ is a DMZ host, not a true DMZ: one device on the home network with all UDP and TCP ports open and exposed, except ports forwarded elsewhere (TP-Link).
What you give up
The device in the DMZ loses much of the firewall's protection and is exposed to attacks from the internet. If it is compromised, it can be used to attack the other computers on your network (NETGEAR). The other maker says the DMZ host is totally exposed to the internet and asks you to turn DMZ off when it is not in use (TP-Link).
A forwarding rule opens only the ports you list, to one device, so for a single device it is the better first stop; see port forwarding for the steps.
When it is the right setting
One maker says a DMZ host is often a simple way to forward all ports to another firewall or NAT device (TP-Link). That is the double-NAT case: the provider's modem router has the public address and your own router sits behind it with a private WAN address. Put your router's WAN address in the DMZ field on the provider's box, and your router's own firewall and rules take over.
Both makers also mention apps. One says DMZ is mainly for when you do not know which ports to open (TP-Link). The other says it helps with some online games and video calling apps that do not work with NAT (NETGEAR). In both cases the better long-term answer is the app maker's port list. DMZ will not help if your router's WAN address is carrier-grade NAT; check that first in the port-forwarding guide.
Set it up
First give the device a fixed address on the router's subnet (TP-Link). A DHCP reservation does this from the router. On one maker's routers, go to Advanced > NAT Forwarding/Forwarding > DMZ, select Enable, enter the device's address, save, and restart the router for the change to take effect (TP-Link). On the other maker's routers, go to ADVANCED > Setup > WAN Setup, select Default DMZ Server, type the address and click Apply (NETGEAR).
Tips and tricks
- If you only need DMZ for a test, write down the time and turn it off the same day.
- Reserve the DMZ device’s address first. If the router later gives that address to another device, the other device gets everything instead.
- On a provider’s box, the address to enter is your own router’s WAN address, shown on your router’s status page.
- If DMZ does not fix the problem, check the router’s WAN address for carrier-grade NAT before trying anything else.
- Test from a phone with Wi-Fi off. A connection from inside your home does not show what the internet sees.
What we would do
We would leave DMZ off on any router that has a computer behind it. On a provider's box with our own router behind it, we would reserve our router's WAN address there and put it in the DMZ field, then do all port forwarding on our own router. For a console or camera, we would forward the ports its maker lists.
Questions people ask
What is a DMZ host on a home router? One device on your home network that gets every TCP and UDP port the router has not forwarded somewhere else. It is not a true DMZ in the business-network sense; one maker says so directly.
Is it safe to put my PC or console in the DMZ? Both makers warn about it. The DMZ device loses much of the firewall’s protection and is exposed to the internet, and if it is taken over it can be used to attack the other devices on your network. Turn DMZ off when you are not using it.
Should I use DMZ or port forwarding? Port forwarding, whenever the app or device maker lists the ports. DMZ suits one everyday case: passing everything from the provider’s box to your own router behind it, which has its own firewall.
Will DMZ fix strict NAT or double NAT for gaming? On the provider’s box, putting your own router in the DMZ passes all ports to it, and your router’s forwarding rules then decide what reaches the console. It cannot help if the provider uses carrier-grade NAT; check the router’s WAN address for that.
Sources
Each figure on this page is quoted from the source below or worked out from them. Sources checked , each quote read again against the source in a second pass.
- TP-Link, TP-Link FAQ 28 (US): what a DMZ host is and how to set one:
A home router DMZ host is a host on the internal network that has all UDP and TCP ports open and exposed, except those ports otherwise forwarded. … They are often used a simple method to forward all ports to another firewall/ NAT device. … DMZ is more applicable in a situation where users are not clear about which ports to open. … When it is enabled, the DMZ host is totally exposed to the internet, which may bring some potential safety hazards. If the DMZ is not in use, please disable it in time. … Set your PC to a static IP address to be in the same subnet of the router … Go to Advanced > NAT Forwarding/Forwarding > DMZ … Restart your router for the changes to take effect.
tp-link.com/us/support/faq/28/ - NETGEAR, NETGEAR KB 24086: set up a default DMZ server:
The default DMZ server feature is helpful when you are using some online games and videoconferencing applications that are incompatible with Network Address Translation (NAT). … A computer designated as the default DMZ server loses much of the protection of the firewall and is exposed to exploits from the internet. If compromised, the DMZ server computer can be used to attack other computers on your network. … The router usually detects and discards incoming traffic from the internet that is not a response to one of your local computers … This computer is called the default DMZ server. … Select ADVANCED > Setup > WAN Setup
kb.netgear.com/24086/