Hi all,
Apologies if this is straight-forward; I'm not very technically savvy in this area, but this forum seemed like the right place to post a question about it.
I use a DNS filter on my home network router (Asus RT-N66U, running Merlin 380.70). I'm want to prevent users from using 3rd party DNS servers (like Google's), so I'm trying to follow this article:
I've tried implementing this via the services-start user script and the nat-start user script, but neither seem to work (if I set my DNS to Google's I can still bypass the DNS filter).
Here's what I've got in each script, both of which are stored in /jffs/scripts.
services-start
nat-start
The touch commands run, but the iptables commands don't seem to do what I'd like them to (force all users to use DNS filter DNS servers).
I've enabled JFFS custom scripts and configs on my router's page, and I've given rights to my scripts via
Thanks in advance for any help or suggestions!
Apologies if this is straight-forward; I'm not very technically savvy in this area, but this forum seemed like the right place to post a question about it.
I use a DNS filter on my home network router (Asus RT-N66U, running Merlin 380.70). I'm want to prevent users from using 3rd party DNS servers (like Google's), so I'm trying to follow this article:
I've tried implementing this via the services-start user script and the nat-start user script, but neither seem to work (if I set my DNS to Google's I can still bypass the DNS filter).
Here's what I've got in each script, both of which are stored in /jffs/scripts.
services-start
Bash:
#!/bin/sh
touch /tmp/000services-start
iptables -t nat -A PREROUTING -i br0 -p udp --dport 53 -j DNAT --to 103.247.36.36
iptables -t nat -A PREROUTING -i br0 -p tcp --dport 53 -j DNAT --to 103.247.36.36
nat-start
Bash:
#!/bin/sh
touch /tmp/000nat-start
iptables -t nat -A OUTPUT -p udp --dport 53 -j DNAT --to 103.247.36.36:53
iptables -t nat -A OUTPUT -p tcp --dport 53 -j DNAT --to 103.247.37.37:53
touch /tmp/000nat-stop
The touch commands run, but the iptables commands don't seem to do what I'd like them to (force all users to use DNS filter DNS servers).
I've enabled JFFS custom scripts and configs on my router's page, and I've given rights to my scripts via
Bash:
chmod a+rx /jffs/scripts/*
Thanks in advance for any help or suggestions!