How to prevent dns leak in openwrt

where is the custom firewall tab ? i want to prevent dns leak by using the below command. Now please someone help me how to do this ?

'iptables -t nat -A PREROUTING -i br-lan -p udp --dport 53 -j DNAT --to
iptables -t nat -A PREROUTING -i br-lan -p tcp --dport 53 -j DNAT --to`

Maybe your router is already using nftables and there is no longer iptables

Anyway here is how to set this up:

1 Like

is it possible to specify the dns server port with the ip address because my adguardhome dns server is running on port 12000 and i want to redirect all dns queries from my friends router to mine

yes, dnsmasq supports upstream DNS server(s) on non standard ports

how to specify the port ? I am noob please help me out

As IP#port

I am wanting to use nftables instead of dnsmasq how can i use nft-tables to do that

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.