OPNsense Forum

Archive => 21.7 Legacy Series => Topic started by: crt333 on November 01, 2021, 06:43:42 pm

Title: unbound: outgoing network interfaces
Post by: crt333 on November 01, 2021, 06:43:42 pm
I'm running 21.7.4 on a Quotom box, its been running great for years. Besides WAN I have two WG tuinnels set up, and I always had unbound configured to use these WG tunnels instead of WAN for DoT lookups. That worked until this upgrade, if WAN isn't selected unbound doesn't work. I'd prefer my DNS lookups to go out over the WG rather than through my ISP, any suggestions?

If I could get AdGuard to query over WG I wouldn't need unbound, but this has been my solution until now, with adguard asking unound on 5353.
Title: Re: unbound: outgoing network interfaces
Post by: Greelan on November 01, 2021, 09:21:30 pm
That’s interesting. Just a couple of days ago someone else found that option was not helping with sending unbound queries over WG too.

Are you able to raise a GitHub issue? It seems 21.7.4 broke something. It may even be a broader issue with how it deals with interfaces (perhaps explaining the odd list of unassigned interfaces that now appears in Interfaces/Overview).
Title: Re: unbound: outgoing network interfaces
Post by: crt333 on November 01, 2021, 09:32:21 pm
I will enter a github issue, thanks.
Title: Re: unbound: outgoing network interfaces
Post by: Patrick M. Hausen on November 01, 2021, 09:36:45 pm
The outgoing network interface is determined by the target IP address and the routing table and nothing else. Unless an explicit "force gateway" rule is used.
Title: Re: unbound: outgoing network interfaces
Post by: crt333 on November 01, 2021, 09:57:57 pm
I haven't done a force gateway rule anywhere, and what you say may be true, but I can tell you for certain that the selection in Services->Unbound DNS->General for "Outgoing Network Interfaces" matters because if I remove WAN and select WG1 and WG2 it doesn't work, and it did before 21.7.4.
Title: Re: unbound: outgoing network interfaces
Post by: crt333 on November 11, 2021, 09:17:57 pm
same behavior (outgoing unbound network interfaces over WG don't work) in 21.7.5