Page 1 of 1

VPN dns requests through vpn tunnel

Posted: Fri Jan 26, 2024 6:34 pm
by mali2003
Hello.

I am looking for a solution to route only these dns request through a vpn, wich addresses are stored in an addresslist.
All the others should be route to default local dns server.

which firewall rule would fit?

regards

Re: VPN dns requests through vpn tunnel

Posted: Sat Jan 27, 2024 4:06 pm
by mali2003
Thanks Elbert for your answer.
Unfortuanetly this does not solve, what i was looking for.

My Situation:
Firewall-Adresslist: Name "VPN" contains www.dnsleak.com

IP route and rule is to route these entries of addreelist "VPN" through my VPN -> works!
But the dns reqeusts for this entries are going to my local dns server, my router.
I just wanna let them go to a dns server on VPN site.

How am i able to identify only these dns requests? that is my problem.
If i could identify them, so i can use your firewall rules to redirect them through vpn.