Exposed DNS service – (Risk of DNS escalation attack)
If you have been directed to this page, it means that we have detected that your MikroTik router’s DNS server is open to the Internet, and your MikroTik router can be used in a DNS amplification attack.
Our systems automatically disable your Enforcer when this issue is detected, and you are requested to please remedy the issue, before Enabling the Enforcer again.
To remedy this issue one simply needs to block the Internet from accessing the MikroTik router’s DNS server service, using the firewall on said MikroTik router.
Below, Is an example of a firewall rule that you need to apply to prevent the internet from accessing your MikroTik DNS server.
Script, if ether1 is your Internet facing port:
Via Winbox, if ether1 is your Internet facing port:
Place the above rules above all the other filter rules. Be sure to change ether1 to your Internet facing interface.
We also recommend that you look at the lvcloud DNS intercept under Firewall, NAT, and ensure it only redirects DNS requests from your network, such as LAN interface list, or local network ranges, to the DNS server.
Here is the Link
to check Open Resolver test.
Your Enforcer profile has been disabled in the meantime. Once you have resolved the situation, please feel free to reactivate your Enforcer via the LucidView MikroTik portal. (Scroll down for tutorial).
Testing whether your DNS is visible to the Internet
Get your public IP address. Either by performing a lookup – see image on the right.
by looking at the IP address on RouterOS.
Perform a host lookup from a location outside of the network to your RouterOS IP.
host <domain> <public IP>
server <public IP>
If there is a valid host lookup then the Mikrotik DNS is visible to the Internet. In the example provided it is clear the DNS port is open to the Internet. There should be no result for DNS.
Example of DNS ports not responding from the Internet.
Once you have confirmed that the DNS is NOT visible to the Internet you can safely re-enable the Enforcer. See instructions below:
Back to FAQs
Re-activating your Enforcer profile
- Logging into your MikroTik Enforcer Profile
- Locate the Enforcer Profile in question
- Click ‘Edit Config’ of Profile
- In the footer of page, click “Enable Device”, and confirm the action.
- All services will be restored to the Enforcer