I am attempting to enforce dns routing through Adguard. I am using OneMarcFifty's video tutorial for help - https://www.youtube.com/watch?v=Q-xDtCxnD0Q
However, this tutorial was made for a previous version of openwrt when the "Custom Rules" firewall tab was still in use.
I wish to implement the equivalent of this rule:
iptables -t nat -A PREROUTING -p tcp --dport 53 -m addrtype "!" --src-type LOCAL -j DNAT --to 127.0.0.1:57
iptables -t nat -A PREROUTING -p udp --dport 53 -m addrtype "!" --src-type LOCAL -j DNAT --to 127.0.0.1:57
Could anyone advise on this?
https://openwrt.org/docs/guide-user/services/dns/adguard-home#dns_interception - brief rundown is there.
you will require the updated rules as per nft tables if you are using the new builds.
Note this only blocks/redirects regular DNS. you will require extra rules for DOH etc.
:edit: you may also want to read the thread I made about manual / opkg installs of AGH.