Hi,
I just installed asuswrt-merlin (3.0.0.4.374.35_2) onto my RT-N66U router. I have it setup so that it uses OpenDNS. However, I noticed that if the DNS settings are changed on the PC to something like 8.8.8.8 then it bypasses using OpenDNS.
To address this, I wanted to install a script that would override this and would always use the DNS servers (i.e. OpenDNS) I have configured within the router.
I named the script "nat-start" and uploaded into "/jffs/scripts"
However, it still seems that the adapter DNS settings are working and I can bypass the router's OpenDNS servers.
What am I doing wrong?
Thank you!
I just installed asuswrt-merlin (3.0.0.4.374.35_2) onto my RT-N66U router. I have it setup so that it uses OpenDNS. However, I noticed that if the DNS settings are changed on the PC to something like 8.8.8.8 then it bypasses using OpenDNS.
To address this, I wanted to install a script that would override this and would always use the DNS servers (i.e. OpenDNS) I have configured within the router.
I named the script "nat-start" and uploaded into "/jffs/scripts"
Code:
#!/bin/sh
iptables -I FORWARD 7 -p udp -o `nvram get wan0_ifname` -d 208.67.222.222 --dport 53 -j ACCEPT
iptables -I FORWARD 8 -p udp -o `nvram get wan0_ifname` -d 208.67.220.220 --dport 53 -j ACCEPT
iptables -I FORWARD 9 -p udp -o `nvram get wan0_ifname` --dport 53 -j DROP
However, it still seems that the adapter DNS settings are working and I can bypass the router's OpenDNS servers.
What am I doing wrong?
Thank you!