OPNsense Forum

English Forums => 26.1 Series => Topic started by: Roberto on February 04, 2026, 01:40:50 PM

Title: [Solved] DNS port forwarding does not work
Post by: Roberto on February 04, 2026, 01:40:50 PM
I found the problem. "Home address" apparently cannot be used as the target destination, although it is an IP address. If I enter the address explicitly, it works.

----

Hello,

I am trying to forward all DNS requests sent to external hosts to my internal resolver. That should, in principle, be easy. However, I can't get it to work.

I am using OPNsense 26.1.

First of all, I added a destination forward to send (at least, that's the idea) all DNS queries not already directed to the internal DNS resolver to AdGuard (see first screenshot). Then I added a rule to allow the traffic to the DNS resolver (second screenshot) and I made sure it's the first rule for the Home interface.

It seems quite straightfoward, but it doesn't work, the DNS queries are not redirected but are answered by the external server, for example 8.8.8.8. AdGuard is listening on the right interfaces and is reachable from the Home network (tested).


If it helps, I have a couple of other port forwarding rules (on the WAN) and those work fine, so I am really clueless.

Any help will be greatly appreciated.
Title: Re: DNS port forwarding does not work
Post by: muchacha_grande on February 04, 2026, 01:51:23 PM
I'm using 127.0.0.1 as redirection address.
Title: Re: [Solved] DNS port forwarding does not work
Post by: Patrick M. Hausen on February 04, 2026, 02:43:10 PM
Quote from: Roberto on Today at 01:40:50 PM"Home address" apparently cannot be used as the target destination

If "Home" is the name of your interface then "Home address" is all addresses assigned to that interface, not only the "primary" one configured in the interface setup form.

This can have unexpected effects when used as a destination, yes.