Skip to content
Log inDashboard

pfSense and OPNsense

Both firewalls run Unbound as the LAN resolver. Point it at opdns as a forwarder over DNS-over-TLS: Unbound connects to the address and sends the host name as the TLS server name, which selects your profile.

You need: your profile id and a device name such as firewall. The addresses are opdns’s shared addresses: 23.166.164.53 and 23.166.164.35, and 2602:81f:6000::53 and 2602:81f:6000::35 if the firewall has IPv6. The TLS host name, not the address, selects your profile.

  1. Services → Unbound DNS → General: make sure Unbound is enabled.

  2. Services → Unbound DNS → DNS over TLS: add one entry per address:

    Field Value
    Server IP 23.166.164.53
    Server Port 853
    Verify CN <device>-<profile-id>.dns.opdns.net

    Repeat with 23.166.164.35, and with 2602:81f:6000::53 and 2602:81f:6000::35 if you use IPv6.

  3. Apply, then check it works.

  • Every LAN device appears under the firewall’s device name.
  • DNSSEC: opdns validates every answer it forwards. If the firewall’s Unbound validates too, a blocked name in a signed zone fails its check (a block answer carries no signatures), so clients see SERVFAIL instead of your block mode’s answer. The name is still blocked. To get the normal block answer, turn off DNSSEC validation on the firewall and rely on opdns’s.