Issues with enabled Wireguard Client connection and AdGuard

Hi,

I have a GL-BE9300 router.
I have the issue, that if I connect to my parents network with Wireguard, I can’t setup the AdGuard DNS anymore (see last picture)
If I disable the Wireguard connection, AdGuard has no issues with the DNS…

Here is my setup:

Am I missing something?

Hi,

Apologies for the late reply.

By default, AdGuard Home sends DNS queries through the VPN when a tunnel is active. In such cases, if the VPN tunnel cannot reach the upstream DNS servers configured in AdGuard Home, DNS resolution will fail.

Please try SSH-ing into the router and run the following commands to force AdGuard Home to send DNS queries through the WAN only:

sed -i 's/explict_vpn/nonevpn/g' /etc/init.d/adguardhome
/etc/init.d/adguardhome restart

# To restore:
cp -r /rom/etc/init.d/adguardhome /etc/init.d/adguardhome
/etc/init.d/adguardhome restart
1 Like

Thx, that helped!

1 Like

Will, does this apply to the Flint 2 and the reason why I was locked out when setting up Surfshark VPN? I already had Adguard home active when attempting this, but lost access. I can’t believe we lose Adguard access to be able to enable VPN at router level. We will still want to block things regardless. Please can you clarify? I deleted my new post on this since finding this one.

Hi

When using a commercial VPN such as Surfshark, it typically does not affect the normal operation of AdGuard Home or router, as these services generally allow access to public DNS servers.

Issues usually arise only in cases like the OP’s, where a self-hosted setup with restricted access is used.