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

    pfBlockerNG block local DNS lookup

    Scheduled Pinned Locked Moved pfBlockerNG
    17 Posts 3 Posters 2.1k 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.
    • R
      revengineer
      last edited by revengineer

      So I have tried the custom list as described here

      Problem is that when I pfBlockerNG -> Update -> Force update, the Permit Outbound rule is always placed at the end where it does me no good.

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

        I found the "Rule Order" feature, but none of the options work for me. In specific, I simply cannot allow pfBlockerNG to reorder ALL my rules including my non-pfBlockerNG pfsense rules. The missing option is

        |pfB_Pass/Match|pfB_Block/Reject|All other Rules| (original format)
        
        johnpozJ 1 Reply Last reply Reply Quote 0
        • johnpozJ
          johnpoz LAYER 8 Global Moderator @revengineer
          last edited by johnpoz

          Wouldn't Shouldn't this work?

          order.png

          Or would that put any any above pfb block?

          I am not a fan really of any sort of "auto" rules.. I just use pfblocker for alias managment.. And then manually use those aliases in rules I create..

          You could put your allow to pfsense for dns rule in floating, while pfb rules on interface(s)

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.8, 24.11

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

            The instructions read

            Select the 'Order' of the Rules
             Selecting 'original format', sets pfBlockerNG rules at the top of the Firewall TAB.
             Selecting any other 'Order' will re-order all the rules to the format indicated!

            I interpret that has reordering all my pfsense rules. I have my rules in the order they must be executed and putting all my pfsense pass rules before pfsense reject rules will not work.

            It seems that the only way out is to disable/delete the faulty blacklist until this is fixed. There should be an easier way, mistakes can happen.

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

              @revengineer

              Click on the blue infoblock Icon for the "ACTION" setting.

              You can use "ALIAS type" Action settings and manually create your own rules.

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

              R 1 Reply Last reply Reply Quote 1
              • R
                revengineer @BBcan177
                last edited by

                @bbcan177 I may just be dense here but I do not see how this changes thing. To illustrate my problem, please see the following rules
                Capture2.PNG

                pfB_DNSBLIP contains the 192.168.1.1 IP which I need to allow. I am allowing this in pfB_PermitOutbound, which is however executed after pfB_DNSBLIP. If I move pfB_PermitOutbound to the top, everything works fine, but the pfBlockerNG update process recreates the rules and original order, thus preventing 192.168.1.1 to pass. This problem seems to be the same whether I define 192.168.1.1 as an alias or put it in a custom list set to "Permit Outbound".

                Am I thinking about this wrong?

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

                  This thread seems to deal with the same issue but I am not sure I understand. The problem seems to be that all pfB deny rules are generated at the top of my rules table and I am do not know how to place a superseding permit rule at the top even if an alias is used.

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

                    @revengineer said in pfBlockerNG block local DNS lookup:

                    This thread seems to deal with the same issue but I am not sure I understand. The problem seems to be that all pfB deny rules are generated at the top of my rules table and I am do not know how to place a superseding permit rule at the top even if an alias is used.

                    Are you using pfBlockerNG-devel?

                    RFC 1918 addresses should have been filtered out automatically.

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

                    R 1 Reply Last reply Reply Quote 0
                    • R
                      revengineer @BBcan177
                      last edited by

                      @bbcan177 No I am using the non-devel version.

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

                        @revengineer said in pfBlockerNG block local DNS lookup:

                        @bbcan177 No I am using the non-devel version.

                        Upgrade to pfBlockerNG-devel, there are so many fixes around Rule ordering and sanitizing of IPs.

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

                        R 1 Reply Last reply Reply Quote 0
                        • R
                          revengineer @BBcan177
                          last edited by

                          @bbcan177 So you are saying this upgrading would fix this particular issue? (I have been hesitant because I am worried about things breaking.)

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

                            @revengineer said in pfBlockerNG block local DNS lookup:

                            @bbcan177 So you are saying this upgrading would fix this particular issue? (I have been hesitant because I am worried about things breaking.)

                            There is a monumental task to backtrack changes in pfBlockerNG-devel -> pfBlockerNG, its too much work and no time to do that on my own free time.

                            You have options:

                            1. Stay with pfBlockerNG:
                            • Enable "Suppression" in the general tab, that should remove any RFC1918 addresses that it finds. I am not 100% sure if that covers DNSBL IP tho, would have to test it.
                            • Use Alias Type Action settings if none of the pre-defined Auto-Rule ordering works for your needs.
                            1. Move to pfBlockerNG-devel:
                            • Which is what I recommend
                            • It is being actively supported and developed.
                            • I try my best to address any issues as they are found.

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

                            R 1 Reply Last reply Reply Quote 0
                            • R
                              revengineer @BBcan177
                              last edited by

                              @bbcan177 Thank you, thank you, thank you!!! The "Suppression" option was disabled and enabling fixed the problem. The 192.168.1.1 IP is now begin removed from the URLhaus blacklist.

                              I think I also now understand the ALIAS solution. I would need to convert ALL pfB lists to aliases and completely forgo the auto rules. This seems to be good practice in general and I may consider this.

                              Finally, I do plan on updating to the devel version eventually, probably when I update to pfSense 2.5.0 in the future. This will take some time and I need to make sure I carve the time out from my schedule to address the issue. Right now, I am too busy at work and need the internet to just work for my video conferences.

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