/r/pfBlockerNG

Photograph via snooOG

Since 2014, pfBlockerNG has been protecting assets behind consumer and corporate networks of pfSense - Open Source Firewall based on FreeBSD.

The development of pfBlockerNG was forged out of the passion to create a unified solution to manage IP and Domain feeds with rich customization and management features.

pfBlockerNG is created, designed, developed, supported and maintained by BBcan177 (an independent developer).

Licensed on an "As Is" Basis without Warranties or Conditions... Apache 2.0


Since 2015, pfBlockerNG has been protecting assets behind consumer and corporate networks of pfSense - Open Source Firewall based on FreeBSD.


The development of pfBlockerNG was forged out of the passion to create a unified solution to manage IP and Domain feeds with rich customization and management features.

pfBlockerNG is designed, developed, supported and maintained by BBcan177.

Follow on Twitter for all pfBlockerNG related tweets.


Support future Development by becoming a Patron on the pfBlockerNG Patreon page!

A Patreon Flair will be added to all Patrons on this sub-Reddit (Only visible in the New Reddit)!


Support future Development on the pfBlockerNG Paypal page!


Related Sub-Reddits:

/r/pfsense

/r/netgate


/r/pfBlockerNG

12,704 Subscribers

1

Some pretty serious issues on my install of pfblockerng

Latest devel version, pfsense 2.7.2.

Noticed whilst debugging issues that no updates had been applied for 'any' dns blacklists including local files since 22 April 2024.

In the logs, it reported needed updating, but didnt report failed update.

Top1m was also enabled, but had a repeating error as below for every run.

TOP1M Database downloading ( approx 21MB ) ... Please wait ...
 Building TOP1M Whitelist [
TOP1M conversion Failed. File: top-1m.csv, not found...
 DNSBL - TOP1M changes found - Rebuilding!
 completed    

Its as if pfblocknerng thinks its downloaded a file but it hasnt.

I can edit any file I want fine from within the diagnostics edit feature in pfsense, everything looks fine on the shell.

If I selected force update in the GUI, it also didnt do what I would expect, it said files exist and just skipped to end.

The only way I could force an up to date file was to wipe everything in /var/db/pfblockerng/dnsblorig and also /var/db/pfblockerng/dnsbl, and then finally I got new files pulled down.

In addition the custom file also got populated after I did this as well.

Please let me know what I can do to help debug.

1 Comment
2024/12/02
04:30 UTC

2

Default DNSBL Whitelist Missing

It seems the default DNSBL whitelist no longer populates for me on a fresh setup on my SG8200 despite enabling it during the pfblockerng wizard setup. Would someone be kind enough to list it in this thread.

7 Comments
2024/12/01
07:47 UTC

2

MaxMind fails to download.

I'm using pfSense 2.7.2 with pfBlockerNG-devel 3.2.0_20. The MaxMind database fails to refresh with the following error:

[ pfB_PRI3_v4 - MaxMind_BD_Proxy_v4 ] Download FAIL [ 11/29/24 13:02:32 ]
  DNSBL, Firewall, and IDS (Legacy mode only) are not blocking download.
 [ 11/29/24 13:02:32 ]
  Restoring previously downloaded file contents... [ 11/29/24 13:02:32 ]

I found some troubleshooting advice on the web and confirmed that nothing is blocking my connection to the MaxMind web server. I also logged into my MaxMind user portal to ensure the account was still active, and I did not find any errors.

It's at this point that I realized the pfBlocker site in the PRI3 setting is a test page at:
https://www.maxmind.com/en/high-risk-ip-sample-list

Is this the proper setting? Is there something else I need to do?

Thanks for any help.

8 Comments
2024/11/29
18:31 UTC

0

DNS fails to resolve some small set of addresses when pfBlockerNG is active

This is something I've been seeing for several weeks; not quite sure when it started. But the start of it was ailun.com not resolving. I'd enter that in my browser or run a local DNS Query and come up with a DNS error (no information found). When I tried the same address in the pfSense/Diagnostics/Ping page, it would go to 8.8.8.8 (and other DNS servers I configured in General Setup) and resolve things. Thought it might be an Unbound problem, but could not see how.

I was looking in the Reports tab of pfB, but nothing was being blocked. And DNS queries did not return the 10.10.10.1 Virtual IP address pfB tosses out for blocked domains.

I set this aside until a compact FlickR.com URL also failed. These use flic.kr as their domain name. Same problem as with ailun.com. Not blocked by a blacklist, just no data found.

Just for fun I decided to turn off pfB and try again. Everything resolves just fine when pfB is turned off. When it is enabled again, these domains fail.

I am running pfBLockerNG Devel v3.2.0_20 under pfSense 24.03-RELEASE on an SG-5100. I have not made substantive changes to my system (other than system/package updates) in some time.

Holding off upgrading to 24.11 for now while I wait for any ideas/pointers on how to solve this... thanks!

12 Comments
2024/11/28
02:56 UTC

2

DNS Resolver fails after enabling pfBlockerNG (DNSBL)

Does anyone have any idea why the DNS Resolver doesn't work after enabling DNSBL? I tried doing some diagnostics (Diagnostic -> DNS Lookup), but unfortunately, 127.0.0.1 returns "No response".

1 Comment
2024/11/27
06:56 UTC

2

Does pfblockerng now require an account to use ASN features?

Seen this notice after updating.

New alert found: To utilize the ASN functionality, you must register for a free IPinfo Account. Review IP Tab for more information.

2 Comments
2024/11/26
21:20 UTC

1

[Bug] TLD Allow/IDN/Regex python blocking events do not Null Block as described intended or adhere to global blocking/logging setting

1 Comment
2024/11/23
22:49 UTC

1

Failed to download MaxMind_BD_Proxy

On pfSense 2.7.2, pfBlockerNG-devel 3.2.0_20.

Since (I think) Wednesday last week, I’ve been getting errors saying:

[ pfB_PRI3_v4 - MaxMind_BD_Proxy_v4 ] Download FAIL [ 11/18/24 18:30:01 ]

  DNSBL, Firewall, and IDS (Legacy mode only) are not blocking download.

 [ 11/18/24 18:30:01 ]

 The link to the feed is https://www.maxmind.com/en/high-risk-ip-sample-list and, when I copy and paste this into my web browser, I can see a page with a list of IPv4 addresses.

 The IPv4 “group listing” shows:

Format: Auto

State: On

Source: https://www.maxmind.com/en/high-risk-ip-sample-list

Header/Label : MaxMind_BD_Proxy

 I don’t see any alerts that are blocking this link. I’m at a loss.

2 Comments
2024/11/18
19:17 UTC

2

RPi Lists not parsing

does anybody know why the following two lists are failing to parse? first thought was ABP-style, but i thought the parser was modified some number of updates back to accomodate OISD's transition to ABP-style.

https://raw.githubusercontent.com/RPiList/specials/refs/heads/master/Blocklisten/malware https://raw.githubusercontent.com/RPiList/specials/refs/heads/master/Blocklisten/Phishing-Angriffe

[ RPi_Malware ]			 Reload [ 11/15/24 11:51:02 ] . completed .
No Domains Found! Ensure only domain based Feeds are used for DNSBL!

[ RPi_Phishing ]		 Downloading update [ 11/15/24 11:51:25 ] .. 200 OK
No Domains Found! Ensure only domain based Feeds are used for DNSBL!
7 Comments
2024/11/15
21:37 UTC

2

Blocking Lists à la PiHole

Does anyone know if one is able to create different block/allow lists in pfBlocker for multiple clients? Thx.

2 Comments
2024/11/13
21:10 UTC

1

IPSec Problem

The middle connection is working perfectly, please ignore it. However, the first and last connections have the same remote, and the first connection with the SPI (the unnamed one) was not created by me; it appears and disappears on its own.

please help to solve problem the IPSec connection is destroyed

https://preview.redd.it/hpbnzaqxoo0e1.png?width=1312&format=png&auto=webp&s=da19c6c986cdd7249be67c1cafacd3ecbb9f3d3a

2 Comments
2024/11/13
14:56 UTC

2

Top Group Count

I’ve cleared all logs for reporting and Top Group Count won’t reset, clear. Running latest version pflockerng-devel

4 Comments
2024/11/03
19:04 UTC

3

DNS fails every hour

I recently updated to version 3.2.0_20. Since then I’ve been having an issue where DNS resolution fails for a full minute at 1 minute past every hour. If I disable pfb, the issue goes away. I don’t see any stop/starts of unbound during this time and nothing in the pfblockerng.log. I’m running this on netgate 7100, with pfSense 24.03

14 Comments
2024/10/30
13:59 UTC

0

?????Streaming services - HowTo unblock?????

To whom can assist:

I have noticed after enabling PFBlockerNG on my network i am unable to get various streaming apps to stream shows. ALL the apps work as far as opening but many or all shows on that service give errors.

I have tried looking up the literal near hundreds of sites that are called when you pick various shows but is there a good way to manage/allow anything a streaming service needs to work?

5 Comments
2024/10/28
00:06 UTC

1

Not Blocking Some Google & Apple with hagezi

EDit: Solved with Workaround.

I Am Using HaGezi Pro+ on Apple IPad. It’s blocked Some but the following are not blocked. I’m surprised, So I Switched to Hagezi full, same result. Shouldn’t it be blocking these?

adservice.google.com
analytics.google.com

ads.youtube.com

Apple

weather-analytics-events.apple.com
metrics.mzstatic.com
api-adservices.apple.com
iadsdk.apple.com

18 Comments
2024/10/26
23:33 UTC

1

BlockerNG-devel 3.2.0_20 - Spamhaus (Failed or invalid Mime Type: [application/x-ndjson|0])

Updated to BlockerNG-devel 3.2.0_20 and using the new Spamhaus feeds (direct from the feeds section)

i.e.

https://www.spamhaus.org/drop/drop_v4.json
https://www.spamhaus.org/drop/drop_v6.json

These don't seem to be working through, getting the following when doing a reload...

I believe pfBlockerNG-devel v3.2.0_19 | Patreon brought in the new json feed "Add "application/x-ndjason" file mime-type for the new Spamhaus json Feed".

Anyone have any ideas? Is this supposed to be working?

---------------------

Source: pfblockerng.log

[ Spamhaus_Drop_v4 ] Downloading update .. 200 OK
[PFB_FILTER - 17] Failed or invalid Mime Type: [application/x-ndjson|0]

[ pfB_Primary_Tier_v4 - Spamhaus_Drop_v4 ] Download FAIL [ 10/27/24 08:48:22 ]
DNSBL, Firewall, and IDS (Legacy mode only) are not blocking download.

----------

[ Spamhaus_Drop6_v6 ] Downloading update .. 200 OK
[PFB_FILTER - 17] Failed or invalid Mime Type: [application/x-ndjson|0]

[ pfB_Primary_Tier_v6 - Spamhaus_Drop6_v6 ] Download FAIL [ 10/27/24 08:48:25 ]
DNSBL, Firewall, and IDS (Legacy mode only) are not blocking download.

2 Comments
2024/10/26
23:06 UTC

1

pfsense - pfblockdeng - stopped download some ASN files

Approx 10 days ago, some ASN files when downloaded are empty files.

Is anybody else having this issue?

It has been working for many months untill approx 10 days ago.

Running Netgate 6100MAX and latest pfBlockerNG

eg: from the log file

=========================================

[ AS14618_v4 ] Downloading update .

Downloading ASN: 14618...... completed ..

Empty file, Adding '127.1.7.7' to avoid download failure.

=========================================
If I manually try to download them they have the required data in the files.

https://api.bgpview.io/asn/14618/prefixes

See below for the first few lines

{
  "status": "ok",
  "status_message": "Query was successful",
  "data": {
    "ipv4_prefixes": [
      {
        "prefix": "3.3.3.0/24",
        "ip": "3.3.3.0",
        "cidr": 24,
        "roa_status": "Valid",
        "name": "AT-88-Z",
        "description": "Amazon Technologies Inc.",
        "country_code": "US",
        "parent": {
          "prefix": "3.0.0.0/9",
          "ip": "3.0.0.0",
          "cidr": 9,
          "rir_name": "ARIN",
          "allocation_status": "unknown"
        }
      },
18 Comments
2024/10/22
06:46 UTC

1

pfBlocker Rules not working as Expected

8 Comments
2024/10/22
01:47 UTC

4

pfBlockerNG-Devel 3.2.0_20: Legit update?

Update: BBcan177 confirmed that 3.2.0_20 is a legitimate update, writing:

The devs forgot to include one patch for a GeoIP page save issue. So that required a bump to _20

I have installed it and it's working fine.

Original post follows:

_________________________________________________________________________________________

My pfSense CE 2.7.2 dashboard shows that pfBlockerNG-devel 3.2.0_19 is no longer the most current version, having been superseded by 3.2.0_20.

I did not find any announcement of a pfBlockerNG-devel 3.2.0_20 on the Patreon BBcan177 page or in email from Patreon.

I did not find an announcement on this r/pfBlockerNG subreddit.

I don't find an announcement on the Netgate pfBlockerNG forum.

Is pfBlockerNG-devel 3.2.0_20 a legitimate, intentional update for pfSense CE 2.7.2 firewalls?

https://preview.redd.it/vgmp8c23v5wd1.png?width=976&format=png&auto=webp&s=7525c8e03db5dd05be5575a15f850df77602e7c6

4 Comments
2024/10/21
19:40 UTC

3

pfsense updates to 2.7.1 but faisl to update to 2.7.2

I am just trying to get the latest version of pfblockerng

I have another thread dealing with this but for some reason reddit will not let me post another comment so new thread...I mean reddit is sucking lately right? IS it just me?

Does pfsense and pfblockerng have discord channels? I mean reddit blows chunks nowadays

SO, I updated pfsense to 2.7.1 and all good

I then update to pfsense 2.7.2 and receive a failure at the very end as below: anyone have any ideas how to fix this? I mean I can't even reboot as the error is related to the efi folder...

Editted:

I did reboot the system and it DID reboot just fine-regardless of the efi error

I DID have enough storage space available-I am using a 256GB SSD and with a LOT of space free after pfsense and packages are installed

logs below------------------------------

Updating pfSense-core repository catalogue...

Fetching meta.conf: . done

Fetching packagesite.pkg: . done

Processing entries: . done

pfSense-core repository update completed. 4 packages processed.

Updating pfSense repository catalogue...

Fetching meta.conf: . done

Fetching packagesite.pkg: ......... done

Processing entries: .......... done

pfSense repository update completed. 550 packages processed.

All repositories are up to date.

Updating pfSense-core repository catalogue...

Fetching meta.conf:

Fetching packagesite.pkg:

pfSense-core repository is up to date.

Updating pfSense repository catalogue...

Fetching meta.conf:

Fetching packagesite.pkg:

pfSense repository is up to date.

All repositories are up to date.

Checking for upgrades (9 candidates): ......... done

Processing candidates (9 candidates): ......... done

Checking integrity... done (0 conflicting)

The following 9 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:

curl: 8.5.0 -> 8.6.0 \[pfSense\]

pfSense: 2.7.1 -> 2.7.2 \[pfSense\]

pfSense-base: 2.7.1 -> 2.7.2 \[pfSense-core\]

pfSense-default-config: 2.7.1 -> 2.7.2 \[pfSense\]

pfSense-kernel-pfSense: 2.7.1 -> 2.7.2 \[pfSense-core\]

pfSense-pkg-pfBlockerNG-devel: 3.2.0\_7 -> 3.2.0\_19 \[pfSense\]

pfSense-repo: 2.7.1 -> 2.7.2 \[pfSense\]

strongswan: 5.9.11\_2 -> 5.9.11\_3 \[pfSense\]

unbound: 1.18.0\_1 -> 1.19.1 \[pfSense\]

Number of packages to be upgraded: 9

No packages are required to be fetched.

Integrity check was successful.

Updating pfSense-core repository catalogue...

Fetching meta.conf:

Fetching packagesite.pkg:

pfSense-core repository is up to date.

Updating pfSense repository catalogue...

Fetching meta.conf:

Fetching packagesite.pkg:

pfSense repository is up to date.

All repositories are up to date.

Checking integrity... done (0 conflicting)

The following 1 package(s) will be affected (of 0 checked):

Installed packages to be REINSTALLED:

pfSense-boot-2.7.2 \[pfSense-core\]

Number of packages to be reinstalled: 1

[1/1] Reinstalling pfSense-boot-2.7.2...

[1/1] Extracting pfSense-boot-2.7.2: .......... done

Updating the EFI loader

install: //boot/efi/efi/boot/INS@ABy1Xh: Input/output error

pkg-static: POST-INSTALL script failed

failed.

Failed

----------logs above

5 Comments
2024/10/18
22:33 UTC

1

IDN converted: [ can’t ] [ xn--cant-x96a ] custom DNSBL list

Hello,

i need some help please with pfBlocker devel v.3.2.0_17

i added a list to my DNSBL Groups but the log shows the list is empty

log for the specific blocklist from the update

[ Streaming ] Reload [ 10/17/24 07:03:45 ] . completed .
  IDN converted: [ can’t ] [ xn--cant-x96a ].
  ----------------------------------------------------------------------
  Orig.    Unique     # Dups     # White    # TOP1M    Final                
  ----------------------------------------------------------------------
  3        3          3          0          0          0                    
  ----------------------------------------------------------------------

here is the raw file that i added from github Streaming

what does this mean

IDN converted: [ can’t ] [ xn--cant-x96a ].

can i get some help here please....

Thanks

1 Comment
2024/10/18
13:33 UTC

3

slowness on the Internet

https://preview.redd.it/y3xrcjkyf3vd1.png?width=1199&format=png&auto=webp&s=cba818c513febb6f4268939c9485c367fc286237

Hello,

I've just started using PfBlockerNG at my school. Users are now complaining about slowness on the Internet, and I feel it too. Only users on PfBlockerNG experience them. Have I done something wrong? I've provided you with a screenshot of the PfBlockerNG info and the technical features of my PfSense.

DHCP is configured so that my Windows server is the DNS, and if it doesn't know the resolution (it only knows how to resolve internally), it forwards the request to the Pfsense's DNS resolver, which deals with PfBlockerNG.

It also takes at least 15 minutes to update the PfBlockerNG lists.

My Pfsense is connected in 10G on our 10G fiber link and in 10G to the LAN, then my clients are in 1G.

Thanks for your advice

23 Comments
2024/10/16
10:20 UTC

2

pfB_PRI1_v4 no detections

Hi Folks, I' still pretty new to this. I'm still learning a lot with pfBlockerNG-devel & pfSense.

This dashboard of pfBlockerNG-devel/pfSense gives me the following stats:
pfB_PRI1_v4 1,965 0
DNSBL_EasyList 77,217 30294
DNSBL_ADs 9,511 46663
DNSBL_Malicious 494,603 764
DNSBL_Malicious2 2,013 2202
DNSBL_ADs_Basic 86,534 41

CINS Army was giving me an issue getting to groups (dot) io (typing in the link directly frose the interface), so I disabled it (on my old router). Now that I'm on the new router, the lack of detection is more noticeable. FYI, both are NetGate appliances!

I have no idea wat I should have enabled or disabled. I have not found a great explanation of the feeds (maybe my lack of knowledge). I think for the most part, I have a pretty generic setup.

FYI pfSense 24.03 and pfBlockerNG-devel 3.2.0_18

any help or guidance would be awesome!!

0 Comments
2024/10/15
13:57 UTC

2

Return User - Confused about IP

I previously used pfBlockerNG, and disabled it as streaming things like Paramount Plus wouldn't work. I am trying to reinstate pfBlocker, but cannot seem to figure out IP whitelists. I have three streaming devices on the inside network which are in an alias, which I'd like to bypass the block lists from pfBlocker. I cannot see where to add this alias. When I change the rule order in the pfblocker config, it allows too many things to bypass the pfblocker rules, which defeats the whole purpose. Any help would be greatly appreciated.

3 Comments
2024/10/15
03:03 UTC

1

pfSense crash each time I save GeoIP alias changes.

Resolved by installing patch identified below by BBCan177

(Original post appears below)

I'm running pfBlockerNG-devel 3.2.0_18 on pfSense CE 2.7.2. I have all of my GeoIP aliases set to Alias Native mode. I have a configured Maxmind key valid since 2020-03-28 for GeoLite2 Country, City, and ASN databases

Each time I try to save an alias in the Firewall --> pfBlockerNG--> IP--> GeoIP tab, pfSense crashes, reloads the prior configuration, and leaves me with a notice on the dashboard that reads:

pfSense has detected a crash report or programming bug. Click here for more information.

Clicking on the link reveals a crash log like the one shown below.

Crash report begins. Anonymous machine information:
amd64
14.0-CURRENT
FreeBSD 14.0-CURRENT amd64 1400094 #1 RELENG_2_7_2-n255948-8d2b56da39c: Wed Dec 6 20:45:47 UTC 2023 root@freebsd:/var/jenkins/workspace/pfSense-CE-snapshots-2_7_2-main/obj/amd64/StdASW5b/var/jenkins/workspace/pfSense-CE-snapshots-2_7_2-main/sources/F
Crash report details:
PHP Errors:
[13-Oct-2024 11:43:32 America/New_York] PHP Fatal error: Uncaught TypeError: array_path_enabled(): Argument #1 ($arr) must be of type array, int given, called in /etc/inc/config.lib.inc on line 1250 and defined in /etc/inc/util.inc:3662
Stack trace:
#0 /etc/inc/config.lib.inc(1250): array_path_enabled(-1, 'notifications/s...', 'disable')
#1 /etc/inc/notices.inc(379): config_path_enabled('notifications/s...', 'disable')
#2 /etc/inc/notices.inc(662): notify_via_smtp('pfSense is rest...')
#3 /etc/inc/notices.inc(151): notify_all_remote('pfSense is rest...')
#4 /etc/inc/config.lib.inc(239): file_notice('config.xml', 'pfSense is rest...', 'pfSenseConfigur...', '')
#5 /etc/inc/config.lib.inc(695): restore_backup('/cf/conf/backup...')
#6 /usr/local/www/pfblockerng/pfblockerng_Africa.php(405): write_config('[pfBlockerNG] s...')
#7 {main}
thrown in /etc/inc/util.inc on line 3662
[13-Oct-2024 11:43:32 America/New_York] PHP Fatal error: Uncaught TypeError: array_path_enabled(): Argument #1 ($arr) must be of type array, int given, called in /etc/inc/config.lib.inc on line 1250 and defined in /etc/inc/util.inc:3662
Stack trace:
#0 /etc/inc/config.lib.inc(1250): array_path_enabled(-1, 'notifications/s...', 'disable')
#1 /etc/inc/notices.inc(379): config_path_enabled('notifications/s...', 'disable')
#2 /etc/inc/notices.inc(662): notify_via_smtp('PHP ERROR: Type...')
#3 /etc/inc/notices.inc(151): notify_all_remote('PHP ERROR: Type...')
#4 /etc/inc/config.lib.inc(1154): file_notice('phperror', 'PHP ERROR: Type...', 'PHP errors')
#5 [internal function]: pfSense_clear_globals()
#6 {main}
thrown in /etc/inc/util.inc on line 3662
No FreeBSD crash data found.

Rebooting pfSense (to test after a clean start) does not have any effect -- the problem remains.

I have not knowingly tinkered with pfBlocker files, directories, ownerships, or permissions outside of what I was directed to do in dealing with the problematic update, roll-back, and re-release.

Is this unique to my pfSense CE installation or have others experienced this? Any suggestions for resolving it?

3 Comments
2024/10/13
16:23 UTC

0

Hagezi list - no domain found

hi all,

I'm trying to add Hagezi's DNS blocking list to my pfblockerng

I put the blocking lists under DNSBL

Most of the lists work except for 3:

RPZ Wildcard Asterix DNS Masq

So the lists apparently don't contain domains, where in pfBlockerNG do I put these lists for them to work?

edit: I tried putting them in ipv4 and it also didn't work not sure where else I can put them

3 Comments
2024/10/09
13:45 UTC

1

Reports timing out.

As the title says, the reports section is timing out. This started while back.

I’ve tried uninstalling and setting up from fresh and also upgraded to the latest and is still timing out.

Any ideas?

5 Comments
2024/10/07
22:38 UTC

2

Is there a way to downgrade version?

Hi All,

I seem to have issues with the latest DEV 3.2.0_18. that's using very high CPU, i have an old version that's on another device 3.2.0_8, working great. Both devices running 2.7.2.

Both instances on unbound mode (I'm experiencing the same issue with the python mode). If i disable the service, CPU comes back to normal levels.

Thank you

1 Comment
2024/10/06
14:22 UTC

0

Am i overdoing it?

14 Comments
2024/10/05
13:23 UTC

Back To Top