What's new

Pi-Hole + Asus WRT Wireguard

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

GuardYaGrill

New Around Here
Hey y'all

I got a Pi-Hole setup on my network catching all LAN/WAN DNS queries however, my issue is that it's not catching Wireguard queries from my Asus router. I tried setting up PiVPN on my RPi however, for this to work my RPi must not be routed through a VPN tunnel and must have the WAN IP of my router (something i cannnot do) and ideally i would rather my Router handle the wireguard tunnel.

Any ideas are much appreciated!
 
Set Pi-Hole as the DNS Server for WireGuard Clients

You can configure WireGuard on your ASUS router to explicitly use your Pi-Hole as the DNS server for clients connected via the VPN. This way, all the VPN traffic will be routed to Pi-Hole for DNS resolution, even if it's going through the WireGuard tunnel.

Configure Split DNS on WireGuard Clients

If your router supports it, you can configure split DNS, where the WireGuard clients can have different DNS settings for LAN and WAN traffic. Ensure that DNS requests from LAN traffic go through Pi-Hole while using another DNS for non-LAN queries if necessary.


Route VPN DNS Queries Through Pi-Hole (Force DNS)
Some routers (and ASUS Merlin builds) support forcing specific DNS settings for clients. You can try enforcing Pi-Hole as the DNS resolver for all VPN traffic by setting up DNSMasq or similar DNS forwarding on your router.

NAT Rule to Redirect DNS Traffic
You can use a firewall rule on the ASUS router to ensure that all DNS requests, including those from WireGuard, are redirected to Pi-Hole. A simple NAT rule would forward all outbound DNS requests to Pi-Hole.

ChatGPT results :)
Hey y'all

I got a Pi-Hole setup on my network catching all LAN/WAN DNS queries however, my issue is that it's not catching Wireguard queries from my Asus router. I tried setting up PiVPN on my RPi however, for this to work my RPi must not be routed through a VPN tunnel and must have the WAN IP of my router (something i cannnot do) and ideally i would rather my Router handle the wireguard tunnel.

Any ideas are much appreciated!
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top