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.
    • P
      pfcode
      last edited by

      After enable the OpenVPN interface, I don't see auto rules for OpenVPN neither at Floating rule nor at OpenVPN tab.

      I only see the rules that were created by enabling the Floating Rules option.  Are they the same?

      Edit: Thanks for BBCan77's explanation:

      when using "Floating Rules", By enabling OpenVPN interface, it auto selects the OpenVPN interface in each pfBNG floating rule.

      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
      • J
        josywong
        last edited by

        @josywong:

        @BBcan177:

        @josywong:

        how to de-duplicate for certain ipv4 list only?

        If you enable "de-duplication" all of the Aliases that are set as "Deny" will be de-duplicated.

        If you want to have an Alias bypass de-duplication, you can use the "Alias Native" format and manually create the firewall rule accordingly.

        thanks for pointing it out. i think i did read the exact thing as described.

        i got few more questions regarding de-duplication.
        is the whole "Deny" (deny in,out,both) consider as ONE list or 3 separated lists for de-dup?
        what happened to allow list ? do they get de-dup on "Allow" list?
        thanks in advance

        1 Reply Last reply Reply Quote 0
        • R
          rsaanon
          last edited by

          Hello folks.

          Are there any detailed/comprehensive "pbBlockerNG v2.0 w/ DNSBL" guides out there?  I've done some basic configuration, but would like details on all aspects of the pfBlockerNG configuration.

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

            HI, BBCan77

            Found 2 issues with pfSense 2.3.1, one of them is bigger, which were all reproducable by changing WAN interface parameters, e.g. tick/untick "Block bogon networks" option, save and apply changes:

            1. dnsbl service is still started, even though both pfBlockerNG and DNSBL are disabled.

            2. the bigger one, the unbound service isn't auto restarted after WAN interface changes are applied if pfBlockerNG and DNSBL are enabled.

            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
            • H
              heliop100
              last edited by

              Hi,

              I'm getting this IP 192.99.0.227 (http://coopermult.com.br) blocked.
              It's not showing on Alerts, and not match any list.

              If I change on "Default Order: | pfB_Block/Reject | All other Rules |"  to any other, the IP are unblocked for some seconds and blocked again.

              Than I change the Order again and that repeats (maybe pfBlockerNG stops for some seconds while changing the rules order?)

              Any idea?

              Thanks.

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

                @josywong:

                i got few more questions regarding de-duplication.
                is the whole "Deny" (deny in,out,both) consider as ONE list or 3 separated lists for de-dup?
                what happened to allow list ? do they get de-dup on "Allow" list?
                thanks in advance

                When you enable dedup, it works for all types of "Deny"… To avoid de-duplication for a specific Alias, you can use "Alias Native" option.  De-duplication does not occur for Permit or Match type Aliases.

                "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
                • BBcan177B
                  BBcan177 Moderator
                  last edited by

                  @rsaanon:

                  Hello folks.

                  Are there any detailed/comprehensive "pbBlockerNG v2.0 w/ DNSBL" guides out there?  I've done some basic configuration, but would like details on all aspects of the pfBlockerNG configuration.

                  There is a pfBlockerNG hangout available, if you are a pfSense Gold Member.

                  "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
                  • BBcan177B
                    BBcan177 Moderator
                    last edited by

                    @pfcode:

                    1. dnsbl service is still started, even though both pfBlockerNG and DNSBL are disabled.

                    2. the bigger one, the unbound service isn't auto restarted after WAN interface changes are applied if pfBlockerNG and DNSBL are enabled.

                    I have a fix for #1 and that will be part of the next release. For #2, I can't reproduce that issue. (If anyone else is having that issue, let me know)

                    "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
                    • BBcan177B
                      BBcan177 Moderator
                      last edited by

                      @heliop100:

                      I'm getting this IP 192.99.0.227 (http://coopermult.com.br) blocked.
                      It's not showing on Alerts, and not match any list.

                      Are you sure that "logging" is enabled in the pfBlockerNG aliases?

                      Try to run these commands from the shell to see if a list contains that IP:

                      cd /var/db/pfblockerng/deny/
                      
                      grep "192.99.0.227" *
                      grep "^192\.99\.0\." *
                      grep "^192\.99\." *
                      grep "^192\." * | grep "\/"
                      

                      "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
                      • P
                        pfcode
                        last edited by

                        @BBcan177:

                        @pfcode:

                        1. dnsbl service is still started, even though both pfBlockerNG and DNSBL are disabled.

                        2. the bigger one, the unbound service isn't auto restarted after WAN interface changes are applied if pfBlockerNG and DNSBL are enabled.

                        I have a fix for #1 and that will be part of the next release. For #2, I can't reproduce that issue. (If anyone else is having that issue, let me know)

                        Thanks. I will try to see how to reproduce it, it could be related to IPv6 thing.  What I will do is disable DNSBL, to see if unbound service is working or not (I just had the unbound service stopped for no reason again minutes ago).  then I will try to enable DNSBL, and disable IPv6, to see.  I will report back.

                        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
                        • S
                          SanderX
                          last edited by

                          Hi all,

                          I just registered so first, BBcan177, thanks for making such a great package for pfSense. It's really impressive.

                          I noticed one little issue, when I add a domain to the Custom Domain Suppression (Whitelist) and # comment after it, it seems to ignore this entry. Did anyone see this before?

                          e.g.
                          google.nl » ok
                          google.nl # dutch google » ignored

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

                            Hi SanderX,

                            Thanks for reporting, I have this scheduled to be fixed in the next release. You can manually edit the file to fix this issue as follows:

                            Edit  /usr/local/www/pfblockerng/pfblockerng_alerts.php    LINE #94

                            And add a space as indicated in red:

                            Original:
                            $dnssupp_dat .= "{$dnssupp[0]}{$dnssupp[1]}\r\n";

                            New:
                            $dnssupp_dat .= "{$dnssupp[0]} {$dnssupp[1]}\r\n";

                            Then edit the DNSBL suppression custom list and add a space before each # and Save. Follow that with a Force Reload DNSBL.

                            "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
                            • S
                              SanderX
                              last edited by

                              That did the job. Thanks for the quick reply!

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

                                Is there a way to add this to pfBlockerNG or Aliases, this list of domains

                                050GLwG8.txt

                                1 Reply Last reply Reply Quote 0
                                • A
                                  AspiringNSATroglodyte
                                  last edited by

                                  On a fresh install of 2.3.1-RELEASE-p1:

                                  install pfblockerng package from within pfsense

                                  Enable Floating rules.

                                  Enable DNS Blocklist

                                  Select "unbound"

                                  Run Cron

                                  No Floating rule in firewall rules.

                                  Please help me find the reason.

                                  It used to work just fine before.

                                  1 Reply Last reply Reply Quote 0
                                  • RonpfSR
                                    RonpfS
                                    last edited by

                                    Did you enabled pfBlockerNG ? Is dnsbl service up and running ?
                                    Did you run a Force Upload ? a Force Reload?
                                    Did you look at the pfBlockerNG.log?

                                    2.4.5-RELEASE-p1 (amd64)
                                    Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
                                    Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

                                    1 Reply Last reply Reply Quote 0
                                    • A
                                      AspiringNSATroglodyte
                                      last edited by

                                      Did you enabled pfBlockerNG ? Is dnsbl service up and running ? YES; General > Enable pfBlockerNG > Check
                                      Did you run a Force Upload ? a Force Reload? Firewall > pfBlockerNG > Update: Update, Cron, Reload – no Force option available. Ran CRON
                                      Did you look at the pfBlockerNG.log? Yes, I don't see any errors.

                                      I'm stumped; Never had a problem with pfb

                                      1 Reply Last reply Reply Quote 0
                                      • RonpfSR
                                        RonpfS
                                        last edited by

                                        Well I am still on 2.2.6 and I see in pfBlockerNG: Update

                                        Force Update will download any new Alias/Lists.
                                        Force Cron will download any Alias/Lists that are within the Frequency Setting (due for Update).
                                        Force Reload will reload all Lists using the existing Downloaded files. This is useful when Lists are out of 'sync' or Reputation changes were made.

                                        But if there are no IP in you DSNBL table, then there will be no need for floating rules.

                                        Configure settings for Firewall Rules when any DNSBL Feed contain IP Addresses

                                        @BBcan177:

                                        Actually as soon as you enable "DNSBL IP" it will add "1.1.1.1" to make sure its not empty… So the Floating rule should show if that option was enabled..

                                        Do you have any IPV4 alias defined ?

                                        2.4.5-RELEASE-p1 (amd64)
                                        Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
                                        Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

                                        1 Reply Last reply Reply Quote 0
                                        • A
                                          AspiringNSATroglodyte
                                          last edited by

                                          @RonpfS:

                                          Well I am still on 2.2.6 and I see in pfBlockerNG: Update

                                          Force Update will download any new Alias/Lists.
                                          Force Cron will download any Alias/Lists that are within the Frequency Setting (due for Update).
                                          Force Reload will reload all Lists using the existing Downloaded files. This is useful when Lists are out of 'sync' or Reputation changes were made.

                                          But if there are no IP in you DSNBL table, then there will be no need for floating rules.

                                          Configure settings for Firewall Rules when any DNSBL Feed contain IP Addresses

                                          @BBcan177:

                                          Actually as soon as you enable "DNSBL IP" it will add "1.1.1.1" to make sure its not empty… So the Floating rule should show if that option was enabled..

                                          Do you have any IPV4 alias defined ?

                                          I have no IP aliases defined

                                          I can ping 10.10.10.1 but there is no rule displayed in the gui.

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

                                            @chain:

                                            Is there a way to add this to pfBlockerNG or Aliases, this list of domains

                                            Hi Chain, that list can be parsed without issues… If that was from a URL, just add the URL to a DNSBL alias ... You could also paste that into a custom list and the package will parse it...

                                            "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
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.