pfSenseLab
Security

pfBlockerNG Setup Guide: DNS Ad-Blocking and Threat Intel on pfSense

Install and configure pfBlockerNG on pfSense to block ads, trackers, and malicious domains network-wide using DNS. Covers DNSBL feeds, IP reputation blocking, and tuning false positives.

By pfSenseLab Editorial · · 8 min read

pfBlockerNG is the most powerful package available for pfSense — it combines DNS-based ad/tracker blocking (like Pi-hole) with IP reputation blocking (geo-blocking, threat intel feeds) in a single pane of glass. This guide covers setup from zero to a working multi-feed DNSBL configuration.

Install pfBlockerNG

System → Package Manager → Available Packages → search pfBlockerNG-devel → Install.

Use the devel variant — it’s more actively maintained and required for DNSBL functionality.

After install: Firewall → pfBlockerNG.

Run the setup wizard

On first load, pfBlockerNG offers a setup wizard. Accept the defaults for:

Configure DNSBL feeds

Navigate to DNSBL → DNSBL Feeds → Add:

Feed nameSourceCategory
Hagezi Threat Intelligencehttps://raw.githubusercontent.com/hagezi/dns-blocklists/main/wildcard/pro.plus.txtAds + Malware
Steven Black Unifiedhttps://raw.githubusercontent.com/StevenBlack/hosts/master/hostsAds + Tracking
URLhaushttps://urlhaus.abuse.ch/downloads/rpz/Malware URLs
EasyListvia pfBlockerNG built-inAds
OISDhttps://big.oisd.nl/Comprehensive

Add each feed:

Configure IP reputation blocking (optional)

DNSBL → IP Reputation → GeoIP:

  1. Register for a free MaxMind GeoLite2 account (required since MaxMind requires an API key).
  2. Enter your MaxMind license key in pfBlockerNG → General → MaxMind.
  3. In IP → GeoIP Profiles, add a block rule for high-risk country groups if needed.

Reputation feeds:

Update and force sync

After adding feeds:

  1. Firewall → pfBlockerNG → Update → Run
  2. Select: Update mode → Execute

Wait for the download to complete. Check the log for any failed feeds.

Verify it works

From a LAN device:

nslookup doubleclick.net 192.168.1.1
# Should return: 0.0.0.0 (sinkholed)

nslookup google.com 192.168.1.1
# Should return: real IP

Browse to a site heavy with ads — they should disappear.

Tuning false positives

If a legitimate site is being blocked:

  1. Check DNSBL → DNSBL Alerts for recent blocks.
  2. Go to Firewall → pfBlockerNG → DNSBL → Whitelist, add the domain.
  3. Run an update to rebuild the blocklists.

Dashboard widgets

Diagnostics → pfBlockerNG → Dashboard shows blocked requests, top blocked domains, and feed health.

Comparing pfSense vs OPNsense ad-blocking? OPNsense uses Adguard Home plugin; pfBlockerNG is more tightly integrated. See firewallcompare.com for a side-by-side.

#pfsense #pfblockerng #dns #ad-blocking #threat-intel #security

Related

Comments