Parental controls

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


Joined: 06 Sep 2011
Posts: 38

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: 1250
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

_________________
(12/24/13) mega - 23204
4x WRT54G-TM

(12/24/13) std - 23204
1x WHR-G300N

(04/15/13) nokaid - 14929
1x WRT54GL v1.1

(07/24/13) micro - 22118
1x WG602v3

Got OpenDNS?
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum 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