Stop IPFire from replying to DNS queries

Hi everyone,

I have just upgraded to Core Update 205 due to CVE-2026-98432. Due to the many issues with Knot Resolver at the moment and the inability to use custom blocklists I am now running 2 Unbound instances on 2 separate SBCs which takes care of the blocking via RPZ. IPFIre is configured to handout those 2 as the primary and secondary DNS servers to clients.

Seeing as there is no way to disable Knot Resolver, I now want to stop IPFire from replying to DNS queries in my network and the first thing that comes to mind is blocking port 53 via iptables on both GREEN and BLUE. Does anyone foresee any issue with this?

If you must block answers by IPFire, it would be interesting to determine the questioners.

This is the old problem of ‘unallowed’ DNS requests. IPFire can only announce the policies in the network. It is task of the client devices to obey them.

Users can always go to their network settings and set a different DNS within the local network, different from the primary and secondary DNS that IPFire’s DHCP server hands out. In Core Update 202 I did not have this problem because the Unbound DNS server + RPZ in IPFire is the only DNS server I have.

Now I’m on 205 and do not want to use Knot Resolver but simply putting unbound1 and unbound2 for primary and secondary DNS in the DHCP server won’t be enough because a client can put the IPFire IP address as the DNS server and Knot Resolver will reply, bypassing whatever RPZ I have setup in unbound1 and unbound2

This is a variation of ‘DNS redirection’. The usual case is to redirect DNS queries to external servers to IPFire.. Why not just redirect to one of your local unbound servers?

BTW, what exactly is your problem with knot resolver?

Either block or redirect is fine with me. I just wanted to check whether anyone foresee an issue with it.

I don’t have a problem with Knot Resolver itself. I have a problem with not being able to use blocklists in the IPFire’s Knot Resolver other than the ones provided by IPFire. More context: Customise DNS Firewall? - #23 by lrdshaper