Routeros¶
Allow remote winbox connection¶
/ip firewall filter add action=accept chain=input disabled=no dst-port=8291 protocol=tcp
Enabling HTTPS on MikroTik¶
- Create certificates
1 2 3 4 5 | |
- Enable
www-sslservice and disablewwwservice
1 2 3 | |
DNS Server¶

- Redirect all LAN DNS requests to the router
1 | |
- Forbid all Remove DNS request
1 2 3 4 | |
- Set static DNS record

Setting DoH¶
-
Download Root CAs (In ROS terminal)
1 2
/tool fetch url=https://curl.se/ca/cacert.pem /certificate import file-name=cacert.pem passphrase="" -
Remove existing DNS setting
- Add a static DNS entry for DoH hostname
- e.g.
cloudflare-dns.com -> 1.1.1.1
- e.g.
- Add
use DoH Serverand checkVerify DoH Certificate- e.g.
https://cloudflare-dns.com/dns-query
- e.g.
-
Checking DNS status: https://1.1.1.1/help
-
References
- MikroTik Tutorial: How to enable DNS over HTTPS (DoH): https://jcutrer.com/howto/networking/mikrotik/mikrotik-dns-over-https
- [教學] Mikrotik 如何使用 DNS over HTTPS ( DoH ): https://mahirmax.blogspot.com/2020/08/mikrotik-dns-over-https-doh.html?m=0
- HTTPS 什麼是根憑證 root certificate: https://matthung0807.blogspot.com/2021/03/https-what-is-root-certificate.html
Script & scheduler¶
1 | |
- Scheduler: System > Scheduler
- Use the script name in On Event section