Parental controls

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message




Joined: 01 Jan 1970
Posts:

PostPosted: Fri Feb 03, 2012 21:07    Post subject: Parental controls Reply with quote
Hello everyone. I have a question about parental controls in DD-WRT. I have followed this guide: http://www.dd-wrt.com/wiki/index.php/OpenDNS

Everything seems to be working but I am confused on the step where you intercept DNS ports. I want to use this command so that I can block only certain IP ranges.

Code:
iptables -t nat -I PREROUTING -i br0 -s 192.168.1.128/25 -p udp --dport 53 -j DNAT --to 208.67.222.222
iptables -t nat -I PREROUTING -i br0 -s 192.168.1.128/25 -p tcp --dport 53 -j DNAT --to 208.67.222.222


Basically I only have 2 computers on my network that I would not like to intercept DNS ports. They have the IPs of 192.168.1.101 and 192.168.1.102. I am confused on how to set this up with the commands. What would I type into the "208.67.222.222" spot?

Thank you for any help!
Sponsor
Luniz2k1
DD-WRT Guru


Joined: 04 Oct 2007
Posts: 1258
Location: Ohio USA

PostPosted: Sat Feb 04, 2012 2:54    Post subject: Reply with quote
FYI 208.67.222.222 is not the part that you would be changing. That is the OpenDNS DNS Server IP address.

You would be modifying the "192.168.1.128/25". You could just do:
Code:
iptables -t nat -I PREROUTING -i br0 -s 192.168.1.101 -p udp --dport 53 -j DNAT --to 208.67.222.222
iptables -t nat -I PREROUTING -i br0 -s 192.168.1.101 -p tcp --dport 53 -j DNAT --to 208.67.222.222
iptables -t nat -I PREROUTING -i br0 -s 192.168.1.102 -p udp --dport 53 -j DNAT --to 208.67.222.222
iptables -t nat -I PREROUTING -i br0 -s 192.168.1.102 -p tcp --dport 53 -j DNAT --to 208.67.222.222

_________________
(05/02/17) std - 31924
Linksys WRT400N
Buffalo WHR-G300N

Got OpenDNS?
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum