Firewall DNS script help?

Discussion in 'Tomato Firmware' started by miglink, Aug 17, 2010.

  1. miglink

    miglink Networkin' Nut Member

    I'm running v1.28 on a WRT54g v2, and I also user OpenDNS with the option "Intercept DNS Port" enabled in the Advanced->DHCP/DNS section. This is working very well and the network clients can't over-ride the OpenDNS settings in the router. :)

    I recently purchased a Moxi (Digital Video Recorder [like Tivo]) and this DVR needs to get to its own DNS for on-line scheduling to function. When "Intercept DNS" is unchecked the Moxi on-line scheduling functions. I am trying to create a Firewall script to allow only the Moxi (ip to get to it's public DNS (

    So, I put this line in the firewall section of the Admin->Scripts
    iptables -t nat -A PREROUTING -p udp -s --dport 53 -j DNAT --to-destination
    I rebooted the router, but the Moxi on-line schedule still will not function. :(

    Does anyone have any ideas how I can accomplish both "Intercepting DNS" for all network clients except the Moxi?
  2. rhester72

    rhester72 Network Guru Member

    Try changing "-A PREROUTING" to "-I PREROUTING 2".

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice