Skip to content
Sign inDashboard

pfSense and OPNsense

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.

  1. Open Services → Unbound DNS → General and make sure that Unbound is enabled.

  2. Open Services → Unbound DNS → DNS over TLS and add one entry for each address:

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

    Add an entry for 23.166.164.35 in the same way. If you use IPv6, also add entries for 2602:81f:6000::53 and 2602:81f:6000::35.

  3. Click Apply, then check that it works.

  • 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.