Voxel
Part of the Furniture
I had to organize _selective_ Parental Control on my R7800 i.e.to use Parental Control only for two concrete child's gadgets forcing all the rest devices to use encrypted DNS requests. I.e. only for concrete MAC addresses. I do share this experience, maybe it would be useful for some people.
It is quite easy with my version of firmware. You have just to create your own script in the /opt/scripts directory, with a name firewall-start.sh.
Example: let's suppose that MAC of the first gadget is aa:bb:cc:dd:ee:ff and MAC of second gadget is 11:22:33:44:55:66. IP of e.g. OpenDNS Family is 208.67.222.123. Your script (example):
/opt/scripts/firewall-start.sh
That's all. Script shoud be executable. Only two devices are using OpenDNS Family DNS server now (after reboot of router). You can continue to use DNSCrypt or stubby for all the rest devices.
Voxel.
It is quite easy with my version of firmware. You have just to create your own script in the /opt/scripts directory, with a name firewall-start.sh.
Example: let's suppose that MAC of the first gadget is aa:bb:cc:dd:ee:ff and MAC of second gadget is 11:22:33:44:55:66. IP of e.g. OpenDNS Family is 208.67.222.123. Your script (example):
/opt/scripts/firewall-start.sh
Code:
#!/bin/sh
# Parental Control (forward DNS requests to OpenDNS Family DNS)
# Smartphone
iptables -t nat -I PREROUTING -i br0 -m mac --mac-source AA:BB:CC:DD:EE:FF -p udp --dport 53 -j DNAT --to 208.67.222.123
iptables -t nat -I PREROUTING -i br0 -m mac --mac-source AA:BB:CC:DD:EE:FF -p tcp --dport 53 -j DNAT --to 208.67.222.123
# Windows PC
iptables -t nat -I PREROUTING -i br0 -m mac --mac-source 11:22:33:44:55:66 -p udp --dport 53 -j DNAT --to 208.67.222.123
iptables -t nat -I PREROUTING -i br0 -m mac --mac-source 11:22:33:44:55:66 -p tcp --dport 53 -j DNAT --to 208.67.222.123
That's all. Script shoud be executable. Only two devices are using OpenDNS Family DNS server now (after reboot of router). You can continue to use DNSCrypt or stubby for all the rest devices.
Voxel.