I have a dlink DIR 600L, and now I want to configure my router firewall to block outgoing packets to Google DNS Servers ( and for TCP/UDP and port 53 (DNS), this is so that I can use Chromecast to watch Netflix outside US.

You only need to put two rules on your router firewall to block outgoing packets to Google DNS Servers ( and for TCP/UDP and port 53 (DNS). This way, Chromecast will get a timeout trying to reach Google DNS Servers and will fallback to your router defined DNS servers and your Netflix or Hulu will work again!

In other words, this is what I aim to do:

What I need is a router capable of filtering outgoing connections, and every router I have seen can do this as part of the built-in firewall without need of flashing an alternate firmware that supports iptables (such as openwrt).

Please note that I am not looking for solution such as routing the DNS request to a bogus gateway, that solution requires the knowledge of the IP address ( 192.168.x.x), which for the sake of this question, is unknowable.

Any idea how I can do this? If dlink router can't handle this, please suggest a consumer grade router( such as tp link, ASUS, Netgear etc, but no dd-wrt or tomato firmware router) that can do this. Please note that I am not looking at the iptables solution.


  1. You can find a dlink emulator here. Username: Admin, password: blank
  • Routing the DNS request to a bogus gateway doesn't require knowledge of the IP address. Just route it to, which is always a bogus gateway. – David Schwartz Aug 24 '14 at 20:43

Not sure if you'll find a solution to do that on your consumer grade router. Essentially you need a server to sit in the middle of your connection, or proxy to sit in the middle and intercept all traffic going to the Google DNS servers and rebuild the packets to redirect to an alternate destination.

I'm sure you looked into the windows HOSTS file, and realized that it will only supersede DNS requests, which is not going to help you here.

Looks like you'll need to sit a Linux or Server 2003+ machine between your server and the router. Take a look at IPv4 to IPv4 Interface PortProxying.


  • Couldn't router handle this piece of function? FYI, I am keen on doing this on a router, not on another machine – Graviton Apr 9 '14 at 5:55
  • @Graviton theoretically yes. but as beeks mentioned in this answer, the ability to do so probably isn't implemented in a consumer router. you'd need OpenWRT or something. – strugee Apr 9 '14 at 7:07
  • That's why he said consumer-grade. This is easily accomplished using OpenWrt (or similar) as long as you have direct access to iptables. – Daniel B Apr 9 '14 at 7:07

The D-Link DIR-600 User Manual that you linked to, describes the router's firewall on page 39.

The manual page is too brief to be sure, but you should be able to set up a firewall rule that will block these IP addresses.

  • Would you like to elaborate more? There is a dlink router emulator here, you might want to try further. Username: admin, no password – Graviton Apr 9 '14 at 7:30
  • Your emulator is for the 655, the one for the 600 is here. In addition, the manual you quote does not agree with the emulator - the firewall in the emulator (under Advanced/Firewall settings) is without rules and seems pretty basic. If that's also the case on your router, you might be able to use Advanced/Access control, check Enable access control, then use the Add policy button to add some filtering. Unfortunately this is disabled in the emulator so I can't see what it does exactly. – harrymc Apr 9 '14 at 8:51
  • are you sure? It seems to me that the Add Policy is for controlling website, not DNS, are you sure this is what I need? – Graviton Apr 10 '14 at 4:36
  • Parental control might work - the manual says IP addresses are not supported but your video says they are (but no ports), but it's easy for you to check. It's hard to know, when the manual is incomplete and incorrect and when many functions are disabled in the emulator. That router is low-grade and is also on the list of Known incompatible devices of DD-WRT. My suspicion is that you need a better router (after seeing that manual I wouldn't recommend D-Link). – harrymc Apr 10 '14 at 5:53
  • you have anything to recommend? Anything that I can get out of box ( not like ddwrt which needs me to flash my modem) – Graviton Apr 10 '14 at 5:56

Sounds like you just want to block outgoing UDP to and, which you should be able to do fine if your system DNS is not set to that (guess Chromecast insists on using Google's DNS servers first? Did not know that)

You probably want to block TCP as well, I can't remember but Google might take TCP replies on these IPs as well.

Of the manual you posted, page 39 is what you need.

  • Enable SPI
  • Don't worry about DMZ
  • You'll need to make 4 rules, set to Deny, one for protocol UDP, IP address, UDP, TCP and TCP (If it lets you specify "Both" for protocol, then that means TCP and UDP, and you only need two)
  • Port range should be 53 only, or 53 to 53 if it insists on making you specify two numbers
  • Save settings and restart router
  • Verify by opening a cmd.exe on a system behind the router and type nslookup google.com - it should fail.
  • I have a question, the IP address rule you mention in step 3 above, should be "Source" IP address, or "Dest" IP address? What should I fill in for both of the "Source" and "Dest"? – Graviton Apr 11 '14 at 7:18
  • 1
    Source should be ANY or and Destination should be,, etc. – LawrenceC Apr 11 '14 at 12:46
  • I tried... but it didn't work, simply because the dlink router doesn't allow me to enter ANY or and if I enter the IP range for my router, although the router allows me a pass, but the firewall can't block the DNS query as expected. – Graviton Apr 14 '14 at 3:09

The only two options that may work with this router are: Advanced / Routing - Which you said you don't want to do.

Or Advanced / Inbound Filtering if you can figure out what IP address Google will return information to your chromecast on. It would likely be the same, and, but there probably is some load balancing magic goin on there.

So that leave Advanced / Router. Can you route traffic to a LAN ip address with that router? Try routing it to a non existent host on your local subnet and your next hop would be something like if you are using factory settings.

Otherwise, you need to invest in a different router that is more capable.

I would perhaps recommend the Buffalo AirStation N150. I have had reasonable success with them in the past, and I have been able to load dd-wrt/openwrt when I have been so inclined.

Refer to page 56, in its manual, second link below. Operations should be drop or ignore, direction lan-->internet, source, destination, protocol all.

http://www.buffalotech.com/products/wireless/single-band-routers/airstation-n150-wireless-router http://cdn.cloudfiles.mosso.com/c85091/WCR-GN-Manual.pdf

  • David, the problem with routing traffic to a LAN ip address is I would need to know the boundary of the LAN address ( is it 192.168.0.x or 192.168.8.x). For the sake of argument, I assume that this is not possible because I want to ask my grandma to install this router and she doesn't know how to read her LAN ip address – Graviton Apr 12 '14 at 2:28
  • The only other option is to block incoming traffic from and That DLink router does not allow your setup custom firewall rules otherwise. It sucks, but it is the truth. As for having technically naive users read off, or find out basic technical information, I have done this many times by guiding them to use start-->run-->cmd-->ipconfig; the lan ip address is also available from the router, setup-->network settings. – David Apr 12 '14 at 13:17
  • David, do you have another consumer grade router in mind that allows me to do this? – Graviton Apr 14 '14 at 1:34

You don't need to know any specific IP address in the local network, to route these addresses to a bogus gateway.

From Wikipedia:

In the Internet Protocol version 4 the address is a non-routable meta-address used to designate an invalid, unknown or non applicable target.

A typical implementation used in the field is to route the destination hosts (, towards

This is called a Null route.

  • The IP address has many uses and is quite dangerous to use. Its most frequent use is as the default route which actually specifies all networks. – harrymc Apr 14 '14 at 21:23
  • You are confusing between routing to (null route) and routing The default route is noted as, which has the meaning of all possible IP addresses. I have updated my answer with the applicable excerpt from the article regarding you linked. – Squeezy Apr 15 '14 at 20:16
  • I know of at least one device that sets itself up as until it gets a better IP via DHCP. I still think that this specific IP has too many functions to be used safely. Your advice has a good chance of working, but may also have side-effects under the wrong conditions or software. Please note that I didn't undervote. – harrymc Apr 15 '14 at 21:02
  • There will be no packets sent to though. DHCP protocol uses it as a source address to specify the fact that there is no IP address assigned yet. – Squeezy Apr 15 '14 at 21:13

A Simple way to block any dns address is to add it to the WEBSITE FILTER on the D-Link Router I use it to block some IP blocks from my online gaming.

  • An easy way indeed.... but that does also block non port 53 requests. So no more using google as search engine etc etc. – Hennes Jul 30 '16 at 9:48

As beeks said, it's not possible with your dlink official software and maybe you need a Linux server to redirect the traffic.

But I think you can upgrade your router using dd-wrt. It's an alternative firmware for your router, offering a lot more possibilities. Maybe it can help you. The link to the wiki for your router is: http://www.dd-wrt.com/wiki/index.php/DIR-600

  • Any OS server as an intermediate router with a firewall should do. Not just linux. Fork over $100 for windows and that will work just as well. (Sorry, I am a fan of Linux/BSDs, but they are not an essential part of this solution. If you have any spare system with two NICs you can trivially do this. I guess many SU visitors have that. OP's granny probabbly does not. – Hennes Jul 30 '16 at 9:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.