Page 1 of 1

resolving dns via VPN?

Posted: Sun Aug 24, 2014 12:34 pm
by chrisintaipei
Hello,

Can I somehow force my RB2011's DNS server to resolve IP via VPN?

I've got VPN running, and have forced all traffic to 8.8.8.8 via VPN, but when I checked using the built-in traceroute, it is not going via VPN.

It seems /ip route and mangle only works for devices connected to my RB2011, and RB2011 itself won't be affected by this setting

Re: resolving dns via VPN?

Posted: Sun Aug 24, 2014 7:19 pm
by c0d3rSh3ll
Add a route for 8.8.8.8 through vpn with gateway the vpn interface.

Re: resolving dns via VPN?

Posted: Sun Aug 24, 2014 8:12 pm
by chrisintaipei
that's what i did, and actually after seeing your reply confirming the method, i had a second look at it.

well, i made a mistake of thinking that i had mangled it with routing mark (which i forgot to do...) that's why it wasn't routing it as expected.

thanks for the help~~