OPNsense Forum

English Forums => 25.7, 25.10 Series => Topic started by: user89 on December 22, 2025, 01:11:35 PM

Title: WireGuard + AdGuard Home plugin: DNS works but no Internet if DNS is forced to
Post by: user89 on December 22, 2025, 01:11:35 PM
Hi everyone,

I'm looking for help with an OPNsense setup that mostly works, but breaks when I enforce DNS filtering on a VLAN that uses policy routing through WireGuard.

Environment

Firewall / Router: OPNsense 25.7.10

VPN: WireGuard client to Mullvad

DNS: AdGuard Home official OPNsense plugin

WireGuard: running directly on the OPNsense router

Clients: smartphones, PCs, IoT devices


Network layout




        Interface: vlan_unifi_wifi_VPN

        Gateway: 192.168.41.1





Gateway configuration

(System → Routing → Gateways)

WAN gateway

Interface: WAN (DHCP)

Default gateway: Yes

Used for normal LAN traffic



WireGuard (Mullvad) gateway

Interface: WireGuard

Name: Mullvad_WG_GW

Default gateway: No

Monitor IP: configured (public IP / 1.1.1.1)

Status: Online

Used only via policy routing in firewall rules



Goal (important)

I'm intentionally using this design because:



I want:




Using AdGuard is not optional in this VLAN.



What works

WireGuard itself works:



Problem


👉 If I disable the DNS firewall rules on vlan_unifi_wifi_VPN, Internet works immediately




Firewall rules – vlan_unifi_wifi_VPN

(order top → bottom)

1) Allow DNS to AdGuard

Action: PASS

Source: 192.168.41.0/24

Destination: 192.168.100.1

Port: 53 TCP/UDP

Gateway: default

2) Internet via Mullvad (policy routing)

Action: PASS

Source: alias VPN_Machines

includes 192.168.41.100–200

Destination: !RFC1918

Gateway: Mullvad_WG_GW

3) Block external DNS



Destination: any




Firewall rules – LAN

Allow LAN net → any
(no restrictions during troubleshooting)


Additional checks




Questions






Screenshots available for:

gateways

VLAN firewall rules

LAN firewall rules

outbound NAT

WireGuard

AdGuard Home

Thanks in advance for any insight.
Title: Re: WireGuard + AdGuard Home plugin: DNS works but no Internet if DNS is forced to
Post by: user89 on December 22, 2025, 01:21:00 PM
I could see now that many people have problems with DNS after upgrading to 25.7.10, but with the version before i had have the some issue also.

Other interfaces are sending queries to adguardHome and works fine. The only issue is when i connect under wireguard(Mullvad)