Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Wildcard Blocking, Python-or-not, devel-pkg?

    Scheduled Pinned Locked Moved pfBlockerNG
    5 Posts 3 Posters 213 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • opticalcO Offline
      opticalc
      last edited by

      OK So a number of questions.

      Some dude on YT suggested we should be using pfblockerng-devel as the "old" one isnt getting updates. is that right?

      And the TLD blocking, seems not possible or else you need multiple gigs of RAM for this? that seems like a massive gap/risk?

      and whats the benefit in running in "python mode"? How do you even enabled this? As best I can tell there are 2 steps, select it from the checkbox in pgblocker's config page, and there also seems to be a place to configure it in the DNS Resolver settings called "python module" is that it?

      tinfoilmattT GertjanG 2 Replies Last reply Reply Quote 0
      • tinfoilmattT Offline
        tinfoilmatt LAYER 8 @opticalc
        last edited by

        Some dude on YT suggested we should be using pfblockerng-devel as the "old" one isnt getting updates. is that right?

        No.

        And the TLD blocking, seems not possible or else you need multiple gigs of RAM for this? that seems like a massive gap/risk?

        TLD Allow confers considerable DNSBL beyond explicit domain feeds. The only way to know if your system has enough RAM to make use of it (which it likely does) is to try it out.

        and whats the benefit in running in "python mode"?

        Unbound Python Mode was a massive improvement over the predecessor Unbound Mode. There's no use case where operating in the latter mode is preferable to the former.

        As best I can tell there are 2 steps, select it from the checkbox in pgblocker's config page, and there also seems to be a place to configure it in the DNS Resolver settings called "python module" is that it?

        Yes.

        block out log on { ix0 } inet from any to any
        block out log on { ix0 } inet6 from any to any

        opticalcO 1 Reply Last reply Reply Quote 0
        • opticalcO Offline
          opticalc @tinfoilmatt
          last edited by

          @tinfoilmatt wow great stuff thanks so much I guess Im all set now. very appreciated!

          opticalcO 1 Reply Last reply Reply Quote 0
          • GertjanG Offline
            Gertjan @opticalc
            last edited by Gertjan

            @opticalc said in Wildcard Blocking, Python-or-not, devel-pkg?:

            And the TLD blocking, seems not possible or else you need multiple gigs of RAM for this? that seems like a massive gap/risk?

            Gigs ?
            List of Internet top-level domains tells me there are about 1600 TLD's.
            TLS are dot com dot org dot net dot us dot nl etc etc, so so rather small.

            @tinfoilmatt said in Wildcard Blocking, Python-or-not, devel-pkg?:

            There's no use case where operating in the latter mode is preferable to the former.

            And yet, there are pfSense-pfBlockerng users out there that use "Unbound mode" and didn't switch over to Python mode.
            Because :
            Unbound mode wasn't a thing in the past, so not an option to chose from. pfBlockerng could modify DDNBL files, and if that happened, it restarts unbound.
            With the later (couple of years) added Python mode, this section was created :

            e6a90a61-b5f6-4dd7-8873-89d53882be98-image.png

            to explain the user (admin) what this choice is all about.
            ( not a hard choice if you take the time to read (and understand) it ^^ )
            Upon upgrading, pfSense (pfBlockerng) will not make config changes, it can modify or add options, but the admin has to make the final choice. Default is : nothing changed. So, that explain why there are many pfBlockerng users out there that that still use unbound mode because they don't know they use that mode, that is has become a config 'choice'.

            This "unbound versus Python mode" choice was very extensively discussed on this forum, as users with huge DSNSBL lists took a huge penalty when rebuilding DNSBL lists, and restating unbound forced unbound to read back in the list, which could be Megas or or bigger. The results were predictable : PHP Memory overran, or system RAM went to zero, so unbound got oomed.
            Unbound has it's own popular restart condition : restart when a new DHCP lease came in and the supplied host name in the lease needed to be registered in the DNS ..... things went downhill fast. This issue was solved by rewriting the DHCP server (entering kea) as that version has notification support.

            No "help me" PM's please. Use the forum, the community will thank you.

            1 Reply Last reply Reply Quote 1
            • opticalcO Offline
              opticalc @opticalc
              last edited by

              ah very cook thanks much for all this from the historical perspective, this really helps a lot.

              Now from the wildcard TLD blocking though, I believe that isnt simple blocking of specific TLDs. I did some tests with this enabled and not enabled.

              me@Home:/usr/local/share/ca-certificates$ host wwwwawerdg.doubleclick.com
              wwwwawerdg.doubleclick.com has address 10.10.10.1
              Host wwwwawerdg.doubleclick.com not found: 2(SERVFAIL)
              Host wwwwawerdg.doubleclick.com not found: 2(SERVFAIL)
              me@home:/usr/local/share/ca-certificates$ host wwwwawerdg.doubleclick.com
              Host wwwwawerdg.doubleclick.com not found: 3(NXDOMAIN)
              me@home:/usr/local/share/ca-certificates$
              

              that first host command there was with the wildcard tld blocking enabled, I just randomly picked that host. the second was with that option turned off. so it looks like this function will let you treat an entire domain of an "abuser" as blocked

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
              Privacy Policy · Cookie Policy