What's new

Redirect all DNS queries to go through the router - Tutorial

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

quinniedid

New Around Here
Help!!! Redirect all DNS queries to go through the router

:confused:I have never done very much programming on a router and would like some help please. I would like some help to setup a user script to force dns that I have set on the WAN interface on my merlin Asus rt-ac66r router. I have enabled JFFS partition but have no clue how to proceed to plant this into the router.:confused:
iptables -I PREROUTING -t nat -p udp -s `nvram get lan_ipaddr`/`nvram get lan_netmask` ! -d `nvram get lan_ipaddr`/`nvram get lan_netmask` --dport 53 -j DNAT --to-destination `nvram get lan_ipaddr`
 
Last edited:
I have looked at the wiki and it says that I need to create a nat-start script. I don't know how to script so I was hoping someone could help me out with this. I also know that I need to telnet or SSH into the router but don't know how to set that up exactly. Any assistance would be great. Thank You.
 
I have looked at the wiki and it says that I need to create a nat-start script. I don't know how to script so I was hoping someone could help me out with this. I also know that I need to telnet or SSH into the router but don't know how to set that up exactly. Any assistance would be great. Thank You.

I'm so sorry. I've been logging in here almost daily yet your last post did not pop up as new (so I didn't know you replied).

I've not messed with scripts yet (tho I've been reading a lot and kinda half-way know where to look. Does this post help you out at all?:

http://forums.smallnetbuilder.com/showpost.php?p=79716&postcount=72
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top