Ok Ive tested multiple different configurations now and updated the main post completely.
So please read it again.
So please read it again.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menusubject cron root@opnsense (sbin/pfctl -t 'virusprot' -T expire 3600) > /dev/nullroot:$ mail
:5
Message 5:
From root@OPNsense.internal Mon Oct 6 22:45:00 2025
From: Cron Daemon <root@OPNsense.internal>
To: root
Subject: Cron <root@OPNsense> (/sbin/pfctl -t 'virusprot' -T expire '3600') > /dev/null
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin>
X-Cron-Env: <REQUESTS_CA_BUNDLE=/usr/local/etc/ssl/cert.pem>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
Date: Mon, 06 Oct 2025 22:45:00 +0000
0/0 addresses expired.
& 5200
5200: Invalid message number
& 5150
Message 5150:
From root@OPNsense.intern Fri Nov 7 15:00:00 2025
From: Cron Daemon <root@OPNsense.intern>
To: root
Subject: Cron <root@OPNsense> (/sbin/pfctl -t 'sshlockout' -T expire '3600') > /dev/null
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin>
X-Cron-Env: <REQUESTS_CA_BUNDLE=/usr/local/etc/ssl/cert.pem>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
Date: Fri, 07 Nov 2025 15:00:00 +0100
0/0 addresses expired.
& 5170
5170: Invalid message number
& 5160
Message 5160:
From root@OPNsense.intern Fri Nov 7 16:15:00 2025
From: Cron Daemon <root@OPNsense.intern>
To: root
Subject: Cron <root@OPNsense> (/sbin/pfctl -t 'sshlockout' -T expire '3600') > /dev/null
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin>
X-Cron-Env: <REQUESTS_CA_BUNDLE=/usr/local/etc/ssl/cert.pem>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
Date: Fri, 07 Nov 2025 16:15:00 +0100
0/0 addresses expired.
& 590
Message 590:
From root@OPNsense.intern Fri Oct 10 01:00:00 2025
From: Cron Daemon <root@OPNsense.intern>
To: root
Subject: Cron <root@OPNsense> (/sbin/pfctl -t 'virusprot' -T expire '3600') > /dev/null
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin>
X-Cron-Env: <REQUESTS_CA_BUNDLE=/usr/local/etc/ssl/cert.pem>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
Date: Fri, 10 Oct 2025 01:00:00 +0200
0/0 addresses expired.
&

pkg install getdns
su -m unbound -c /usr/local/sbin/unbound-anchor
nano /usr/local/etc/rc.d/stubby
: ${stubby_enable="YES"}
nano /usr/local/etc/stubby/stubby.yml
# dnssec_return_status: GETDNS_EXTENSION_TRUE
# the stuby doku don't know this command -> older versions also?
# actually the command is this:
dnssec: GETDNS_EXTENSION_TRUE # remove #
listen_addresses:
- 127.0.0.1@8053 # add specific port
#- 0::1 # important!: if you don't use ipv6 -> comment out;
# if you use ipv6 the set the right port; for example: "- 0::1@8053"
# otherwise unbound can't srart, becouse without port, stubby uses the same port: 53, and stubby start faster then unbound after a reboot
# tls_ca_path: "/usr/local/share/certs/ca-root-nss.crt"
tls_ca_file: "/usr/local/share/certs/ca-root-nss.crt" # add this line
# for not sequentially using the listed upstreamserver,
# but for randomly using
round_robin_upstreams: 1 # add this line
dnssec_trust_anchors: "/usr/local/sbin/unbound-anchor" # add the right path
tls_cipher_list: "EECDH+AESGCM:EECDH+CHACHA20" # remove #
tls_ciphersuites: "TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256" # remove # be aware: Use it only with OpenSSL; don't use it with LibreSSL -> see supplement
tls_min_version: GETDNS_TLS1_2 # remove #
Quotehttps://discourse.pi-hole.net/t/unbound-and-qname-minimisation/10038/4I doesn't found these three variables in the standard config in /var/unbound/* and the unbound documentation is not really informative =) :
# You will and should get HOORAY ! - if you used the name servers listed in this guide for your Stubby configuration.
# Note: Starting with Unbound 1.7.2 qname minimisation is enabled by default.
# However, I still add these settings manually.
# These settings are entered under Unbound " Custom Options":
qname-minimisation: yes
qname-minimisation-strict: yes
harden-below-nxdomain: yes
unbound-checkconf /var/unbound/unbound.conf) also i removed it and test the command below again:
dig txt qnamemintest.internet.nl +short
nano /var/unbound/unbound.conf
nano /etc/rc.conf.d/stubby
stubby_enable="YES"
stubby_bootup_run="/usr/local/etc/rc.d/stubby"
chmod 755 /etc/rc.conf.d/stubby
server:
do-not-query-localhost: no
forward-zone:
name: "." # Allow all DNS queries
forward-addr: 127.0.0.1@8053
stubby -l