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

DNSBL not creating firewall rules

Scheduled Pinned Locked Moved pfBlockerNG
pfblockerngdnsblfirewall rules
24 Posts 3 Posters 4.6k 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.
  • F
    FredMcfly @A Former User
    last edited by Mar 21, 2021, 1:55 AM

    @antonio-briguglio
    Yes, I did that already.

    Quote: "I have tried enabling and disabling "Permit Firewall Rules" with "LAN" selected"

    ? 2 Replies Last reply Mar 21, 2021, 2:34 AM Reply Quote 0
    • ?
      A Former User @FredMcfly
      last edited by Mar 21, 2021, 2:34 AM

      @fredmcfly Uninstall the pfblockerNg package and then reinstall it,

      F 1 Reply Last reply Mar 21, 2021, 3:03 AM Reply Quote 0
      • ?
        A Former User @FredMcfly
        last edited by Mar 21, 2021, 2:40 AM

        @fredmcfly https://www.tecmint.com/install-configure-pfblockerng-dns-black-listing-in-pfsense/

        ? 1 Reply Last reply Mar 21, 2021, 2:54 AM Reply Quote 0
        • ?
          A Former User @A Former User
          last edited by Mar 21, 2021, 2:54 AM

          @antonio-briguglio
          https://www.firewallhardware.it/pfblockng-filtraggio-domini-e-url/
          configure as described in the two guides. A guide is in Italian but with screenshoots and easy to understand

          F 1 Reply Last reply Mar 21, 2021, 3:00 AM Reply Quote 0
          • F
            FredMcfly @A Former User
            last edited by Mar 21, 2021, 3:00 AM

            @antonio-briguglio
            I have tried to use these, but only part of it applies because I am using pfBlockerNG-devel 3.0.0_15 and the instructions at those websites use pfBlockerNG 2.x Release. So a lot of the options are no longer in version 3.0.0_15.

            1 Reply Last reply Reply Quote 0
            • F
              FredMcfly @A Former User
              last edited by FredMcfly Mar 21, 2021, 3:03 AM Mar 21, 2021, 3:03 AM

              @antonio-briguglio
              Yes, I reinstalled pflbockerng several times as well, in fact I even reinstalled pfSense from scratch.

              F 1 Reply Last reply Mar 21, 2021, 3:30 AM Reply Quote 0
              • F
                FredMcfly @FredMcfly
                last edited by Mar 21, 2021, 3:30 AM

                I even removed version 3.0 (Keep settings was not checked) and installed 2.1.4_25 and I still cannot block websites.

                B 1 Reply Last reply Mar 21, 2021, 9:44 AM Reply Quote 0
                • B
                  Bob.Dig LAYER 8 @FredMcfly
                  last edited by Mar 21, 2021, 9:44 AM

                  @fredmcfly DNSBL doesn't need any firewall rules, it is blocked in DNS.

                  F 1 Reply Last reply Mar 21, 2021, 1:11 PM Reply Quote 0
                  • F
                    FredMcfly @Bob.Dig
                    last edited by Mar 21, 2021, 1:11 PM

                    @bob-dig
                    That makes sense. Didn't think about that. But then why aren't websites blocked?

                    1 Reply Last reply Reply Quote 0
                    • B
                      Bob.Dig LAYER 8 @FredMcfly
                      last edited by Mar 21, 2021, 1:14 PM

                      @fredmcfly said in DNSBL not creating firewall rules:

                      Websites that should be blocked do show up in the Reports->Alerts tab.

                      That is like it should be.

                      F 1 Reply Last reply Mar 21, 2021, 1:18 PM Reply Quote 0
                      • F
                        FredMcfly @Bob.Dig
                        last edited by Mar 21, 2021, 1:18 PM

                        @bob-dig But I can still access the websites.

                        B 1 Reply Last reply Mar 21, 2021, 1:21 PM Reply Quote 0
                        • B
                          Bob.Dig LAYER 8 @FredMcfly
                          last edited by Bob.Dig Mar 21, 2021, 1:32 PM Mar 21, 2021, 1:21 PM

                          @fredmcfly Give an example with screenshot. It is working here.
                          Edit: Maybe your Browser is not using the pfSense DNS but something different, maybe even DoH.

                          F 1 Reply Last reply Mar 21, 2021, 7:00 PM Reply Quote 0
                          • F
                            FredMcfly @Bob.Dig
                            last edited by Mar 21, 2021, 7:00 PM

                            @bob-dig
                            So only some of the websites are being logged. But ones that aren't blocked are not logged.

                            B 1 Reply Last reply Mar 21, 2021, 7:04 PM Reply Quote 0
                            • B
                              Bob.Dig LAYER 8 @FredMcfly
                              last edited by Bob.Dig Mar 21, 2021, 7:06 PM Mar 21, 2021, 7:04 PM

                              @fredmcfly said in DNSBL not creating firewall rules:

                              But ones that aren't blocked are not logged.

                              Which is again normal.

                              F 1 Reply Last reply Mar 21, 2021, 7:13 PM Reply Quote 0
                              • F
                                FredMcfly @Bob.Dig
                                last edited by Mar 21, 2021, 7:13 PM

                                @bob-dig I agree that it is normal to have a log for a website that is blocked.

                                So any ideas why a website that is listed in the block list, fails to be blocked?

                                I have added rules to block DNS requests to the outside following this recipe.

                                Basically it blocks all outside DNS requests but allows requests to the local DNS Resolver.

                                B 1 Reply Last reply Mar 21, 2021, 7:16 PM Reply Quote 0
                                • B
                                  Bob.Dig LAYER 8 @FredMcfly
                                  last edited by Mar 21, 2021, 7:16 PM

                                  @fredmcfly For example, you probably can't block DoH like this, so you have to check your browser settings.
                                  Also post some screenshots what you have done and what is not working as expected.

                                  F 1 Reply Last reply Mar 21, 2021, 7:40 PM Reply Quote 0
                                  • F
                                    FredMcfly @Bob.Dig
                                    last edited by FredMcfly Mar 21, 2021, 7:43 PM Mar 21, 2021, 7:40 PM

                                    @bob-dig
                                    OK, I checked the browser and it is not using DoH, see figure below or click on this link:

                                    566e662c-145a-4244-9eef-7c3654bb74fd-image.png

                                    Here are my DNSBL settings:
                                    b320abca-a7da-4171-9363-b345e0d88020-image.png

                                    08cc3792-6668-4746-bf68-715b6afdc029-image.png

                                    f91dd301-e4b9-4f29-b9de-a982cac28f42-image.png

                                    b952dee3-44f4-4a08-92a3-73883952b7cc-image.png

                                    DNSL Feeds
                                    b19a9d5b-ff16-4090-9184-b72924d185d5-image.png

                                    My blacklist feed settings:
                                    d4126f2a-b598-4f0e-b49e-d48f1c02ada4-image.png
                                    e3198499-2a83-410c-941b-ef3a95801ce7-image.png

                                    When I do a force update, the feeds are downloaded and updated. Including my blacklist.

                                    ===[ DNSBL Domain/IP Counts ] ===================================
                                    
                                     1221752 total
                                      704572 /var/db/pfblockerng/dnsbl/Shallalist_porn.txt
                                      150125 /var/db/pfblockerng/dnsbl/Maltrail_BD.txt
                                      122595 /var/db/pfblockerng/dnsbl/C19_CTC.txt
                                       97559 /var/db/pfblockerng/dnsbl/Shallalist_porn_v4.ip
                                       29312 /var/db/pfblockerng/dnsbl/SFS_Toxic_BD.txt
                                       28363 /var/db/pfblockerng/dnsbl/Shallalist_redirector.txt
                                       14523 /var/db/pfblockerng/dnsbl/Shallalist_gamble.txt
                                       14273 /var/db/pfblockerng/dnsbl/SWC.txt
                                       10633 /var/db/pfblockerng/dnsbl/EasyList.txt
                                        8449 /var/db/pfblockerng/dnsbl/Adaway.txt
                                        6999 /var/db/pfblockerng/dnsbl/Spam404.txt
                                        6827 /var/db/pfblockerng/dnsbl/EasyPrivacy.txt
                                        6612 /var/db/pfblockerng/dnsbl/Shallalist_anonvpn_v4.ip
                                        6435 /var/db/pfblockerng/dnsbl/MVPS.txt
                                        3034 /var/db/pfblockerng/dnsbl/Shallalist_dating.txt
                                        2507 /var/db/pfblockerng/dnsbl/D_Me_ADs.txt
                                        1985 /var/db/pfblockerng/dnsbl/Krisk_C19.txt
                                        1951 /var/db/pfblockerng/dnsbl/Shallalist_models.txt
                                        1464 /var/db/pfblockerng/dnsbl/Yoyo.txt
                                        1180 /var/db/pfblockerng/dnsbl/Shallalist_redirector_v4.ip
                                        1146 /var/db/pfblockerng/dnsbl/Shallalist_sex_lingerie.txt
                                         482 /var/db/pfblockerng/dnsbl/myblacklist.txt
                                         390 /var/db/pfblockerng/dnsbl/Shallalist_anonvpn.txt
                                         158 /var/db/pfblockerng/dnsbl/Shallalist_sex_education.txt
                                          98 /var/db/pfblockerng/dnsbl/Juniper_v4.ip
                                          42 /var/db/pfblockerng/dnsbl/Shallalist_gamble_v4.ip
                                          23 /var/db/pfblockerng/dnsbl/D_Me_Tracking.txt
                                           6 /var/db/pfblockerng/dnsbl/Juniper.txt
                                           5 /var/db/pfblockerng/dnsbl/myblacklist_v4.ip
                                           2 /var/db/pfblockerng/dnsbl/EasyList_v4.ip
                                           1 /var/db/pfblockerng/dnsbl/Shallalist_models_v4.ip
                                    

                                    If I look at myblacklist_v4.txt I find the following lines as expected:

                                    local-data: "redd.it 60 IN A 10.10.10.1"
                                    local-data: "reddit-com.poiu.icu 60 IN A 10.10.10.1"
                                    local-data: "reddit.com 60 IN A 10.10.10.1"
                                    local-data: "reddup.co 60 IN A 10.10.10.1"
                                    

                                    But if I enter reddit.com in my browser, I can still access it and click on links. So the website is not cached in the browser and it is not blocked.

                                    pfSense says my DNS servers are as follows:
                                    164e3b6d-307f-4eca-b950-a557c664cdc8-image.png

                                    Any other information that may be helpful?

                                    F 1 Reply Last reply Mar 21, 2021, 7:50 PM Reply Quote 0
                                    • F
                                      FredMcfly @FredMcfly
                                      last edited by Mar 21, 2021, 7:50 PM

                                      Here are my Firewall rules to block DNS request to ports 53 and 853, and to force DNS request to local:
                                      37e9164a-3d2b-4cef-aff0-8a826722cde3-image.png

                                      F 1 Reply Last reply Mar 21, 2021, 7:53 PM Reply Quote 0
                                      • F
                                        FredMcfly @FredMcfly
                                        last edited by Mar 21, 2021, 7:53 PM

                                        DNS Resolver Settings:
                                        d4bc73a9-abf2-4451-9999-5e6ed482254d-image.png
                                        5480b739-dec2-42e6-a80b-2d71f1b03e8f-image.png
                                        8c58c9a7-455e-4fab-b1f4-c15e706e0e48-image.png

                                        1 Reply Last reply Reply Quote 0
                                        • F
                                          FredMcfly
                                          last edited by Mar 21, 2021, 8:16 PM

                                          So I did some experimenting and some websites in my list are indeed blocked, but other websites are not blocked even though they are listed in the file /var/db/pfblockerng/dnsbl/myblacklist.txt

                                          I'm not sure why this is happening.

                                          1 Reply Last reply Reply Quote 0
                                          12 out of 24
                                          • First post
                                            12/24
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received