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

    pfBlockerNG 3 not blocking anything

    pfBlockerNG
    3
    10
    1.1k
    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.
    • T
      tung2567
      last edited by

      i followed this video https://www.youtube.com/watch?v=luXhXisoWhA
      to block gambling. strangely, i can still access sites like BetFred.com.
      what am i doing wrong?
      here are some of my screenshots:
      59994f18-4a65-41aa-8337-35d6c40af7b7-image.png
      c2f2844b-ed51-4e30-b675-cb603ded5959-image.png
      52c7e6c9-0f75-46a5-9c2e-c7eef97c49e9-image.png
      8f9b86c2-83be-4b73-91d7-1705c809ea5f-image.png

      1 Reply Last reply Reply Quote 0
      • R rcoleman-netgate moved this topic from pfSense Packages on
      • GertjanG
        Gertjan
        last edited by Gertjan

        @tung2567 said in pfBlockerNG 3 not blocking anything:

        https://www.youtube.com/watch?v=luXhXisoWhA

        Dono who that is. The video might be correct of course.

        But, if you want to use or buy a Ford Pick up type xyz, why go to jack-agarage-down-town.com for info ?
        Why not using the info (videos) from 'those who made it', the authors, as they tend to be well informed. They also are aware of all the pitfalls, and common users errors.

        So, go to Youtube, select the channel Netgate, and have a look at their pfBlockerNG video(s).
        Next best is (my opnion) https://www.youtube.com/@LAWRENCESYSTEMS as he talked a lot about pfBlockerng - which is of course this version : pfBlockerng

        b968a949-6156-4041-834b-f5ec5d66ca86-image.png

        also known as pfBlockerng-devel

        and not the ancient "pfBlockerng".

        @tung2567 said in pfBlockerNG 3 not blocking anything:

        to block gambling. strangely, i can still access sites like BetFred.com

        You showed some settings, but not :
        The feed you've added that contains "BetFred.com".
        Or did you add "BetFred.com" manually ?

        BetFred.com can only block what you told it to block.
        As it is very tedious to build lists with thousands of DNSBL, pfBlockerNG offers you to use lists (feeds) that are build by others (like you and me).

        pfBlockerNG will download all these lists, assembles them to one big list and use that for checking.
        Because you use the older unbound mode, you will see this line on the unbound settings page, in the custom options box :

        37a53f20-73a3-428d-8e75-8a674bdd3c04-image.png

        Knowing that, it take just a second or tow to answer you question.
        Load this file, and see if "BetFred.com" listed.
        If not, you should use another list/feed that contains BetFred.com
        Or add BetFred.com yourself.
        I did this :

        Here : I have just one DNSBL feed activated :

        e79cde55-5e6e-4894-be74-ebd548e96642-image.png

        I clicked on the pencil for 'edit' - went to the bottom and saw "DNSBL Custom_List and added the line shown :

        a6856f7e-8403-4594-81d8-7728fae92a8d-image.png

        And I hit Save.

        Now, first, a test on pfSense using the console access (GUI DNS test would also work) :

        [22.05-RELEASE][admin@pfSense.mypfsenselannetwork.net]/etc/inc: dig BetFred.com +short
        10.10.10.1
        

        Bingo, BetFred.com is now blocked.

        Or, a,other method :

        aceedf4a-ddff-4569-b179-240a6b2af24d-image.png

        Can you find the DNS request where "betfred.com" was handled ?
        Click on the big black + sign, fill in some details, and it will be blocked from now on.

        Now, check on your devices if betfred is also blocked.
        If it isn't, then you know that that device does not use 'pfSense' as a DNS server .... you a talk to the owner of the PC, or the guy who maintain your network, and ask him why this is the case ;)
        ( your device should use pfSense, probably 192.168.1.1) as a DNS server )

        Btw : consider using the python mode, as you will have more details.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        T 1 Reply Last reply Reply Quote 0
        • T
          tung2567 @Gertjan
          last edited by

          @gertjan yes, i used Devel version.
          anyway, i started all over again and made a video for you https://youtu.be/6jGxotdg3lE
          DNS block list includes all gambling sites. strange that it can still access any sites
          not sure if it matters but in my DHCP, i have DNS blank as seen here
          9d616332-0986-446c-8c4a-2225e0b1c694-image.png

          S 1 Reply Last reply Reply Quote 0
          • S
            SteveITS Galactic Empire @tung2567
            last edited by

            @tung2567 Presumably you ran the update process in pfBlocker...

            Next is to test it. On your PC run:
            nslookup BetFred.com pfSense_LAN_ip
            ...and see what it returns.

            Web browsers often use DNS over HTTPS (DoH) today, which bypasses local DNS, so you may need to disable or block that.

            Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
            When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
            Upvote ๐Ÿ‘ helpful posts!

            T 1 Reply Last reply Reply Quote 0
            • T
              tung2567 @SteveITS
              last edited by

              @steveits
              this is what i get, so it is working then! right?

              f198f8de-769c-4058-b040-fb3056f0d905-image.png

              im using betfred.com and have access to the site as you mentioned...
              0a342e1a-f46e-405f-aeab-83eaa49b3c98-image.png

              so how can i set up PFBlocker to block DoH on browsers such as firefox?
              also, i dont want PFBlocker working on IP address ranges from 192.168.1.40 through 192.168.1. 60. meaning these auto DHCP assigned 21 machines will have access to the full internet, no filter.

              meanwhile, my static assigned machines will be filtered.
              could it be done as seen here?
              0d794a9d-bcec-488c-b4c6-40ff9d0d2f8d-image.png

              S GertjanG 2 Replies Last reply Reply Quote 0
              • S
                SteveITS Galactic Empire @tung2567
                last edited by SteveITS

                @tung2567 Seems like querying 192.168.1.1 yields the block but querying 127.0.0.53 does not[edit: confused threads, sorry], so you need to figure out the DNS setup on your PC and get it to use pfSense.

                Allow/bypass can be done via the โ€œgroup policyโ€ setting in pfB. I can look at that tomorrow.

                Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                Upvote ๐Ÿ‘ helpful posts!

                1 Reply Last reply Reply Quote 0
                • GertjanG
                  Gertjan @tung2567
                  last edited by

                  @tung2567

                  This :

                  a7aa7053-8d76-4926-bee7-684fc50bdeb1-image.png

                  instructs nslookup to look for "BetFred.com" using 192.168.1.1 as the DNS source ('server').
                  192.168.1.1 is your pfSense.
                  The returned address was 10.10.10.1, and that's a pretty solid proof pfBlockerng-devel is working just fine for you.

                  When you use your Firefox, the site "BetFred.com" still showed up : this is a solid proof that your browser is not using 192.168.1.1 or pfSense (so not using pfBlockerng-devel) to do it's DNS thing.
                  Your Firefox uses another source.

                  As said several times now : install Google, ask it how to change DNS settings for Firefox, and de activate its DNS behavior : have it using the 'system' (pour PC) DNS.
                  Your PC DNS is obtained by pfSense during DHCP negotiation.
                  Even when you do not specify a DNS IP (192.168.1.1) the DHCP server settings, as you showed above, it will send over one, which is 192.168.1.1 == pfSense !!
                  This is very easy to check :

                  ipconfig /all
                  

                  and you can see what DNS your PC is using.
                  You should see :

                     Serveurs DNS. . .  . . . . . . . . . . : 192.168.1.1
                  

                  And again, yes, there are programs that override this setting, and use their own DNS, like Firefox.

                  If you set this :

                  ac68d54e-a801-4f28-89ea-869d3cfa34a6-image.png

                  then you tell your PC to use 8.8.8.8 and 8.8.4.4 as a DNS source.
                  Easy to test.
                  Set these two DNS servers in your DHCP server page, and save.
                  Now, just for the fun, disconnect your PC (remove cable a moment, or shut down the Wifi, and then re connect). This will start a DHCP negotiation.

                  Now, launch :

                  ipconfig /all
                  

                  and check what your system DNS is now.
                  Right. You'll be seeing 8.8.8.8 and 8.8.4.4. Great.
                  This means you PC is now bypassing pfSEnse for all its DNS requests.
                  So normal that : pfBlockerng-devel doesn't work.

                  Btw : no joke. Install pfBlockerng-devel on the DNS servers of Google (8.8.8.8 etc) and now this pfBlockerng-devel will work for you.
                  Please, tell us how that worked out.

                  Got it ?

                  No "help me" PM's please. Use the forum, the community will thank you.
                  Edit : and where are the logs ??

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    SteveITS Galactic Empire @Gertjan
                    last edited by

                    @gertjan said in pfBlockerNG 3 not blocking anything:

                    Firefox

                    DoH may be a factor, however if OP gets the same (not-blocked) result using nslookup (without specifying a server, hence using the PC's configured DNS) then regular DNS is also an issue on that computer.

                    @tung2567 re: bypassing DNSBL...on the DNSBL tab open the "Python Group Policy" section and add IPs there. Of course you'd need to be using Python mode. Remember to add IPv6 if you use IPv6, but realize that many programs obtain temporary IPv6 addresses to obfuscate connections a bit. On Windows "ipconfig" will list those but of course they change over time.

                    Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                    When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                    Upvote ๐Ÿ‘ helpful posts!

                    GertjanG 1 Reply Last reply Reply Quote 0
                    • GertjanG
                      Gertjan @SteveITS
                      last edited by

                      @steveits said in pfBlockerNG 3 not blocking anything:

                      then regular DNS is also an issue on that computer.

                      That's why I've asked him to check what the 'system' or 'PC' DNS was.

                      ipconfig /all
                      

                      will tell him.

                      There is also a Windows GUI-show-it-to-me-solution :

                      b4b49274-a8d9-4c7c-b0d2-abf4ca687f79-image.png

                      but my Windows is .... French
                      It does show :
                      Sever DNS : 192.168.1.1 (the good old IPv4) and 2001:470:xxxxx:2::1 (the newer IPv6), both are my pfSense LAN.
                      There shouldn't be any 8.8.8.8 here.

                      About my Firefox, version 107.0.1 : this should be un checked :

                      ce3e35cd-fcce-44b3-affe-01460f529fac-image.png

                      But it doesn't stop there.
                      Many also missed this info : HEADS UP: Be aware of Trusted Recursive Resolver (TRR) in Firefox

                      Still, look at this :

                      98f8fb12-8ff0-4a1d-ba08-7d44dea8ed81-image.png

                      It's the top most forum post in the "DHCP and DNS" forum section.
                      Written by some nerd that should know something about the subject.

                      What happens is : people see ...... bla bla ...... enter DNS here .....bla bla
                      They enter the only IP they know out of there head : 8.8.8.8
                      For some, (DNS) fails to work now.
                      The pfSense GUI initial install wizard is - IMHO - wrong.
                      It should NOT ask for any DNS details.
                      Those who need to change the default DNS settings to something else know already why they have to do so - and will be able to what needs to be done.
                      For the 99.9 % others Don't touch : resolving works of of the box.

                      Ok, true, this was known in 2018, and we all knew : this will create issues for many in the future.

                      Sorry for the ramble.

                      No "help me" PM's please. Use the forum, the community will thank you.
                      Edit : and where are the logs ??

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        SteveITS Galactic Empire @Gertjan
                        last edited by

                        @gertjan Rereading, I confused this thread with the other thread we're both in for the same topic. Sorry. :)

                        Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                        When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                        Upvote ๐Ÿ‘ helpful posts!

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