mirror of
https://github.com/pothi/mikrotik-scripts.git
synced 2025-07-10 14:44:31 +02:00
Update DoH scripts
This commit is contained in:
parent
75bec31c42
commit
7ab9c9d776
2 changed files with 29 additions and 4 deletions
|
@ -1,11 +1,19 @@
|
|||
# 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=""
|
||||
# disable doh (temporarily)
|
||||
|
||||
/ip dns set verify-doh-cert=no
|
||||
|
||||
/tool fetch url=https://cacerts.digicert.com/DigiCertGlobalRootCA.crt.pem
|
||||
/certificate remove [find]
|
||||
/certificate import file-name=DigiCertGlobalRootCA.crt.pem passphrase=""
|
||||
/file remove DigiCertGlobalRootCA.crt.pem
|
||||
|
||||
/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]
|
||||
|
||||
# flush existing cache
|
||||
/ip dns cache flush
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue