Community discussions

MikroTik App
 
mali2003
newbie
Topic Author
Posts: 26
Joined: Sat Oct 21, 2017 1:15 am

DNS requests through vpn tunnel

Wed Nov 27, 2019 4:32 pm

Hello.

I have an ikev2 tunnel to my vpn isp (mikrotik ikev2 client) like described here with option 2: https://wiki.mikrotik.com/wiki/IKEv2_EA ... d_RouterOS.
Every thing is fine, but my dns request to this specific dns names which are stored in firewall access list, still are requestes by local dns server from isp (dns leak) and not as expected through dns over vpn.

I think, there is only a firewall rule missing, but my attempts went awry.

Did anyone had this problem to and solved it?

thx and regards
 
User avatar
Anumrak
Forum Guru
Forum Guru
Posts: 1174
Joined: Fri Jul 28, 2017 2:53 pm

Re: DNS requests through vpn tunnel

Fri Nov 29, 2019 10:08 am

Hey. Did you add a static route to your dns server through the tunnel?
 
msatter
Forum Guru
Forum Guru
Posts: 2942
Joined: Tue Feb 18, 2014 12:56 am
Location: Netherlands / Nīderlande

Re: DNS requests through vpn tunnel

Fri Nov 29, 2019 10:44 am

Do have a manually entered IP-address entered in /IP DNS? Also under PPPoE remove the ticked box for use peer DNS.

Restart PPPoE and you should have now DNS from NordVPN. If you point the /IP DNS also to the addresses seen on the IKEv2 connections then the router also use NordVPN.
 
mali2003
newbie
Topic Author
Posts: 26
Joined: Sat Oct 21, 2017 1:15 am

Re: DNS requests through vpn tunnel

Fri Nov 29, 2019 9:23 pm

Hey. Did you add a static route to your dns server through the tunnel?
no thats not possible, cause of dynamic ip addresses! And there is no interface...
Do have a manually entered IP-address entered in /IP DNS? Also under PPPoE remove the ticked box for use peer DNS.

Restart PPPoE and you should have now DNS from NordVPN. If you point the /IP DNS also to the addresses seen on the IKEv2 connections then the router also use NordVPN.
i am not using pppoe!
dns servers from ike vpn appear dynamicaly on each dial in.
 
msatter
Forum Guru
Forum Guru
Posts: 2942
Joined: Tue Feb 18, 2014 12:56 am
Location: Netherlands / Nīderlande

Re: DNS requests through vpn tunnel

Fri Nov 29, 2019 10:00 pm

And what does the DHCP state as DNS server? It should be the router itself.
 
mali2003
newbie
Topic Author
Posts: 26
Joined: Sat Oct 21, 2017 1:15 am

Re: DNS requests through vpn tunnel

Fri Nov 29, 2019 10:25 pm

And what does the DHCP state as DNS server? It should be the router itself.
Yes
 
msatter
Forum Guru
Forum Guru
Posts: 2942
Joined: Tue Feb 18, 2014 12:56 am
Location: Netherlands / Nīderlande

Re: DNS requests through vpn tunnel

Fri Nov 29, 2019 10:43 pm

Then it is up to you to find out where that DNS IP address from your ISP is coming from.