To evade my ISP's transparent DNS proxying, I configured Unbound to use upstream DNS-over-TLS on port 853. This mostly works fine, except my logs still show some traffic to 8.8.8.8 on port 53. It appears to be originating from the firewall's own IP. 8.8.8.8 is not configured anywhere in the firewall anymore (I checked this by downloading the config and searching through it, and by logging in using SSH and grepping the /etc/ directory). I do not understand where the firewall is getting 8.8.8.8 and why it wants to keep querying it on port 53. There are no DNS servers specified in Settings > General; I removed them when I configured Unbound DNS-over-TLS.Any suggestions?
By the way, "let out anything from firewall host itself" matching doesn't mean that the DNS request was made by OPNsense itself. These requests most likely originate from a device in the LAN. Some IoT devices ignore the DNS servers advertised by DHCP and just use Google DNS instead.
So it might be better to create a firewall rule on the LAN interface which blocks incoming connections to port 53 if the destination is not the LAN interface address.
Are you using, by any chance, a DrayTek Vigor 166 ? I am, and although it's in bridge mode, it has the Google DNS server in the firmware somewhere and it pings 8.8.8.8 every minute or so...