Add script to enable Cloudflare DoH

This commit is contained in:
Pothi Kalimuthu 2022-12-20 11:52:43 +05:30
parent af2970c45b
commit a46efa6290
No known key found for this signature in database
GPG key ID: A9B229F7D8DD141F

View file

@ -0,0 +1,11 @@
# Verify the connection at https://1.1.1.1/help
/tool fetch url=https://curl.se/ca/cacert.pem
/certificate remove [find name~"cacert.pem"]
/certificate import file-name=cacert.pem passphrase=""
/ip dns set use-doh-server=https://1.1.1.1/dns-query verify-doh-cert=yes
# optional steps
/ip dns set servers=""
/ip dhcp-client set use-peer-dns=no [find]