In this article
A Ubiquiti UniFi gateway can send all network DNS queries to DNSFilter over DNS over HTTPS. Every device behind the gateway is filtered and reported as one Clientless deployment, without a Roaming Client installed on each one. Clientless filtering is available on Plus plans and above.
UniFi does not accept a DNS over HTTPS (DoH) address directly. It takes a DNS Stamp, a single sdns:// string that encodes the same information in the format that UniFi's DNS Shield feature accepts.
These steps are general guidance, and DNSFilter does not officially endorse or validate third-party software. Test the configuration before deploying it, and consult Ubiquiti for settings specific to the gateway.
Prerequisites
Clientless DNS filtering on Ubiquiti UniFi requires:
- A UniFi gateway running the current version of UniFi Network
- A DNSFilter dashboard role other than read-only or policy-only
- For networks that filter outbound traffic: outbound TCP 443 from the gateway to
103.247.36.150and103.247.37.150, so the gateway can reach DNSFilter - Block Page on HTTPS websites: blocked HTTPS sites show a certificate warning instead of the Block Page unless the DNSFilter SSL/TLS certificates are installed on each device on the network.
Step 1: Create the deployment and copy the DNS Stamp
To create a Clientless deployment for a UniFi gateway:
- From the DNSFilter dashboard, navigate to Deployments > Clientless.
- Select Add Clientless Device.
- Enter the deployment details:
- Organization (MSP dashboard only): the Organization the Clientless Device belongs to
- Name: a name for the Clientless Device, which cannot be changed after the deployment is created
- Site: the Site the deployment connects to
- Policy/Schedule: leave as Inherit from Site, or select a different policy or schedule
- Block Page: leave as Inherit from Site, or select a different block page
- From DoH Type, select Stamp.
- Select Generate DoH Endpoint.
- Copy the DNS Stamp, which starts with
sdns://.
The stamp encodes only the deployment's DoH address. If the stamp is altered or trimmed, DNS stops working for the network. Anyone who has the stamp can send filtered traffic that reports as this deployment. Treat the stamp the same way as the DoH address.
Step 2: Add the stamp in UniFi Network
In UniFi Network, enter the sdns:// string as a custom DNS Shield provider. The location of this setting changes between UniFi Network releases, so follow Ubiquiti's current DNS Shield instructions.
UniFi can take up to a minute to apply the change. Tests run sooner may not reflect the change.
The DNSSEC, No logs, and No filters options in the UniFi provider settings are descriptive labels only. They do not change how DNSFilter handles queries; DNSFilter logs and filters them.
Clientless DNS filtering is active when queries for this deployment appear in Reporting > DNS Query Log, under Clientless in the Deployments filter.
Comments
0 comments
Please sign in to leave a comment.