📡 ISP Lite & Premium
...
ISP and WISP Setup Guide
Cloud and local DNS cache

Mikrotik for ISP: NAT rules to DNS Proxy

0min

If you've installed the DNS Proxy machine, you need to create NAT rules on Mikrotik to automatically redirect all DNS requests (port 53 TCP and UDP) to DNS Proxy IP, except those that come from DNS Proxy itself. Copy the following commands and replace <DNS_Proxy_IP> with the DNS Proxy IP. Then paste it into your Mikrotik terminal: /ip firewall nat add action=dst-nat src-address!=<DNS_Proxy_IP> comment=internetprotection chain=dstnat dst-port=53 protocol=udp to-addresses=<DNS_Proxy_IP> to-ports=53 add action=dst-nat src-address!=<DNS_Proxy_IP> chain=dstnat dst-port=53 protocol=tcp to-addresses=<DNS_Proxy_IP> to-ports=53 /ip firewall nat move [/ip firewall nat find comment=internetprotection] 0

Other ways to ask: » The operation of the general NAT rules for Mikrotik. » The general NAT rules for Mikrotik. How to manage them.