# Cu 203 knot-resolver openvpn not working

**URL:** <https://community.ipfire.org/t/cu-203-knot-resolver-openvpn-not-working/15982>\
**Category:** Update Trouble\
**Created:** [21 July 2026 17:41 UTC](https://community.ipfire.org/t/cu-203-knot-resolver-openvpn-not-working/15982 "2026-07-21T17:41:34Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![urmelchen](https://community.ipfire.org/user_avatar/community.ipfire.org/urmelchen/32/16361_2.png) [@urmelchen](https://community.ipfire.org/u/urmelchen)\
**Post date:** [21 July 2026 17:41 UTC](https://community.ipfire.org/t/cu-203-knot-resolver-openvpn-not-working/15982/1 "2026-07-21T17:41:34Z")

</div>

ovpn-clients connect successfully, but name resolution seems not to work.

---

<div class="post-metadata">

**Author:** ![kuni](https://community.ipfire.org/user_avatar/community.ipfire.org/kuni/32/16675_2.png) [@kuni](https://community.ipfire.org/u/kuni)\
**Post date:** [23 July 2026 09:35 UTC](https://community.ipfire.org/t/cu-203-knot-resolver-openvpn-not-working/15982/2 "2026-07-23T09:35:46Z")

</div>

Here the name resolution also not working for openvpn roadwarriors.

---

<div class="post-metadata">

**Author:** ![binabik](https://community.ipfire.org/user_avatar/community.ipfire.org/binabik/32/15699_2.png) [@binabik](https://community.ipfire.org/u/binabik)\
**Post date:** [23 July 2026 09:59 UTC](https://community.ipfire.org/t/cu-203-knot-resolver-openvpn-not-working/15982/3 "2026-07-23T09:59:32Z")

</div>

Hi,

I’m having the same problem here: the VPN connection works, but name resolution isn’t working for roadwarriors.

---

<div class="post-metadata">

**Author:** ![kuni](https://community.ipfire.org/user_avatar/community.ipfire.org/kuni/32/16675_2.png) [@kuni](https://community.ipfire.org/u/kuni)\
**Post date:** [23 July 2026 10:39 UTC](https://community.ipfire.org/t/cu-203-knot-resolver-openvpn-not-working/15982/4 "2026-07-23T10:39:37Z")

</div>

Ok, the same problem occurs with wireguard and i followed this post:

> [@Core 203 and wireguard](https://community.ipfire.org/t/core-203-and-wireguard/15981/4):
>
> I have the same problem. I worked around it by creating DNAT rules for WireGuard traffic (udp 53) from the WG side to the red IP. I also have Kubernetes, and it’s experiencing the same issue, so I created DNAT rules for the 10.0.0.0/8 network as well. in knot doc [Configuration — Knot Resolver 6.4.1 documentation](https://www.knot-resolver.cz/documentation/latest/gettingstarted-config.html) there is warning for using 0.0.0.0, so i have also tried to list all the interfaces and now it is working fine. network: listen: # - interface: 0.0.0.0@53 - interface: lo # 12…

and changed /etc/knot-resolver/config.yaml

```yaml
# Listen on all interfaces
network:
  listen:
# - interface: 0.0.0.0@53
    - interface: lo # 127.0.0.1
    - interface: green0
# - interface: blue0 # no blue-if
    - interface: orange0
    - interface: red0

```

Restartet knot-resolver:

```bash
/etc/rc.d/init.d/knot-resolver restart

```

Check, if it’s running:

```bash
/etc/rc.d/init.d/knot-resolver status

```

And now it’s working again. Be careful with syntax. I’m not familiar with yaml, but i had a lot of trouble editing the config.yaml and knot-resolver not starting.

Also, I’m not sure, if this is a good idea. But as a workaround it seems to do the job.

---

<div class="post-metadata">

**Author:** ![urmelchen](https://community.ipfire.org/user_avatar/community.ipfire.org/urmelchen/32/16361_2.png) [@urmelchen](https://community.ipfire.org/u/urmelchen)\
**Post date:** [24 July 2026 09:21 UTC](https://community.ipfire.org/t/cu-203-knot-resolver-openvpn-not-working/15982/5 "2026-07-24T09:21:17Z")

</div>

thank you for your post kuni bertus. it is inspiring.  
i can’t test it because i went back to cu202. i’m not good with linux but i would not dnat from tunnel to lo or green and i would not listen on red0 as long as it is not necessary. for me i would change config.yaml as follows because i internally use unencrypted dns:  
network:  
listen:

- interface: lo  
kind: dns
- interface: green0  
kind: dns
- interface: tun0  
kind: dns

for wireguard the interface name is probably wg0.

---

<div class="post-metadata">

**Author:** ![kuni](https://community.ipfire.org/user_avatar/community.ipfire.org/kuni/32/16675_2.png) [@kuni](https://community.ipfire.org/u/kuni)\
**Post date:** [24 July 2026 09:44 UTC](https://community.ipfire.org/t/cu-203-knot-resolver-openvpn-not-working/15982/6 "2026-07-24T09:44:45Z")

</div>

> [@urmelchen](#):
>
> but i would not dnat from tunnel to lo or green and i would not listen on red0 as long as it is not necessary

Yeah, this is crossed out in that posting, so dont do that.

> [@urmelchen](#):
>
> for wireguard the interface name is probably wg0

At first, i also thought, i had to put in the wg0- and tun0-interfaces in config.yaml. But this is not necessary. You only have to put in the green ip-adress (not the ipfire tunnel endpoint adress) in your VPN dns configuration and ipfire will do its job resolving domain names for all interface you want to. I had to check if this is true for orange network because originally ipfire is blocking dns/dhcp access from orange network. From security point it should be better to omit orange0 from listen-section in config.yaml.

---

<div class="post-metadata">

**Author:** ![kuni](https://community.ipfire.org/user_avatar/community.ipfire.org/kuni/32/16675_2.png) [@kuni](https://community.ipfire.org/u/kuni)\
**Post date:** [24 July 2026 09:57 UTC](https://community.ipfire.org/t/cu-203-knot-resolver-openvpn-not-working/15982/7 "2026-07-24T09:57:42Z")

</div>

> [@urmelchen](#):
>
> and i would not listen on red0 as long as it is not necessary.

Yes, i wasn’t sure if this is necessary because Core 203 config.yaml says 0.0.0.0@53 - so knot-resolver is listening on all interfaces i guess.

And: knot-resolver is doing a two-part job, dns-client for external name resolution and dns-resolver for the internal network. So i was unsure with red interface.

But perhaps you are right and i think: lo, green0 and blue0 (if used) should be enough, but i didn’t test it yet.

---

<div class="post-metadata">

**Author:** ![kuni](https://community.ipfire.org/user_avatar/community.ipfire.org/kuni/32/16675_2.png) [@kuni](https://community.ipfire.org/u/kuni)\
**Post date:** [24 July 2026 10:05 UTC](https://community.ipfire.org/t/cu-203-knot-resolver-openvpn-not-working/15982/8 "2026-07-24T10:05:20Z")

</div>

> [@kuni](#):
>
> I had to check if this is true for orange network because originally ipfire is blocking dns/dhcp access from orange network.

Ok checked that and you can safely omit orange0 from config. There is still a default fw block rule.

![grafik](https://community.ipfire.org/uploads/default/original/3X/9/9/99b6a165648f9fe3cab208f559312162e8a53702.png)

Edit:

> [@kuni](#):
>
> lo, green0 and blue0 (if used) should be enough

Ok, omited red0 too and all still seems to work.

Edit2:

Ok, i discovered one problem with that workaround/fix: If you do a reboot, ipfire will not fire up knot-resolver correctly and name resolution is not working at first. In service overview name resolution service stays off, although

```bash
/etc/rc.d/init.d/knot-resolver status

```

says it is up. You have to manually stop/start knot-resolver and it’s working again.

If i revert to 0.0.0.0@53 ipfire will boot up knot-resolver just fine, but name resolution via vpn is not working :x.

---

<div class="post-metadata">

**Author:** ![d0cx1989](https://community.ipfire.org/user_avatar/community.ipfire.org/d0cx1989/32/9497_2.png) [@d0cx1989](https://community.ipfire.org/u/d0cx1989)\
**Post date:** [24 July 2026 13:06 UTC](https://community.ipfire.org/t/cu-203-knot-resolver-openvpn-not-working/15982/9 "2026-07-24T13:06:50Z")

</div>

> [@Core 203: Knot Resolver fails to answer DNS queries coming through WireGuard and OpenVPN tunnels (reply from unexpected source)](https://community.ipfire.org/t/core-203-knot-resolver-fails-to-answer-dns-queries-coming-through-wireguard-and-openvpn-tunnels-reply-from-unexpected-source/16006):
>
> Hello everyone, After updating to Core 203 I ran into a DNS problem that also seems to affect other users with OpenVPN, so I want to document it properly here with the analysis and a working fix. Setup My Green network is 192.168.99.0/28 and the firewall itself is 192.168.99.1. Clients connecting over WireGuard use 192.168.99.1 as their DNS server. This worked perfectly before Core 203. Symptom After the update, name resolution over the tunnel stopped working. Resolving raw IP addresses was…

---

<div class="post-metadata">

**Author:** ![urmelchen](https://community.ipfire.org/user_avatar/community.ipfire.org/urmelchen/32/16361_2.png) [@urmelchen](https://community.ipfire.org/u/urmelchen)\
**Post date:** [24 July 2026 19:42 UTC](https://community.ipfire.org/t/cu-203-knot-resolver-openvpn-not-working/15982/10 "2026-07-24T19:42:40Z")

</div>

@**[kuni bertus](https://community.ipfire.org/u/kuni)  
are you shure you formated config.yaml properly? I heard it does not like tabstops just blanks for the indents. the original file has 2 blanks per indent.**

---

<div class="post-metadata">

**Author:** ![kuni](https://community.ipfire.org/user_avatar/community.ipfire.org/kuni/32/16675_2.png) [@kuni](https://community.ipfire.org/u/kuni)\
**Post date:** [25 July 2026 07:19 UTC](https://community.ipfire.org/t/cu-203-knot-resolver-openvpn-not-working/15982/11 "2026-07-25T07:19:59Z")

</div>

Yes, I learned this the hard way (i have to copy the code from above posting with blanks and then it works). If you use tab stops, knot-resolver always throws errors and never starts, regardless if you do a clean boot or start/stop/restart the service manually.

Actually, my workaround now is not using ipfire’s green ip-adress for vpn dns-configuration and put in the windows dns-servers as dns-resolver. Only my home network has ipfire as the only option for dns-resolving, so the problem here stays. But my network is very small, so I will use ip-adresses til this problem is fixed on official site.

---

<div class="post-metadata">

**Author:** ![urmelchen](https://community.ipfire.org/user_avatar/community.ipfire.org/urmelchen/32/16361_2.png) [@urmelchen](https://community.ipfire.org/u/urmelchen)\
**Post date:** [25 July 2026 12:33 UTC](https://community.ipfire.org/t/cu-203-knot-resolver-openvpn-not-working/15982/12 "2026-07-25T12:33:04Z")

</div>

same results here.  
after changing interfaces in config.yaml and restart of knot-resolver dns through openvpn works, but when restarting ipfire knot-resolver fails to start.  
i’ll stick with cu202 until the rebooting problem is solved.

---

<div class="post-metadata">

**Author:** ![bonnietwin](https://community.ipfire.org/user_avatar/community.ipfire.org/bonnietwin/32/12350_2.png) [@bonnietwin](https://community.ipfire.org/u/bonnietwin)\
**Post date:** [25 July 2026 12:49 UTC](https://community.ipfire.org/t/cu-203-knot-resolver-openvpn-not-working/15982/13 "2026-07-25T12:49:47Z")

</div>

For information @ms and I discussed this, after I had verified the effect with my android phone and the OpenVPN for Android app but interestingly enough my linux laptop with Network Manager was able to resolve everything with both wireguard and openvpn.

Unfortunately my testing with CU203 used my linux laptop when I did the vpn evaluations for ipsec, openvpn and wireguard and so I did not see this effect and it looks like no-one else involved in the Testing phase did either.

@ms has also been able to duplicate the effect and will look at how to patch knot so it will make sure the correct IP is used for the response.

Once a correctly working patch has been created/evaluated then it will also be submitted upstream.

---

<div class="post-metadata">

**Author:** ![alexand](https://community.ipfire.org/user_avatar/community.ipfire.org/alexand/32/16579_2.png) [@alexand](https://community.ipfire.org/u/alexand)\
**Post date:** [25 July 2026 16:03 UTC](https://community.ipfire.org/t/cu-203-knot-resolver-openvpn-not-working/15982/14 "2026-07-25T16:03:14Z")

</div>

When a VPN tunnel is set up to IPFire (remote access), both Wireguard and OpenVPN with the IP address of the Green network specified as the resolver work correctly, but it does not take into account the DNS firewall.

So it behaves just like IPFirewall itself when querying names. In my opinion, it’s correct. It would be a good idea to add the option to select remote access VPNs in the DNS firewall configuration.

 ![dns-firewall](https://community.ipfire.org/uploads/default/original/3X/8/e/8e48f6c4d3676235f10444650e808b0a0ef3feb2.jpeg)

---

<div class="post-metadata">

**Author:** ![pscar13](https://community.ipfire.org/user_avatar/community.ipfire.org/pscar13/32/16558_2.png) [@pscar13](https://community.ipfire.org/u/pscar13)\
**Post date:** [25 July 2026 16:51 UTC](https://community.ipfire.org/t/cu-203-knot-resolver-openvpn-not-working/15982/15 "2026-07-25T16:51:14Z")

</div>

If you don’t select any network on this page, the DNS Firewall will also apply to OpenVPN clients.

If you select one or more networks (GREEN, BLUE, ORANGE), you must add the OpenVPN subnet to **Custom source**.

I haven’t tested this with WireGuard.

---

<div class="post-metadata">

**Author:** ![kuni](https://community.ipfire.org/user_avatar/community.ipfire.org/kuni/32/16675_2.png) [@kuni](https://community.ipfire.org/u/kuni)\
**Post date:** [26 July 2026 06:55 UTC](https://community.ipfire.org/t/cu-203-knot-resolver-openvpn-not-working/15982/16 "2026-07-26T06:55:32Z")

</div>

I want to summon my prerequisites for wg/ovpn dns resolving not working:

- split tunnel configuration
- ipfire’s green ip adress in vpn dns-configuration (no other dns resolver)
- dns firewall categories activated with NO interface selected

I’m not sure, if all are necessary prerequisites, but this is how it’s not working (and worked with unbound without problems).

@d0cx1989 states [here](https://community.ipfire.org/t/core-203-knot-resolver-fails-to-answer-dns-queries-coming-through-wireguard-and-openvpn-tunnels-reply-from-unexpected-source), that the answer is coming from the red interface and so the client rejects the answer. Perhaps it helps finding the fault.

---

<div class="post-metadata">

**Author:** ![pscar13](https://community.ipfire.org/user_avatar/community.ipfire.org/pscar13/32/16558_2.png) [@pscar13](https://community.ipfire.org/u/pscar13)\
**Post date:** [26 July 2026 07:51 UTC](https://community.ipfire.org/t/cu-203-knot-resolver-openvpn-not-working/15982/17 "2026-07-26T07:51:25Z")

</div>

Personally, I use a DNS redirection rule to the firewall, as described here, for each of my networks (GREEN, BLUE, OpenVPN):  
[https://www.ipfire.org/docs/configuration/firewall/rules/redirect-dns](https://www.ipfire.org/docs/configuration/firewall/rules/redirect-dns?utm_source=copilot.com "www.ipfire.org")

(Adding TCP 853 to DNS services group for DoT)

After upgrading to **CU203** , I don’t have any DNS issues with OpenVPN.

Hope this helps.
