Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    PfBlockerNG v2.0 w/DNSBL

    Scheduled Pinned Locked Moved pfBlockerNG
    1.1k Posts 192 Posters 1.7m Views
    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.
    • C
      cmb
      last edited by

      This has been merged, it'll be live in the package repo within at most ~15 minutes of the time of this post.

      I largely relied on all your reports here for testing, only checking that the basics function and there isn't anything malicious, or grossly wrong at a glance. If there are issues, BBCan, please follow up with pull requests and I'll make sure one of us gets them merged promptly. Those who were beta testing, it'd help if you can reinstall latest from the standard package repo and report back.

      Thanks BBCan!

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        @cmb:

        Those who were beta testing, it'd help if you can reinstall latest from the standard package repo and report back.

        Done, all works pretty well (as before). :D

        1 Reply Last reply Reply Quote 0
        • BBcan177B
          BBcan177 Moderator
          last edited by

          @cmb:

          This has been merged, it'll be live in the package repo within at most ~15 minutes of the time of this post.

          I largely relied on all your reports here for testing, only checking that the basics function and there isn't anything malicious, or grossly wrong at a glance. If there are issues, BBCan, please follow up with pull requests and I'll make sure one of us gets them merged promptly. Those who were beta testing, it'd help if you can reinstall latest from the standard package repo and report back.

          Thanks BBCan!

          Thanks Chris!  :)

          "Experience is something you don't get until just after you need it."

          Website: http://pfBlockerNG.com
          Twitter: @BBcan177  #pfBlockerNG
          Reddit: https://www.reddit.com/r/pfBlockerNG/new/

          1 Reply Last reply Reply Quote 0
          • H
            hda
            last edited by

            Package update succeeded on the second reinstall from v1.10, after ~11 min. on an Alix pfSense 2.2.5 (ro). Thank you BBcan :)

            Update: I followed BBcan's instructions below for starting DNSBL and that worked too. Excellent extension.

            1 Reply Last reply Reply Quote 0
            • BBcan177B
              BBcan177 Moderator
              last edited by

              Here are some basic instructions to get started with DNSBL.

              1. Open the pfBNG "DNSBL" Tab:

              (Use the defaults unless you have a need to use otherwise)
              Enter the DNSBL VIP as 10.10.10.1
              Enter the DNSBL Listening Port as 8081
              Enter the DNSBL SSL Listening port as 8443
              Select the DNSBL Listening Interface as Lan

              For the DNSBL Firewall Rule select all of the LAN subnets that access the DNS Resolver.
              Ensure that all Devices that use the DNS Resolver, have the Resolver as its only DNS setting for DNSBL to function properly.

              DNSBL IP Firewall Rule Settings:
              Select Deny outbound or as per your requirements
              select Enable logging

              Alexa  (is optional, you can skip this until later if you wish)
              Select Top 1K
              Select the TLD Inclusions as ca,co,com,io,me,net,org or as required.

              In the Custom List you may enter any domain you wish to Whitelist.

              Save your settings

              1. Open the "DNSBL Feeds" Tab:

              Create a new DNSBL Alias

              Enter DNS Group Name as ADs
              Enter Description as DNSBL ADverts

              DNSBL:

              Enter the Header/Label and Source URL as follows:
              (Use copy/paste as plain text for the URL)

              Format Auto and State ON

              yoyo
              http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext

              hpHosts_ads
              http://hosts-file.net/ad_servers.txt

              Adaway
              https://adaway.org/hosts.txt

              Cameleon
              http://sysctl.org/cameleon/hosts

              Select List Action as Unbound
              Select Update Frequency as Once a day

              Alexa:
              Do not enable the Alexa Whitelist for this ADverts based alias, as Alexa also posts the top ADvert servers. So using Alexa whitelist, will interfere with ADvert Blocking.

              Add any other domains that you wish to block in the Custom List.

              Save your settings

              1. Open the "DNSBL" Tab:

              Click DNSBL Enable checkbox.
              Save your settings

              1. Open the "Update" Tab:

              Select Force Update

              You should now see the DNSBL Feeds being downloaded and parsed. Once that is complete, goto the Dashboard, and confirm that the widget is populated correctly.

              1. Goto the pfBlockerNG "Alerts" Tab:

              Any domain that is blocked will be reported here. For HTTPS alerts, the SRC IP and URL are not captured due to Browser security measures.

              As a test, goto www.aol.com  and www.yahoo.com  and see some alerts populate.

              There are several other DNSBL Feeds that can be used with pfBNG DNSBL. I will post that at a later date, once users get their basic configurations working. There is also an ADBlock Easylist tab, which is pretty self-explanatory.

              "Experience is something you don't get until just after you need it."

              Website: http://pfBlockerNG.com
              Twitter: @BBcan177  #pfBlockerNG
              Reddit: https://www.reddit.com/r/pfBlockerNG/new/

              1 Reply Last reply Reply Quote 0
              • N
                n3by
                last edited by

                @cmb:

                …

                I largely relied on all your reports here for testing, only checking that the basics function and there isn't anything malicious, or grossly wrong at a glance.
                ...
                Those who were beta testing, it'd help if you can reinstall latest from the standard package repo and report back.

                Thanks BBCan!

                uninstalled test 77 DEV and installed 2.0 from official on 2 boxes v2.2.4 & v2.2.5

                At first look it was ok, up and running but I see that I have to manual start service```
                dnsbl pfBlockerNG DNSBL Web Server

                This service not running after update is something that I had before when beta testing on all boxes.
                1 Reply Last reply Reply Quote 0
                • N
                  ntct
                  last edited by

                  I also update from dev to 2.0, it work properly, a powerful package

                  Thanks! BBcan177

                  1 Reply Last reply Reply Quote 0
                  • W
                    wcrowder
                    last edited by

                    @cmb:

                    Those who were beta testing, it'd help if you can reinstall latest from the standard package repo and report back.

                    Thanks BBCan!

                    Done, ran the standard tests, all good. Thanks for all the work BB!

                    1 Reply Last reply Reply Quote 0
                    • P
                      pfcode
                      last edited by

                      Work like a charm, Thanks! For some reason, First attempt stuck at the 'Downloading MaxMind databases' part. Second attempt worked.

                      Release: pfSense 2.4.3(amd64)
                      M/B: Supermicro A1SRi-2558F
                      HDD: Intel X25-M 160G
                      RAM: 2x8Gb Kingston ECC ValueRAM
                      AP: Netgear R7000 (XWRT), Unifi AC Pro

                      1 Reply Last reply Reply Quote 0
                      • V
                        vito
                        last edited by

                        @pfcode:

                        Work like a charm, Thanks! For some reason, First attempt stuck at the 'Downloading MaxMind databases' part. Second attempt worked.

                        I had this also, second time worked fine
                        prior, i was on the latest build of PFB 1.x

                        1 Reply Last reply Reply Quote 0
                        • BBcan177B
                          BBcan177 Moderator
                          last edited by

                          Looks like I have a file caching issue with the download function. I will get that resolved asap and add the relevant download code directly to the install code.

                          "Experience is something you don't get until just after you need it."

                          Website: http://pfBlockerNG.com
                          Twitter: @BBcan177  #pfBlockerNG
                          Reddit: https://www.reddit.com/r/pfBlockerNG/new/

                          1 Reply Last reply Reply Quote 0
                          • B
                            Bastion
                            last edited by

                            Installed and configured with DNSBL, all went smoothly and working flawlessly since.

                            Great package by great people ! Many thanks BBcan177

                            1 Reply Last reply Reply Quote 0
                            • W
                              Wolf666
                              last edited by

                              After months of testing I just installed pfBlockerNG 2.0 from official repository, everything is ok.
                              Thanks BBCan, ottimo lavoro amico mio!

                              Modem Draytek Vigor 130
                              pfSense 2.4 Supermicro A1SRi-2558 - 8GB ECC RAM - Intel S3500 SSD 80GB - M350 Case
                              Switch Cisco SG350-10
                              AP Netgear R7000 (Stock FW)
                              HTPC Intel NUC5i3RYH
                              NAS Synology DS1515+
                              NAS Synology DS213+

                              1 Reply Last reply Reply Quote 0
                              • J
                                JasonJoel
                                last edited by

                                @pfcode:

                                For some reason, First attempt stuck at the 'Downloading MaxMind databases' part. Second attempt worked.

                                Ditto. Worked on 2nd try.

                                I setup DNSBL per the instructions above, and it looks like everything is worked as advertised. Great work!

                                Jason

                                1 Reply Last reply Reply Quote 0
                                • I
                                  Ibor Daru
                                  last edited by

                                  Excellent!!!

                                  Confirmed also: second try (simply reinstalled package after first update attempt)

                                  Really great job. Where can I donate?

                                  1 Reply Last reply Reply Quote 0
                                  • T
                                    trinidadrancheria
                                    last edited by

                                    Installed, It stopped at the same place as most others, being lazy I refreshed which reinstalled it again :D (3 less clicks than packages/reinstall/confirm) :P

                                    Working GREAT! Gonna enable DNSBL for INBOUND Monday (using Alias) :)

                                    1 Reply Last reply Reply Quote 0
                                    • BBcan177B
                                      BBcan177 Moderator
                                      last edited by

                                      Here is a PR to fix the Installation issue being reported…

                                      https://github.com/pfsense/pfsense-packages/pull/1189

                                      Once this is merged, if anyone has similar issues, please report back. Thanks!

                                      "Experience is something you don't get until just after you need it."

                                      Website: http://pfBlockerNG.com
                                      Twitter: @BBcan177  #pfBlockerNG
                                      Reddit: https://www.reddit.com/r/pfBlockerNG/new/

                                      1 Reply Last reply Reply Quote 0
                                      • F
                                        fraglord
                                        last edited by

                                        If you move your configuration from DNS Forwarder to DNS Resolver in order to use pfBlockerNG: For multi-WAN configurations you have to have forwarding mode enabled. See also here: https://doc.pfsense.org/index.php/Unbound_DNS_Resolver

                                        pfSense 2.4.0 (amd64) running on IGEL H710C | 1G RAM | 8G SSD | INTEL PRO/1000 PT Dual NIC

                                        1 Reply Last reply Reply Quote 0
                                        • H
                                          Hugovsky
                                          last edited by

                                          Thanks BBcan177, and everyone that made this package possible. Great jpb.

                                          @fraglord:

                                          If you move your configuration from DNS Forwarder to DNS Resolver in order to use pfBlockerNG: For multi-WAN configurations you have to have forwarding mode enabled. See also here: https://doc.pfsense.org/index.php/Unbound_DNS_Resolver

                                          Can you elaborate? I have multi-wan and forwarding disabled and everything works.

                                          1 Reply Last reply Reply Quote 0
                                          • C
                                            cmb
                                            last edited by

                                            Latest PR merged.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.