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

    pfBlockerNG is blocking DNS

    Scheduled Pinned Locked Moved pfBlockerNG
    6 Posts 3 Posters 903 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.
    • D
      dhjdhj
      last edited by

      I'm running 22.05. All the machines on my LAN use the pfSense software (on netgate 3100 boxes) for DNS

      I updated to the latest pfBlockerNG-devel 3.1.0_4 and now DNS no longer works. I had to (temporarily, I hope) set my machines to use external DNS servers directly.

      I'm using pfBlocker "out of the box" --- I didn't configure or change any settings, just installed and ran it.

      If I disable pfBlocker, DNS requests work again just fine.

      Any idea how I should fix this?

      Thanks in advance

      GertjanG 1 Reply Last reply Reply Quote 0
      • johnpozJ johnpoz moved this topic from General pfSense Questions on
      • GertjanG
        Gertjan @dhjdhj
        last edited by

        @dhjdhj said in pfBlockerNG is blocking DNS:

        I'm using pfBlocker "out of the box" --- I didn't configure or change any settings, just installed and ran it.

        pfblokcerng-devel, out of the box, does nothing.
        That is : it doesn't load any firewall rules with lists with IP to be blocked, no DNSBL,

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

        D 1 Reply Last reply Reply Quote 0
        • D
          dhjdhj @Gertjan
          last edited by

          @gertjan
          OK - let me try again --- as I said earlier, I updated to the latest pfBlockerNG

          I was running an older version with the previous version of pfSense and everything was working just fine, DNS included.

          I simply installed the latest package --- I changed nothing myself explicitly. That said, the installer itself said something about updating firewall rules but I don't know if it did anything, I didn't see anything different.

          All that said, the above was really just background information. With pfBlocker installed, if I enabled it, the regular DNS forwarder doesn't work, the machines on my LAN can't resolve names (though they can reach actual external sites via IP addresses).

          If I disable pfBlocker, then DNS works fine.

          So my question stands --- what part/setting/config aspect of pfBlocker would stop the DNS process on my pfSense box from working properly.

          Thanks in advance.

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

            @dhjdhj

            Well,
            What are your settings ?
            Firewall rules ?
            Is unbound running ? What mode ?
            Etc.

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

            D 1 Reply Last reply Reply Quote 0
            • D
              dhjdhj @Gertjan
              last edited by

              @gertjan
              Thanks again for responding, I do appreciate it.

              That said, I would prefer to approach this issue a little more methodically as opposed to just looking randomly through lots of rules and hundreds of settings, etc.

              So some observations and consequential questions

              1. The previous version of pfBlocker was not blocking DNS requests
              2. You pointed out that installing an update doesn't change anything (no firewall rules, etc) Therefore:
              3. If the above are both true, then it's pointless looking at firewall rules (hence my desire to be methodical)

              That said, I did observe that when one enables pfBlocker, the following rule does show up in the LAN section.

              screenshot_07.png

              I don't see anything in that rule that actually does anything at all, so I assume it's something special that pfBlocker uses somehow --- so clearly whatever is blocking DNS is happening inside pfBlocker. Is there something specifically that I should be looking for in the configuration of pfBlocker, remembering that I didn't change ANYTHING there between the previous version and the upgrade.

              Thanks

              johnpozJ 1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator @dhjdhj
                last edited by

                @dhjdhj That rule hasn't been even evaluated see the 0/0 so its not blocking anything.

                pfblocker doesn't take over dns, it just loads stuff into unbound to block it. Sure it can create firewall rules if you enable that - like the rule your showing.

                You mentioned forwarder - were you using the forwarder before (dnsmasq) and not the resolver unbound. For pfblocker to function unbound is need to be used.

                Is unbound even running, maybe that is the problem.

                If you do a dns query directly to pfsense via your fav tool, nslookup, dig, host, etc. do you get an answer, does it timeout, do you get back servfail, or nx? etc..

                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
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.