Posted: Mon Sep 12, 2022 8:22 Post subject: Force all clients to use my DNS server through wireguard
I’ve got wireguard setup and my clients can ping connect through it.
Clients which are on and off the wireguard PBR list can ping 11.0.0.1, the wireguard server.
When I point any client on the wireguard PBR list to use 11.0.0.1 as DNS server, I can resolve URLs.
When I point any client not on the wireguard PBR list to use 11.0.0.1 as DNS server, I cannot resolve URLs.
On 11.0.0.1, I have pihole setup to do DNS.
I would like all clients to use 11.0.0.1 as DNS server regardless if they are part of the wireguard PBR list.
Anybody know why this is not working?
PS: this requirement used to work before I reset and upgraded my DDWRT FW. It even worked on this DDWRT FW (v3.0-r49492 std (07/14/22)) prior to the complete reset i did.
Everything works now.
I’m using r7800 on DDWRT FW (v3.0-r49492 std (07/14/22).
I normally use 10.0.0.0, but I have an OVPN server running on my VPS on that subnet.
My VPS hosts wireguard on 11.0.0.1. Do I need to change something?
Yes, I was adding 11.0.0.1 into DNS 1, but it was not allowing dns resolution on clients that were not on the WG PBR list. My WG client config in post 1 was wrong, the changes I made in post 2 fixed everything.
I’ll upgrade to the latest DDWRT next.
And yes I’ve been reading all the PDFs and piecing it together.