Where would I place these rules? The /overlay/opt/scripts/firewall-start.sh doesn't let me write to it with Vi.Yep, I see this post
Rules look fine to me, and if it works, then you know it is fine
You probably could simplify them by detecting the port (53 for DNS).
Something like
This would redirect all DNS traffic from LAN to your PiHole, whatever the dns server.Code:iptables -t nat -A PREROUTING -i br0 -p tcp --dport 53 -s ! 192.168.1.2 -d ! 192.168.1.2 -j DNAT --to-destination 192.168.1.2 iptables -t nat -A PREROUTING -i br0 -p udp --dport 53 -s ! 192.168.1.2 -d ! 192.168.1.2 -j DNAT --to-destination 192.168.1.2