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

    Is my install of pfBlocker hosed?

    Scheduled Pinned Locked Moved pfBlockerNG
    10 Posts 2 Posters 573 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.
    • B
      bhjitsense
      last edited by

      I've been experiencing weird issues with this lately. I have uninstalled and rebuilt from scratch, but still having 2 primary issues;
      I'm running devel 2.2.5_33 and pfsense 2.4.5 p1.

      1. Unlocking a domain to debug does not work. It lists it as unlocked, and even if I clear my DNS cache or use a different browser, that same domain still resolves to the VIP.

      2. Firewall DNS lookup is somehow bypassing pfBlocker (Diagnostic > DNS Lookup). Anything I put in here that I know to be in DNSBL always resolves to actual IP. This used to be where I could test to see if a domain was blocked or not.

      DaddyGoD 1 Reply Last reply Reply Quote 0
      • DaddyGoD
        DaddyGo @bhjitsense
        last edited by

        @bhjitsense said in Is my install of pfBlocker hosed?:

        Unlocking a domain to debug does not work. It lists it as unlocked, and even if I clear my DNS cache or use a different browser, that same domain still resolves to the VIP.

        Hi,

        are you using this?
        8f5ceef0-74b7-4c94-a43c-18a2509b2104-image.png

        @bhjitsense "Firewall DNS lookup is somehow bypassing pfBlocker (Diagnostic > DNS Lookup). Anything I put in here that I know to be in DNSBL always resolves to actual IP. This used to be where I could test to see if a domain was blocked or not."

        what kind of diagnostics is what is on NGFW (real time) and let’s say an app (pfBlockerNG) can affect it?

        Cats bury it so they can't see it!
        (You know what I mean if you have a cat)

        1 Reply Last reply Reply Quote 0
        • B
          bhjitsense
          last edited by bhjitsense

          @DaddyGo
          Unlocking a domain shouldn't require running an Update. Screen Shot 2020-07-23 at 12.43.08 PM.png

          what kind of diagnostics is what is on NGFW (real time) and let’s say an app (pfBlockerNG) can affect it?

          I'm not sure I understand what you're asking.

          DaddyGoD 1 Reply Last reply Reply Quote 0
          • DaddyGoD
            DaddyGo @bhjitsense
            last edited by

            @bhjitsense said in Is my install of pfBlocker hosed?:

            Unlocking a domain shouldn't require running an Update.

            yes, but..... pfBlockerNG works well if properly configured
            (I would try it, .......you know the database)

            "I'm not sure I understand what you're asking."

            just watch what I show you about a domain (DNSBL of course and nslookup)

            like:

            6bcc5349-76f8-4f4f-a46e-ad6244338a80-image.png

            and

            3cafc0c2-b548-4954-9f3a-1c2a0c49fafc-image.png

            Cats bury it so they can't see it!
            (You know what I mean if you have a cat)

            1 Reply Last reply Reply Quote 0
            • B
              bhjitsense
              last edited by bhjitsense

              @DaddyGo
              It's my understanding, if I run an update after unlocking the domain, it would then re-lock that domain. Unlocking is only temporary until a CRON update is ran.

              Screen Shot 2020-07-23 at 12.57.02 PM.png

              I'm fairly certain my configuration is correct - although that's what i'm trying to determine. Obviously an update task is ran regularly, otherwise, these domains wouldn't be listed in the Reports at all.

              That's interesting with your example. That's what I'm seeing too. However, I KNOW in the recent past, when I would do a DNS lookup in pfsense of a known-blocked domain (such as your example), pfsense would show the VIP address (10.10.10.1).

              DaddyGoD 1 Reply Last reply Reply Quote 0
              • DaddyGoD
                DaddyGo @bhjitsense
                last edited by DaddyGo

                @bhjitsense said in Is my install of pfBlocker hosed?:

                It's my understanding, if I run an update after unlocking the domain, it would then re-lock that domain.

                you haven’t said that so far, so this is indeed the right approach?!?

                well, I'm testing and I wouldn't have thought but need an update, just look at my previous example...:

                82cd01df-dedc-43f9-8627-96ff8e9b8f85-image.png

                pfBlockerNG does not block, after the upgrade

                @bhjitsense "That's interesting with your example. That's what I'm seeing too. However, I KNOW in the recent past, when I would do a DNS lookup in pfsense of a known-blocked domain (such as your example), pfsense would show the VIP address (10.10.10.1)."

                the firewall diagnostic tools must work independently of the installed packages!
                (otherwise it makes no sense to control what you block, disable, etc.)

                ++++edit:
                I think the "UNLOCK" is not what you want, although @BBcan177 would know more about it, but I haven't seen it on the forum in a long time

                Cats bury it so they can't see it!
                (You know what I mean if you have a cat)

                1 Reply Last reply Reply Quote 0
                • B
                  bhjitsense
                  last edited by

                  I ran an update, it did not unlock that domain, but running a CRON or Force did. However, just running the update, that domain is still blocked. It even shows up in the reporting as a hit, but unlocked.

                  Screen Shot 2020-07-23 at 1.32.42 PM.png

                  1 Reply Last reply Reply Quote 0
                  • B
                    bhjitsense
                    last edited by

                    Screen Shot 2020-07-23 at 1.35.00 PM.png

                    Even Whitelisting it still alerts and blocks.

                    1 Reply Last reply Reply Quote 0
                    • B
                      bhjitsense
                      last edited by bhjitsense

                      @DaddyGo I found what was causing the issue.

                      I have several VLANS. One of which is a Guest Wifi VLAN. I wanted pfBlocker/DNSBL to be bypassed for this VLAN. So a while back I was trying to figure out how to make that happen. Via this forum, I came up with this to put in Custom Options in DNS Resolver.

                      server:
                          access-control-view: 192.168.2.0/24 bypass
                          access-control-view: 192.168.0.0/24 dnsbl
                      view:
                          name: "bypass"
                          view-first: yes
                      view:
                          name: "dnsbl"
                          view-first: yes
                          include: /var/unbound/pfb_dnsbl.*conf
                      

                      Where 192.168.2.0/24 is the Guest vlan. DNSBL was successfully bypassed on that VLAN with this. But after removing all this code, I now see DNS Lookup successfully shows when a domain is blocked;

                      Screen Shot 2020-07-23 at 2.13.30 PM.png

                      Then when I Unlock the domain, it is immediately resolvable;

                      Screen Shot 2020-07-23 at 2.13.58 PM.png

                      Apparently, the Custom Option workaround works but may cause intended or unwanted actions within pfBlocker. Hopefully this can be a native feature in the future (DNSBL bypass for specific VLAN)

                      DaddyGoD 1 Reply Last reply Reply Quote 0
                      • DaddyGoD
                        DaddyGo @bhjitsense
                        last edited by

                        @bhjitsense said in Is my install of pfBlocker hosed?:

                        I found what was causing the issue.

                        The forum is good, because it makes you think... 😉

                        Cats bury it so they can't see it!
                        (You know what I mean if you have a cat)

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