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.8m 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.
    • BBcan177B
      BBcan177 Moderator
      last edited by

      @wiz561:

      @Deadpool:

      have you force reloaded on the Update Tab?

      I most definitely did.  The exclusion list has been sitting in there for months and never worked.  I just got motivated to look into why it's not working today.

      What kind of Domain are you suppressing?

      Can you grep for it:

      grep "example.com" /var/db/pfblockerng/dnsbl/*.txt
      grep "example.com" /var/db/pfblockerng/dnsblalias/*.txt
      

      "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
        hulleyrob
        last edited by

        Ive just noticed an annoying bug when pressing save on the Firewall/pfBlockerNG/Edit/IPv4 page if there are any errors all your data gets wiped out :-(

        Can you please leave the data so if can be corrected?

        Thanks

        Rob

        1 Reply Last reply Reply Quote 0
        • D
          Deadpool
          last edited by

          is it possible to whitelist with placeholders?

          for example whitelist video.domain.com*
          or how would i do that correctly?

          because i have a domain where videos are not playable and it looks like this -> video.domain.com/abc=43 and the id's always change.

          1 Reply Last reply Reply Quote 0
          • X
            XmickS
            last edited by

            Windows is showing the "no internet access" icon when I'm connected to my home network(see image). I noticed that when I disable DNSBL, windows says I do have "internet access".  How should I solve this?

            Maybe windows does a dns test which gets blocked by the DNSBL.

            ![No intenet access.png](/public/imported_attachments/1/No intenet access.png)
            ![No intenet access.png_thumb](/public/imported_attachments/1/No intenet access.png_thumb)
            ![No intenet access.png](/public/imported_attachments/1/No intenet access.png)
            ![No intenet access.png_thumb](/public/imported_attachments/1/No intenet access.png_thumb)

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

              Already discussed @BBcan177:

              @jycai:

              I suppress couple domains and looks like the yellow triangle icon has gone away. Thanks!
              Just wondering, is there any other way to solve this issue, like put the local PCs in a white list or something like that?

              I think you suppressed:  www.msftncsi.com

              Recent discussion here:
              https://forum.pfsense.org/index.php?topic=111460.msg620939#msg620939

              The package doesn't have a built-in whitelist. Its up to the user to decide what to block.

              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
              • X
                XmickS
                last edited by

                Okay thanks for the reply!

                I added " www.msftncsi.com/" to the DNSBL supression list and did a "Reload All", but that didn't solve the issue. When I browse to "www.msftncsi.com/" it still gets blocked. I also killed firewall states, disabled and enabled pfblocker and DNSBL. That too didn't work. How should I proceed?

                I already had one domain listed in the domain supression list, and that also still gets blocked. Maybe I have some setting wrong?

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

                  @XmickS:

                  Okay thanks for the reply!

                  I added " www.msftncsi.com/" to the DNSBL supression list and did a "Reload All", but that didn't solve the issue. When I browse to "www.msftncsi.com/" it still gets blocked. I also killed firewall states, disabled and enabled pfblocker and DNSBL. That too didn't work. How should I proceed?

                  I already had one domain listed in the domain supression list, and that also still gets blocked. Maybe I have some setting wrong?

                  " www.msftncsi.com/" should be "www.msftncsi.com" without the quotes (")

                  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
                  • X
                    XmickS
                    last edited by

                    I know  :), I just added the quotes to make it more clear to see in my reply.

                    I also rebooted and that also didn't help.

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

                      Add both to the following to the suppress list and run a "Force Reload - DNSBL"

                      www.msftncsi.com
                      msftncsi.com

                      You can run the following to see if a domain is listed:

                      grep "msftncsi.com" /var/unbound/pfb_dnsbl.conf
                      grep "msftncsi.com" /var/db/pfblockerng/dnsbl/*.txt
                      grep "msftncsi.com" /var/db/pfblockerng/dnsblorig/*
                      

                      "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

                        @Deadpool:

                        is it possible to whitelist with placeholders?

                        for example whitelist video.domain.com*
                        or how would i do that correctly?

                        because i have a domain where videos are not playable and it looks like this -> video.domain.com/abc=43 and the id's always change.

                        Wildcards don't work in DNSBL Suppression. Needs to be an exact match…

                        "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
                        • X
                          XmickS
                          last edited by

                          @BBcan177:

                          Add both to the following to the suppress list and run a "Force Reload - DNSBL"

                          www.msftncsi.com
                          msftncsi.com

                          You can run the following to see if a domain is listed:

                          grep "msftncsi.com" /var/unbound/pfb_dnsbl.conf
                          grep "msftncsi.com" /var/db/pfblockerng/dnsbl/*.txt
                          grep "msftncsi.com" /var/db/pfblockerng/dnsblorig/*
                          

                          Only the last command gave an output:```
                          /var/db/pfblockerng/dnsblorig/ADs_someone.orig:127.0.0.1 msftncsi.com
                          /var/db/pfblockerng/dnsblorig/ADs_someone.orig:127.0.0.1 www.msftncsi.com

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

                            maybe you need to clear the DNS cache on windows side

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

                              Hi Xmicks,

                              The three commands will show:

                              First grep cmd:  If a domain is listed in the DNSBL Blocklist.
                              Second grep  :  This will show which Feed has a Blocked Domain
                              Thirds grep    : These are the original files from the Feed…

                              So you don't have any reference to  msftncsi.com  in DNSBL....

                              If its still blocked, clear your browser and OS cache... If you ping it and its still getting the DNSBL IP, then its probably still in your cache....

                              Can use this to clear the cache from Chrome :  chrome://net-internals/#dns

                              "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
                              • X
                                XmickS
                                last edited by

                                Now the domains are surpressed! Don't know why it suddenly worked, because I already had both www.msftncsi.com and msftncsi.com listed. And had forced reload multiple times before.

                                Nonetheless it workes now  :D

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

                                  @XmickS:

                                  Now the domains are surpressed! Don't know why it suddenly worked, because I already had both www.msftncsi.com and msftncsi.com listed. And had forced reload multiple times before.

                                  Nonetheless it workes now  :D

                                  ok Next time you have some more tools to work with :)  Any other issues 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
                                  • X
                                    XmickS
                                    last edited by

                                    Alright, thanks both for the help! :)

                                    Well there is one thing. Everytime I open a webpage on the pfsense forum I get a 403 error(see image). I then have to quickly reload that same webpage again to open it. If I wait to long(+-3 seconds) i get the same 403 error. Is this caused by pfBlockerNG?

                                    pfBlocker is the only package I have installed at the moment. If I remember it correctly it started when I installed pfBlocker, but it might as wel be something else.

                                    ![403 error.PNG](/public/imported_attachments/1/403 error.PNG)
                                    ![403 error.PNG_thumb](/public/imported_attachments/1/403 error.PNG_thumb)

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

                                      I can't find the thread, but others have noticed this also… Don't think it has anything to do with the package, as I have seen it myself on my mobile while away from my home. However, I haven't seen the issue in a few weeks...

                                      "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
                                      • D
                                        Deadpool
                                        last edited by

                                        @BBcan177:

                                        @Deadpool:

                                        is it possible to whitelist with placeholders?

                                        for example whitelist video.domain.com*
                                        or how would i do that correctly?

                                        because i have a domain where videos are not playable and it looks like this -> video.domain.com/abc=43 and the id's always change.

                                        Wildcards don't work in DNSBL Suppression. Needs to be an exact match…

                                        thanks your your feedback

                                        could this be something to add in a future version of pfBlocker? does it make sense anyway?

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

                                          Hi - I'm having some trouble with pfBlockerNG updates when DNSBL is enabled. The update process spikes my CPU to 100% for more than an a hour. I've tried manual updates as well as CRON, but no success in completing the updates.  Any thoughts?

                                          **Saving configuration [ 06/23/16 21:16:18 ] …

                                          Adding Unbound Server:Include line... completed
                                          Validating database... completed
                                          Reloading Unbound ... completed
                                          DNSBL update [ 0 ]… completed

                                          DNSBL - Adding Unbound custom 'include' option

                                          Saving new DNSBL web server configuration to port [ 8081 & 8443 ]
                                          Saving pfSense config…
                                          VIP address configured. Widget Packet statistics reset.
                                          Restarting Service DNSBL...
                                          UPDATE PROCESS START [ 06/23/16 21:16:30 ]

                                          ===[  DNSBL Process  ]================================================

                                          **Saving configuration [ 06/23/16 21:37:53 ] …
                                          Restarting Service DNSBL...
                                          CRON  PROCESS  START [ 06/23/16 22:00:00 ]
                                          [ FookEasy ]
                                          Update found
                                          [ FookPriv ]
                                          Update found
                                          UPDATE PROCESS START

                                          ===[  DNSBL Process  ]================================================

                                          1 Reply Last reply Reply Quote 0
                                          • Q
                                            q54e3w
                                            last edited by

                                            What spec machine fook? If it's a Pi the likely right, it's it's s top end Xeon then somethings likely wrong. How many lists, de-dupe on etc?

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