Will It Work? · Guide

DMZ host on a home router: when to use it, and when not

By , 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).

Port forwarding opens a few listed ports; a DMZ host gets all the restTop: with port forwarding, the router passes only the listed ports to one device and drops other unrequested traffic from the internet. Bottom: with a DMZ host, every TCP and UDP port that is not forwarded somewhere else goes to the DMZ device, so it faces the internet with most of the firewall's protection gone. If it is taken over, it can be used to attack the other devices at home.Port forwardingtwo listed ports open, the rest droppedcameraonly what it needsDMZ hostevery port not forwarded elsewhere: openDMZ deviceexposedeach square stands for a group of ports (not to scale)
Figure 1. A router normally drops traffic from the internet that nobody at home asked for. A forwarding rule lets through only the ports you list. A DMZ host gets everything else as well.

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.

The one everyday use: the provider's box sends everything to your own routerThe provider's modem router has the public address. Your own router behind it has a private WAN address such as 192.168.1.20, so two boxes translate addresses. Setting your router's WAN address as the DMZ host on the provider's box passes every port to your router, whose own firewall and forwarding rules then decide what reaches the devices at home.provider boxpublic addressDMZ → 192.168.1.20allyour routerWAN 192.168.1.20own firewall + rulescameraforwardedports onlySteps on the provider's box1. Reserve your router's WAN address (here 192.168.1.20)2. Put that address in the DMZ host field and save3. Set up port forwarding on your own router as usual4. Restart if the box asks; test from a phone off Wi-Fi
Figure 2. Here the DMZ host is a router with its own firewall, not a computer. Give your router a fixed address on the provider's box first, then put that address in the DMZ field.

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.

DMZ host or port forwarding: three questionsIf the device behind the router is another router with its own firewall, use the DMZ host setting to pass everything to it. If it is a device such as a game console or camera and its maker lists the ports, use port forwarding with those ports. If there is no port list, get one from the maker; use DMZ only for a short test and turn it off afterwards. The DMZ address must be on the router's own subnet: with a router at 192.168.0.1, the address 192.168.0.100 works and 192.168.1.100 does not.Another router behind it?DMZ host to the second routerA device with a port list?port forwarding with the listed portsA device, no port list?get the ports firstDMZ only for a short testDMZ address on a router at 192.168.0.1192.168.0.100 ok192.168.1.100 other subnet
Figure 3. Use the DMZ setting when the device behind it is another router; otherwise forward the ports the device's maker lists. The DMZ address has to sit on the router's own subnet, and it should not change.

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.

What IP address do I put in the DMZ field? The address of the one device that should receive the traffic, on the router’s own subnet. With a router at 192.168.0.1, 192.168.0.100 works. Give that device a fixed address first, so the rule does not end up pointing at a different device.

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.

  1. 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/
  2. 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/

Author: Bulan Sarkar · Report an error

Numbers here are quoted from standards bodies and makers, or worked out from them. Nothing on this page was measured or tested by us.