Both firewalls use Unbound as the LAN resolver. Set Unbound to forward
queries to opdns over DNS-over-TLS. Unbound connects to the address and
sends the host name as the TLS server name. This name selects your profile.
Before you start, get your profile id and choose a device name, for example
firewall. The addresses are the
shared addresses of opdns:
23.166.164.53 and 23.166.164.35. If the firewall has IPv6, also use
2602:81f:6000::53 and 2602:81f:6000::35. The TLS host name selects your profile,
not the address.
Open System → General Setup → DNS Server Settings. Add 23.166.164.53
with the DNS Hostname<device>-<profile-id>.dns.opdns.net. Add 23.166.164.35 in the
same way. If you use IPv6, also add 2602:81f:6000::53 and 2602:81f:6000::35.
Clear DNS Server Override, so that the firewall does not add the
servers of your ISP.
Open Services → DNS Resolver → General Settings. Select Enable
Forwarding Mode and Use SSL/TLS for outgoing DNS Queries to
Forwarding Servers.
Screenshot to comepfSense DNS Resolver general settings with forwarding mode and SSL/TLS for outgoing queries enabled.pfSense CE 2.7
Every LAN device appears under the device name of the firewall.
DNSSEC: opdns validates every answer that it forwards. If the firewall’s
Unbound also validates, a blocked name in a signed zone fails validation.
The reason is that a block answer has no signatures. Clients then see
SERVFAIL instead of the answer of your block mode. The name stays
blocked. If you want the normal block answer, turn off DNSSEC validation
on the firewall and use the validation of opdns.