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

    DNSBL category not working

    Scheduled Pinned Locked Moved pfBlockerNG
    18 Posts 3 Posters 451 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.
    • L Offline
      loop4633
      last edited by

      Hi guys,
      I’m returning on pfsense before 10 years and I fionde it revolutioned.
      I’m trying to use DSNBL Category, I’ve selected Social Networking to Lock Facebook but not work…
      Anyone can explain to me how I can do that?
      There Is any tutorial?
      Thank you in advance to anyone can try to help me

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

        @loop4633 said in DNSBL category not working:

        There Is any tutorial?

        Nothing changed 😊

        A bit old but it still handles all the basics : pfBlockerNG on pfSense (officail Netgate Voieo channel).

        Blocking all Facebook IPs : Throw this into your favorite search engine (not Bing probably) : "how to block facebook with the ASN ?". This will work pretty well, "all Facebook" won't work anymore (which will include Whatsapp etc)


        @loop4633 said in DNSBL category not working:

        I’m returning on pfsense before 10 years and I fionde it revolutioned.

        Like Windows I guess (Windows 7 back then ?) 😊
        I guess we all changed some how.

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

        L 1 Reply Last reply Reply Quote 0
        • L Offline
          loop4633 @Gertjan
          last edited by

          @Gertjan Thank you for your answer,
          but if you suggested to me to block all ip of facebook I do understand that DNSBL Category not work? Right?

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

            @loop4633

            Never tried to block something massive as Facebook myself.
            Massive means : thousand of - not IP - but entire networks.
            Even more host names. Crack open your phone, get the "Whatsapp binary", decode it (as it is encrypted to 'protect' curious people) and you'll find the huge list with host names whatsapp uses to "call home". And things get even : better : this list can be updated dynamically.
            So even if you think you have the entire host names list, you don't ^^

            Sure enough, could could wild card blacklist the host name "facebook.com" with ... mixed (?!) results.

            Remember : you can try to block "facebook". They, facebook, hired the very best - and many of the best, with the opposite goal in mind, as do Google, Apple, Microsoft and all the other bog players.

            There is also some really good news for you : the very same question as been asked many times already, and you can find them here on this forum, with the detailed suggestions.

            Read them all, and you'll understand why I talked about ASN.

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

            L 1 Reply Last reply Reply Quote 0
            • L Offline
              loop4633 @Gertjan
              last edited by

              @Gertjan Wow, understand... I'll try to block anyone else to facebook... at this moment I'm studing pfsense, I have tryed to block social media by DNSBL category... I will test with another category to understand if it work.
              Thank you for you help

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

                @loop4633 enable the TLD Wildcard option so that it blocks the domain and subdomains

                "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/

                L 1 Reply Last reply Reply Quote 0
                • L Offline
                  loop4633 @BBcan177
                  last edited by

                  @BBcan177 Thank you for Your replay,
                  Have already activated

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

                    @loop4633 if you enabled that after, you will need to run a Force Reload DNSBL for it to take effect

                    "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/

                    L 1 Reply Last reply Reply Quote 0
                    • L Offline
                      loop4633 @BBcan177
                      last edited by

                      @BBcan177 said in DNSBL category not working:

                      @loop4633 if you enabled that after, you will need to run a Force Reload DNSBL for it to take effect

                      I've anyone that not work... I've tryed to block porn content but anything have changed...
                      I can't force reload, I only select reload all without effect

                      de380eae-a9ff-480f-b537-0c33e15a036c-image.png

                      L 1 Reply Last reply Reply Quote 0
                      • L Offline
                        loop4633 @loop4633
                        last edited by

                        pfBlockerNG has an update... now it seems to download list of porn... hope before it works...
                        Will be update you

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

                          @loop4633 said in DNSBL category not working:

                          now it seems to download list of porn... hope before it works...

                          You mean this one :

                          93328791-575a-43ce-acc2-92ed67748bef-image.png

                          You saw the word [ Large ] ?
                          This list is known to 'break' systems. Because it's huge. Only activate this list if :
                          You have time to check the auto reloads a couple of times.
                          You raised the internal PHP work memory to the max possible :

                          8624d915-d539-4883-987b-0776c52ff745-image.png

                          I typically use this list to put a system (the PHP subsystem, its limited RAM buffer) to the max for a while.
                          Btw : Porn visitors with more then one neuron, for 'reasons', always use a VPN 😊

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

                          L 1 Reply Last reply Reply Quote 0
                          • L Offline
                            loop4633 @Gertjan
                            last edited by

                            @Gertjan said in DNSBL category not working:

                            @loop4633 said in DNSBL category not working:

                            now it seems to download list of porn... hope before it works...

                            You mean this one :

                            93328791-575a-43ce-acc2-92ed67748bef-image.png

                            You saw the word [ Large ] ?
                            This list is known to 'break' systems. Because it's huge. Only activate this list if :
                            You have time to check the auto reloads a couple of times.
                            You raised the internal PHP work memory to the max possible :

                            8624d915-d539-4883-987b-0776c52ff745-image.png

                            I typically use this list to put a system (the PHP subsystem, its limited RAM buffer) to the max for a while.
                            Btw : Porn visitors with more then one neuron, for 'reasons', always use a VPN 😊

                            Thank you for your advice but is too late... pfsense ko... there is anyway to restore? or I must reinstall?

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

                              @loop4633

                              Console (or SSH ?) access still works ?
                              Console : This is normally a serial connection, and can also be a HDMI+keyboard interface.

                              Btw : Re installing is a sure value.
                              pfSense was build with one goal in mind : with one click you can export a small (a couple of mBytes max) config file and with this file you can re create the same system (on same hardware) in a matter of minutes : make the GUI work, which needs minimal steps, and then click : upload the config file back in, reboot and done.

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

                              L 1 Reply Last reply Reply Quote 0
                              • L Offline
                                loop4633 @Gertjan
                                last edited by

                                @Gertjan said in DNSBL category not working:

                                @loop4633

                                Console (or SSH ?) access still works ?
                                Console : This is normally a serial connection, and can also be a HDMI+keyboard interface.

                                Btw : Re installing is a sure value.
                                pfSense was build with one goal in mind : with one click you can export a small (a couple of mBytes max) config file and with this file you can re create the same system (on same hardware) in a matter of minutes : make the GUI work, which needs minimal steps, and then click : upload the config file back in, reboot and done.

                                I've shutdown by button and start before 5 minutes, I've deactivate porn category and now updating it... hope to resolve...

                                L 1 Reply Last reply Reply Quote 0
                                • L Offline
                                  loop4633 @loop4633
                                  last edited by loop4633

                                  Do you suggest any light category to select to test if dnsbl category work in my pfsense?
                                  Thank you

                                  L 1 Reply Last reply Reply Quote 0
                                  • L Offline
                                    loop4633 @loop4633
                                    last edited by

                                    I'm realizing that category not work properly... have tryed lingerie category but few site is really lock many other no... the block consist in corrupted loading of web page...
                                    I try also to reject with TLD, really block site that have selected but not return my the pfsense error page but only "ERR_CONNECTION_REFUSED" why?
                                    Thank you guys

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

                                      @loop4633 said in DNSBL category not working:

                                      really block site that have selected but not return my the pfsense error page but only "ERR_CONNECTION_REFUSED" why?

                                      Because of the listed DNS host names.

                                      Ultra quick example :

                                      My DNSBL page :

                                      6615c252-9bb6-4ed3-8343-31c4860d2cf1-image.png

                                      I'll take "ADs_Basic" as an example, let's open it up :

                                      541ed526-a850-409a-9500-658e4d63f525-image.png

                                      Now I have a file name : https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts

                                      Have a look at that file : https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts

                                      Take a line from the start :

                                      0.0.0.0 ck.getcookiestxt.com
                                      

                                      Copy "ck.getcookiestxt.com".

                                      Paste it here :

                                      C:\Users\Gauche>nslookup ck.getcookiestxt.com
                                      Serveur :   pfSense.bhf.net
                                      Address:  2a01:cb19:beef:dead:92ec:77ff:fe29:392c
                                      
                                      Réponse ne faisant pas autorité :
                                      Nom :    ck.getcookiestxt.com
                                      Addresses:  ::
                                                0.0.0.0
                                      

                                      The answer was ... 0.0.0.0

                                      Your browser would do the same thing : It will first do an identical DNS request for "ck.getcookiestxt.com" and receive 0.0.0.0 as an answer. It won't even try to connect to 0.0.0.0, and just show the situation :

                                      572531ae-a7c2-4ba5-8689-ae7f08da2f1f-image.png

                                      so all is fine.

                                      edit : I use the "Null block (logging)" method. The "Null block" comes from ..... 0.0.0.0.
                                      Don't use the "DNSBL Webserver/VIP" as that method was usefulle when all web sites were doing http.
                                      AS you might have noticed, "http" sites don't exist anymore. They all became https, and https (TLS) sites can not be redirected to 'another' server like the pfBlockerng web server (to show a nice error message).

                                      Ultra mega short "what is https" explanation :
                                      The browser gets the IP of the host name first, as above.
                                      When you use "DNSBL Webserver/VIP" method, it is not 0.0.0.0 (the Null answer) that gets returned, but :
                                      a7b74345-093a-4481-a72d-deec0b3141d3-image.png
                                      as 10.10.10.1 it will be.
                                      Good news ! This one answers the request !! It's the "DNSBL Webserver/VIP" after all.
                                      As the browser is using https it will receive a certificate from this web server.
                                      This certificate says it is :

                                      e7f2bcd2-53a8-4e14-96d6-d9e00cbfb746-image.png

                                      The browser goes full 😲 😰 😠 👽 mode as it wants the certificate that says "I am ck.getcookiestxt.com", not "I am pfSense-pfBNG-DNSBL-68dcca20bc53e". You'll see another browser fail message.

                                      And no, you can't make your own "ck.getcookiestxt.com" certificate on the fly, as for that to happen you need to proof that you own the domain name "ck.getcookiestxt.com".
                                      Try for yourself : get a valid, CA signed for a domain like "microsoft.com". If you manage to pull this one off, you :
                                      Will be, for a short moment, the richest man in the world.
                                      The most famous man in the world.
                                      You also just broke world's economy in a way that couldn't be done better by people like Putin, Trump, Xi-ping and Macron combined.
                                      Shortly after, water stops flowing from the tap, the power goes down. Your hear gun shots all over the place and the stage is set for an massive extinction event.

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

                                      L 1 Reply Last reply Reply Quote 0
                                      • L Offline
                                        loop4633 @Gertjan
                                        last edited by

                                        @Gertjan Very thank's,
                                        I'll try to do somethings like that...

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