• pfBlockerNG_devel commit reverse

    Pinned
    38
    12 Votes
    38 Posts
    3k Views
    TommyMooT

    Updated pfBlocker devel from 3.2.0_19 to 3.2.0_20 ..all good (on x86 qemu), GEOIP / ASN entrys etc. all working well, Thank you for the Update! 😊

  • pfBlockerNG-devel v3.2.0_15

    Pinned
    47
    15 Votes
    47 Posts
    5k Views
    GertjanG

    @SteveITS said in pfBlockerNG-devel v3.2.0_15:

    On 24.11, pfBlockerNG 3.2.0_16 does not include the IPInfo ASN token fields.

    pfBlockerNG-devel 3.2.1_20 does.

    Totally agree with this. For me, this implies :

    Use pfBlockerNG-devel 3.2.1_20 - this means the latest version and thus I have to to deal with current, new issues, the old ones are gone. Chances are great the forum has very actual info and probably even a solution right now for these new issues.
    When we use pfBlockerNG 3.2.0_16, will have to deal with the issues already known and solved.

    So, what will it be ? _20 or version _16 ?

    For me, the choice is a simple one. I've been using the 'devel' version and never regretted it 😊

  • pfBlockerNG-devel v3.0.0 - No longer bound by Unbound!

    Pinned
    94
    10 Votes
    94 Posts
    78k Views
    GertjanG

    @flepti said in pfBlockerNG-devel v3.0.0 - No longer bound by Unbound!:

    my setup too

    You mean you use pfSense 2.4.5 and "007" fBlockerNG-devel ?
    Easy solution : upgrade ?!

  • Firewall Rules Order

    Pinned
    34
    0 Votes
    34 Posts
    20k Views
    V

    so happy to find the explanation relating the tables and lists!! thanks!

  • Bypassing DNSBL for specific IPs

    Pinned
    114
    5 Votes
    114 Posts
    77k Views
    JonathanLeeJ

    @mcury thanks for the reply I will test this soon and yet you know how it works out.

  • Support pfBlockerNG development!

    Pinned
    5
    4 Votes
    5 Posts
    11k Views
    A

    I can not wait to see how he is going to do the mass import for IP4 and DNSBL, I hope its just a simple text doc you can just upload just like you would a backup file on Ublock extension.
    Looking forward to it.

    I may have to get some more Ram lol only got 8 gig and I bet doing mass list imports will hit the Ram hard.

    Great work hope it's coming along well ;)

    Great job.

  • PfBlockerNG v2.1 w/TLD

    Pinned
    124
    1 Votes
    124 Posts
    252k Views
    E

    It would be really cool if it could automatically update the blocked TLDs based on the spamhaus statistics (https://www.spamhaus.org/statistics/tlds/) on a regular schedule. I realize that this may be more difficult than it sounds as I cant seem to find a spamhaus TLD feed, just a website. But if we dont dream then it will never happen!

  • PfBlockerNG v2.0 w/DNSBL

    Pinned
    1k
    2 Votes
    1k Posts
    2m Views
    RonpfSR

    @ck42 The entry is related to Firewall / pfBlockerNG/ DNSBL / DNSBL Category Blacklist.

  • PfBlockerNG

    Pinned
    1k
    2 Votes
    1k Posts
    2m Views
    K

    @breeoge said in PfBlockerNG:

    @belt9:

    I wanted to chime in here as I just updated from a month old RC to 2.4.0-RELEASE last night and ran into this problem today.

    I haven't read through all of the many pages of the many threads that seem related to this issue (show how popular pfBNG is!), so maybe this has already been covered.

    But I've seen several people state that this doesn't happen on ZFS - I have a raidz2 ZFS install, and this happened to me, just throwing that out there.

    That is good to know. Thank you for the report.  BBcan177 is currently updating it to use SQLlite and this should fix any issues in the future.  In the other thread there is a temp fix posted..

    https://create.vista.com/colors/palettes/

    Thank you
    BreeOge

    Hello my friend. Many thanks to Bbcan177 for keeping the report up to date. as a result of this, in principle, the given problems are corrected.

  • 0 Votes
    3 Posts
    78 Views
    GertjanG

    @nasheayahu

    Not sure what the "T" here means :

    1fe20e84-834a-43a6-af6c-239f8e7a4eb7-image.png

    My advise : ge rid of it.

    I've created my own DNSBL file :

    google.com microsoft.com facebook.com amazonaws.com apple.com

    Here it is :

    [25.03-BETA][root@pfSense.bhf.tld]/var/db/pfblockerng: cat pfbalexawhitelist.txt google.com microsoft.com facebook.com amazonaws.com apple.com

    My pfBlockerng-devel setup

    baa3568f-d554-4382-84bf-3664dd2f7cb8-image.png

    and before you re try reload (again) your file, check /var/db/pfblockerng/dnsblorig/ and /var/db/pfblockerng/dnsbl/ and delete files with the same Header/Label name - in my case ALEX.orig

    Now, reload DNSBL again.

    It will work :

    c0913af0-c8a3-4729-869b-091544458bae-image.png

    That said, I'm using pfBlocker-devel :

    d2c12ad0-fd33-4c66-8cef-2b7b21cf0c56-image.png

    which means I don't have old bugs. Only new ones ^^

  • pfBlockerNG alerts - IPv6 hostnames missing

    Moved
    2
    0 Votes
    2 Posts
    78 Views
    GertjanG

    @purleigh

    Your post is 'lost' 😊
    It's a question about the pfSense GUI package pfBlockerng :

    21726789-53e4-4943-9485-c5df3e3207d4-image.png

    Better : The answer can be found somewhere in that forum 😊
    And yes, it's probably a little short-coming, aka bug.

    I posted about this a while ago, and proposed a work around.
    So, I've a patch :

    Open /usr/local/pkg/pfblockerng/pfblockerng.inc
    and find

    // Collect static DHCPv6 hostnames/IPs

    Convert it into comments :

    // // Collect static DHCPv6 hostnames/IPs // foreach (config_get_path('dhcpdv6', []) as $dhcpv6) { // if (is_array($dhcpv6['staticmap'])) { // foreach ($dhcpv6['staticmap'] as $smap) { // $local_hosts[$smap['ipaddrv6']] = strtolower("{$smap['hostname']}"); // } // } // }

    and then paste just behind it :

    // Collect static DHCPv6 hostnames/IPs ## 2024-11-25 Gertjan foreach (config_get_path('dhcpdv6', []) as $ipv6_interface =>$dhcpv6) { if (is_array($dhcpv6['staticmap'])) { $pdsubnet = ''; foreach ($dhcpv6['staticmap'] as $smap) { if (strpos($smap['ipaddrv6'],'::',0) !== false) { if (get_interface_track6ip($ipv6_interface)) { $track6ip = get_interface_track6ip($ipv6_interface); $pdsubnet = gen_subnetv6($track6ip[0], $track6ip[1]); // remove '::' from prefix $pdsubnet $pdsubnet = substr($pdsubnet,0,strpos($pdsubnet,'::')); } } $local_hosts[$pdsubnet.$smap['ipaddrv6']] = strtolower("{$smap['hostname']}"); } } }

    This issue is : you use probably 'IPv6 Prefix tracking", like me.
    In that case, static FHCPv6 lease are configured like :

    5375144e-1ce3-454b-bf69-db16fe98cd82-image.png

    and that shorted IPv6 notation isn't the real IPv6.
    Or, pfBlockerng uses the IPv6 SRC IP to reverse find host names. And that will fail.

    The path shown above test for the shortened ::xx IPv6, and if it finds wone, it prepends the prefix of that LAN interface.

    Afaik, the issue isn't listed here.

  • Custom DNSBL group list errors

    3
    0 Votes
    3 Posts
    107 Views
    GertjanG

    @SJKS said in Custom DNSBL group list errors:

    custom group: vpn_ip

    Group ?
    I see 3 files that look like valid lists.
    The first one, adguard.txt with a line format like

    ||cdnexpress.art^ ||openips.cc^ ||pointed.cc^ ||rounds.cc^ ||should-licence.cc^ ...

    doesn't seem right. I said seem, as I, as a human, don't parse files ^^
    So yes, your right, it should be pre parsed.

    Only that "adguard.txt" has an issue ? All 3 of them ?

    ip.txt is an IP list, not a DNSBL list.

    edit :
    What is the URL you use to download the hostname.txt file ?
    This one - the raw one - works for me :
    https://raw.githubusercontent.com/az0/vpn_ip/refs/heads/main/data/output/hostname.txt
    any other URL probably downlaod the web page and yeah, taht will fail.
    Check here : /var/db/pfblockerng/dnsblorig/* where you can see what pfBlockerng actually downloaded.

    4d90ca54-d6e8-46b6-939a-8e770ed0db09-image.png
    The green marked lines are the IP and DNSBL list. The loaded just fine.

  • Custom Whitelist Feed

    2
    0 Votes
    2 Posts
    97 Views
    tinfoilmattT

    @m2av This would massively improve pfB's DNSBL functionality—the ability to utilize a feed as a whitelist.

  • PfBlockerNG/-devel - Normal/unnormal reboot - No Internet (DNS?)

    6
    0 Votes
    6 Posts
    158 Views
    A

    Hi there,

    pinging from the FW itself works all. No matter if domain or IP.
    pinging from devices behind the FW: nothing works.

    unfortunately changing the dnssec to disabled does also not change the problem.

    Restarting the DNS Resolver is also not changing anything if stuck in the situation.

    Thank you :)

  • List of problems/bugs in HA/CARP setups

    8
    0 Votes
    8 Posts
    629 Views
    JeGrJ

    @btspce I'd add another bullet point to it, as it seems very much pfBlocker related:

    it seems that the multiple changes pfBlocker triggers in the audit log (see #1) is also the culprit in breaking the audit mechanism of managing the max amount of config.xml copies to archive. We have both nodes of our DC cluster set to 100 steps back to still have a change to get a real user config.xml besides the pfBlocker non-changes. We now had multiple occasions of admins checking the audit logs (Config History) and having to wait for 10+min for the site to load. As we were investigating it was shown, that the /backup dir had around 14000 versions of config.xml instead of the configured 100. After finally loading the page and checking again via

    # ls -1 /conf/backup | wc -l

    it was down to 102 again. Currently I have a lab machine that wasn't touched at all for months! that reports:

    [24.03-RELEASE][admin@pfs-plus-2403.lab.test]/root: ls -1 /conf/backup/ | wc -l 5637

    The only thing that one has running continously is pfBlockerNG updating the blocklists. So no logins or config changes whatsoever but still accumulated configs without pfSense itself managing the backup count and rotating/deleting the old ones.

    That seems to very much point at pfBlockerNG as it's the only package currently, that creates that much audit logs on the side.

    Not wanting to post any blame here! Don't get me wrong. Just wanted to get as much details and infos out so we can squash those bugs :)

    Cheers :)

  • 0 Votes
    25 Posts
    4k Views
    GertjanG

    @cryptonym said in Not seeing IP blocks in Alerts area of reports tab. DNSBL shows up properly.:

    DNSBL was working, resolving them to 10.10.10.1 but no logs.

    What was missing was I left "BNSBL Mode" on Unbound (default) rather than setting it to "Unbound Python mode". That one checkbox and a reload and logging is working perfectly.

    God news - and bad news :

    I switched from Python to unbound mode :

    dd4b7379-bd2d-4636-80a6-ed2ae7b9fc05-image.png

    I tested with a listed DNDBL host entry (StevenBlack's list) 010sec.com

    Sure enough : using http, not https ....

    9ea39967-c05e-4e26-922c-cdeea4422c9a-image.png

    and sure enough :

    a33a4113-d3bc-423f-b8fe-ef28f369605b-image.png

    So Python mode isn't mandatory to make this work.

    Btw : I really though everybody had abandoned "unbound mode" by now .... as Python mode is way better/faster/much cooler ^^

    That said : imho, you can safely forget about that pFb black web server page that shows up when a visitor visits a site that is blocked.It's something that worked well in the past, when all sites were http based. Because : it needs http sites to actually work - not https.
    You know this already : https can't be intercept / redirected - not by me, not by the CIA, not by the NSA, so probably you can't neither ^^
    No body is visiting http sites anymore .... Google doesn't index them anymore for years now.
    So : the perfect DNSBL setting these days is :

    9a91c0b8-e856-4c34-af1a-273f49e945a8-image.png

    If you find people on your network still using "http" sites, go have a talk with them, before you throw them off your network. I get it, this is a bit harsh, but these days thsi should be common knowledge of any Internet user. Like : when you drive your car on the road you stay on the 'right' side of the road.

  • pfBlockerNG with RAM Disk on 25.03 beta

    7
    0 Votes
    7 Posts
    233 Views
    tinfoilmattT

    @netblues And you didn't even need to waste your time with this thread. Good job.

  • description box keeps changing to System Administrator

    8
    0 Votes
    8 Posts
    369 Views
    A

    Thanks everyone for this. I was having this problem too. It was getting quite frustrating and a search came up with this thread right away. My appreciation for those who take time to publicly ask questions and share answers.

  • 0 Votes
    6 Posts
    2k Views
    T

    @posix @Gertjan

    Replying to this old thread to say thank you. I encountered this same "pfB_PRI1_v4 Cannot allocate memory" errors on my 2100 and it was solved by increasing System/Advanced/Firewall & NAT/Firewall Maximum Table Entries from 400000 to 600000.

    The 2100 had been running without issue for many months and the last reboot was for the 24.11 upgrade. What caused me to check the 2100 was I had become unable to screen share when connecting via IPsec VPN from the outside. The IPsec connection was successful but vnc attempts to connect to a machine on the network timed out. After changing the Table Entries setting it immediately started working again.

  • pfBlockerNG blocks Greek IPs from StarLink as IP located in North America

    10
    0 Votes
    10 Posts
    457 Views
    GertjanG

    @manval said in pfBlockerNG blocks Greek IPs from StarLink as IP located in North America:

    I disabled cron in pfBlogerNG and it is still running !

    The cron task handles also the max log file sizes :

    8a399f8d-98e1-4e53-9c3b-1249432f5ceb-image.png

    so, imho, if set to disabled, it will still keep care of these files by rotating them.
    Not doing so will fill up the disk.

Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.