But, my intention is to redirect piholes traffic to Mikrotik, where in pihole mikrotik will be upstream dns for pihole.So, mikrotik can resolve using DoH. And then pihole is able to use its own DNS upstream servers to resolve. Seems, like my router is sometimes able to send queries to the pihole. So, is there is a way that I can use that my mikrotik router as a dns server with DoH that I was using before but only ads being removed through the pihole After some search I found this post and implemented this: /ip firewall natĪdd action=dst-nat chain=dstnat comment=dns_redirect dst-port=53 in-interface-list=LAN protocol=udp src-address=!192.168.88.5 to-addresses=192.168.88.5 to-ports=53Īdd action=masquerade chain=srcnat comment=dns_redirect dst-address=192.168.88.5 dst-port=53 protocol=udp src-address=192.168.88.0/24Īdd action=dst-nat chain=dstnat comment=dns_redirect dst-port=53 in-interface-list=LAN protocol=tcp src-address=!192.168.88.5 to-addresses=192.168.88.5 to-ports=53Īdd action=masquerade chain=srcnat comment=dns_redirect dst-address=192.168.88.5 dst-port=53 protocol=tcp src-address=192.168.88.0/24 So, to my understanding, my Mikrotik is doing that forwarding with DoH. Then if I use unbound as resolver, its fails to resolve some pages and if I use unbound as a forwarder it works. My previous attempt of blocking ads with scripts in mikrotik doesn't go well. So, I recently bought a raspberry pi for the purpose of blocking ads. I have been using my mikrotik with DoH since last year without any issues.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |