BGP and DNS server

Configured BGP to wrap traffic into a VPN tunnel. “Filters” is used. Everything works, everything is good. Behind the router there is a DNS server. Accordingly, DNS does not work correctly, since some DNS requests are sent incorrectly due to BGP. How to make sure that everything that comes to port 53 leaves the same way it came, and not through the route that BGP organizes. Sorry, English is not my native language.

add to top in firewall

/ip firewall filter
add action=jump chain=forward comment=“Forward DNS_test” dst-port=53 jump-target=Forward_DNS_test protocol=udp
add action=return chain=Forward_DNS_test out-interface=e1_WAN # ← your correct interface
add action=return chain=Forward_DNS_test log=yes # ← log rest
MT1.png