Cloudflare Gateway DNS over HTTPS on MikroTik Rout...
# general-help
r
Does anyone ever setup a Cloudflare Zero Trust's DNS over HTTPS on MikroTik RouterOS? I tried to set it up by following this (https://jcutrer.com/howto/networking/mikrotik/mikrotik-dns-over-https) tutorial, but getting error log "certificate not yet valid (6)". Any idea how to fix this?
c
I'd check the time on your router to make sure it is current
r
It's already synced
When I tried to uncheck the Verify DoH Certificate option, it gave me 303 error.
r
I've read that, and already imported both root cacert.pem and Cloudflare_CA.pem from the docs.
Tried to use https://one.one.one.one/dns-query and it does work fine
c
Those are only for origin certificates I'm pretty sure
Oh looks like the cert CA might have changed. Try
Copy code
/tool fetch url=https://cacerts.digicert.com/DigiCertGlobalRootCA.crt.pem
/certificate import file-name=DigiCertGlobalRootCA.crt.pem passphrase=""
https://forum.mikrotik.com/viewtopic.php?f=2&t=160243#p983996
r
Yes I tried to import that one from Digicert too. But the Zero Trust DNS still doesn't work
c
What version of RouterOS are you on?
r
Wait a sec, I'm logging in again
6.47.8
Ok now it's no longer giving "certificate not yet valid (6)" error, but "DoH server response not OK: 303: "
So, any idea what might wrong?
c
I'm trying to setup a RouterOS VM to debug more
I was able to get it to work with this: > /tool fetch url=https://curl.se/ca/cacert.pem > /certificate import file-name=cacert.pem
r
Are you using the Cloudflare Sero Trust Gateway DNS?
I'm still getting error 303 on it with Cloudflare CA.pem, and getting SSL handshake failed if I remove the Cloudflare CA.pem
c
Yup using a Zero Trust Gateway DNS endpoint

https://cdn.discordapp.com/attachments/1110743067977334814/1111406323653955644/firefox_3Z3VnOlzfY.png

https://cdn.discordapp.com/attachments/1110743067977334814/1111406629741678682/WindowsTerminal_SLz01po8Si.png

https://cdn.discordapp.com/attachments/1110743067977334814/1111406630026887379/firefox_ubd9w2UI6q.png

a
why are you still on routerOS v6.x ?
also which model is that
Oh nvm it's a VM
r
Hmm, weird, why doesn't it work on my MikroTik. Still giving 303 error last time I tried.
c
Not sure. Are you able to get any DoH provider to work?
r
Yes, as I said, one.one.one.one works fine
c
Maybe try upgrading to 7? Otherwise I don't know
Could also try posting on the MikroTik forum to see why it works on one and not another
8 Views