A
A
Artem Kashkanov2015-11-14 18:02:22
Domain Name System
Artem Kashkanov, 2015-11-14 18:02:22

How to turn DNS traffic through VPN on mikrotik?

On Mikrotik, a VPN client has been raised and some traffic is wrapped to an external VPN server.
However, the provider replaces DNS requests and it is required to wrap all DNS requests through the tunnel, among other things.
how to do it at the router level?
If you mark packets by IP - 8.8.8.8 and 8.8.4.4, or by port - 53/TCP + 53 / UDP route through vpn, then such a trick works stably if you specify these addresses in the connection settings on the computer - what is on the computer with the IP router in dns list that dns traffic is not redirected on the router itself

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
Ruslan Fedoseev, 2015-11-14
@martin74ua

turn on the dns server on Mikrotik, specify 8.8.8.8 with the forwarder, route traffic to 8.8.8.8 to the vpn tunnel.
Well, on clients, use a dns server on Mikrotik.

P
Puma Thailand, 2015-11-14
@opium

Mark packets on port 53 and not IPs

D
Diman89, 2015-11-14
@Diman89

I will try to post the article as soon as possible, I hope you wait

S
Sergey, 2015-12-21
@goodcat32

Maybe I'm wrong, but why not just distribute DNS 1/2 8.8.8.8/8.8.4.4 to clients and route these /32 addresses to the vpn tunnel, and at the other end of the NAT tunnel, Default GW is all right ..

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question