Created
July 31, 2023 12:31
-
-
Save Imprtat/3015e7c2c440341f77047352949941f1 to your computer and use it in GitHub Desktop.
RouterOS Cloudflare DoH
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/tool fetch url=https://cacerts.digicert.com/DigiCertGlobalRootCA.crt.pem | |
/certificate import file-name=DigiCertGlobalRootCA.crt.pem passphrase=”” | |
/ip dns set use-doh-server=https://cloudflare-dns.com/dns-query verify-doh-cert=yes | |
/ip dns static add address=1.1.1.1 name=cloudflare-dns.com | |
/ip dns set servers=”” | |
/ip firewall nat add action=redirect chain=dstnat comment=”redirect dns-query to local DNS” dst-port=53 in-interface-list=!WAN protocol=udp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment