THANK YOU! That worked!
I have no clue why unbound works like that, but thanks for helping me work though this issue.
I have no clue why unbound works like that, but thanks for helping me work though this issue.
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 Menu##########################
# Unbound Configuration
##########################
##
# Server configuration
##
server:
chroot: /var/unbound
username: unbound
directory: /var/unbound
pidfile: /var/run/unbound.pid
root-hints: /var/unbound/root.hints
use-syslog: yes
port: 53
include: /var/unbound/advanced.conf
harden-referral-path: no
do-ip4: yes
do-ip6: yes
do-udp: yes
do-tcp: yes
do-daemonize: yes
so-reuseport: yes
module-config: "python iterator"
num-threads: 4
msg-cache-slabs: 8
rrset-cache-slabs: 8
infra-cache-slabs: 8
key-cache-slabs: 8
# Interface IP(s) to bind to
interface: 0.0.0.0
interface: ::
interface-automatic: yes
# Private networks for DNS Rebinding prevention (when enabled)
# Private domains (DNS Rebinding)
include: /var/unbound/private_domains.conf
# Static host entries
include: /var/unbound/host_entries.conf
# DHCP leases (if configured)
# Custom includes
include: /var/unbound/etc/*.conf
python:
python-script: dnsbl_module.py
remote-control:
control-enable: yes
control-interface: 127.0.0.1
control-port: 953
server-key-file: /var/unbound/unbound_server.key
server-cert-file: /var/unbound/unbound_server.pem
control-key-file: /var/unbound/unbound_control.key
control-cert-file: /var/unbound/unbound_control.pem
server:
# Listen on the second loopback interface
# DNS-over-TLS
interface: fd53:5353:0000::1@853
interface: 192.168.0.1@853
tls-port: 853
# Let's Encrypt certificate
tls-service-key: "/var/etc/acme-client/keys/abcd.1234/private.key"
tls-service-pem: "/var/etc/acme-client/certs/abcd.1234/fullchain.pem"
$ # This is on the OPNsense box
$ openssl s_client -connect 192.168.0.1:853
0810A5FFB6220000:error:8000003D:system library:BIO_connect:Connection refused:/usr/src/crypto/openssl/crypto/bio/bio_sock2.c:125:calling connect()
0810A5FFB6220000:error:10000067:BIO routines:BIO_connect:connect error:/usr/src/crypto/openssl/crypto/bio/bio_sock2.c:127:
connect:errno=61
$ dig @dns.example.com +tls google.com
;; Connection to 192.168.0.1#853(192.168.0.1) for google.com failed: timed out.
;; no servers could be reached
2025-11-02T13:33:36-06:00
Debug
unbound
[16668:0] debug: outnettcp got tcp error -1
2025-11-02T13:33:36-06:00
Debug
unbound
[16668:0] debug: outnettcp cb
2025-11-02T13:33:36-06:00
Debug
unbound
[16668:0] debug: close fd 37
2025-11-02T13:33:36-06:00
Debug
unbound
[16668:2] debug: outnettcp got tcp error -1
2025-11-02T13:33:36-06:00
Debug
unbound
[16668:2] debug: outnettcp cb
2025-11-02T13:33:36-06:00
Debug
unbound
[16668:2] debug: close fd 47
2025-11-02T13:33:36-06:00
Debug
unbound
[16668:0] debug: outnettcp got tcp error -1
2025-11-02T13:33:36-06:00
Debug
unbound
[16668:0] debug: outnettcp cb
2025-11-02T13:33:36-06:00
Debug
unbound
[16668:0] debug: close fd 40
...
# Config
server:
# I have a static ULA setup in Virtual IPs
interface: fd00:abcd::1@853
interface: 192.168.0.1@853
tls-service-key: "/var/etc/acme-client/keys/.../private.key"
tls-service-pem: "/var/etc/acme-client/keys/.../fullchain.pem"
server:
interface: 192.168.0.1@853
tls-port: 853
tls-service-pem: /path/to/public/cert.pem
tls-service-key: /path/to/private/cert.key
server:
# I tried the below setting as well without any luck
#interface-automatic-ports: "53 853"
# These are the IP addresses of the loopback interface
interface: fd9d:745e:5eb7::53@53
interface: fd9d:745e:5eb7::53@853
interface: 10.121.53.53@53
interface: 10.121.53.53@853
tls-port: 853
# I filled this in with the path to the certificate
# This is loaded before the chroot is entered, so I don't need to worry about permissions
tls-service-key: "/var/etc/acme-client/keys/<my-numbers>/private.key"
tls-service-pem: "/var/etc/acme-client/certs/<my-numbers>/fullchain.pem"
dig +tls @opnsense.example.com google.com results in Connection to <ip-addr>#853 for google.com failed: connection refused.This is true for all IP addresses listed.