[solved] DNS on OpenVPN not working anymore with 22.1

Started by fireburner, February 12, 2022, 08:54:11 PM

Previous topic - Next topic
February 12, 2022, 08:54:11 PM Last Edit: February 17, 2022, 08:01:01 PM by fireburner
Since the OPNsense upgrade to 22.1, DNS is not working anymore on my VPN CLients.

My VPN network is 192.168.20.0/24 and i push 192.168.20.1 as DNS Server to the Clients.

I just created a test rule in the OpenVPN firewall section
Protocol    Source          Port    Destination Port    Gateway Schedule    Description
IPv4 *      192.168.20.0/24 *       *           *       *       *           Allow all

When I however run nmap -53 192.168.20.1 on the client, it states port 53 is filtered.

So I am wondering, if unbound is not serving this subnet anymore.

I have not had any issues prior to OPNsense 22.1.

I have no clue, what went wrong here, but I got it to work now, again.
I had to select the OpenVPN interface in unbound and now DNS is working again as before.

But I am quite sure it must have been selected before the upgrade.
And because the Update made it stop working, I had played around with the separate interface I have had assigned under interfaces to the OpenVPN interface and eventually had removed it.
Assumingly that removed it from Unbound as well.
So the issue probably was that I had manually assigned an interface to the OpenVPN interface in the past instead of just leaving it as it gets created by the OpenVPN package.