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

Redirected all DNS to pihole using pfSense. Pihole still showing some hosts as not using the DNS ?

Scheduled Pinned Locked Moved Firewalling
54 Posts 10 Posters 2.8k 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.
  • K
    keyser Rebel Alliance @abesh
    last edited by keyser Oct 25, 2024, 3:37 PM Oct 25, 2024, 3:36 PM

    @abesh Seems your setup is done correctly. Have you considered that the IP of those sessions might be hardcoded into the missing device?
    Otherwise it is likely some unknown DNS over HTTPS server you are not blocking - or vendor specific nameresolution method - in play.

    Love the no fuss of using the official appliances :-)

    A 1 Reply Last reply Oct 25, 2024, 3:39 PM Reply Quote 0
    • A
      abesh @keyser
      last edited by Oct 25, 2024, 3:39 PM

      @keyser That was my thought process as well. Seems like killing DoH is like playing whack-a-mole !!!

      V 1 Reply Last reply Oct 25, 2024, 3:41 PM Reply Quote 0
      • V
        viragomann @abesh
        last edited by Oct 25, 2024, 3:41 PM

        @abesh
        Hardcoded DNS IP will be redirected anyway.
        DoH can be an issue. You should consider to block DoH using pfBlockerNG.

        A K 2 Replies Last reply Oct 25, 2024, 3:43 PM Reply Quote 1
        • A
          abesh @viragomann
          last edited by Oct 25, 2024, 3:43 PM

          @viragomann Already blocking in pihole. But I have noticed a lot of these servers running on either cloudfront or google or amazon ec2 instances...

          V 1 Reply Last reply Oct 25, 2024, 3:46 PM Reply Quote 0
          • R
            Raffi_ @abesh
            last edited by Oct 25, 2024, 3:43 PM

            @abesh said in Redirected all DNS to pihole using pfSense. Pihole still showing some hosts as not using the DNS ?:

            @Raffi_ Yup, officially supported by Pihole. Here's the documentation : https://docs.pi-hole.net/guides/dns/unbound/

            Thanks for the tip. I learned something new. I figured it would be installed on the OS itself via apt. I just never thought about doing it that way since pfsense already had it out of the box. I may one day have to try this since I'm currently unable to run pfsense at my home setup.

            A 1 Reply Last reply Oct 25, 2024, 3:45 PM Reply Quote 0
            • A
              abesh @Raffi_
              last edited by Oct 25, 2024, 3:45 PM

              @Raffi_ Hit me up if you decide to run this. I will share my optimized unbound config file with you :) You can just replace the existing unbound config and should be good to go :)

              1 Reply Last reply Reply Quote 1
              • V
                viragomann @abesh
                last edited by viragomann Oct 25, 2024, 3:49 PM Oct 25, 2024, 3:46 PM

                @abesh said in Redirected all DNS to pihole using pfSense. Pihole still showing some hosts as not using the DNS ?:

                Already blocking in pihole.

                DoH (https) will not go to the pihole. It will go straight to the default gateway, which is pfSense, I guess.

                Edit:
                So you block the resolution of DoH hosts on the pihole?
                OK, but blocking it on pfSense would be more reliable, if a device goes to the IP directly.

                A 1 Reply Last reply Oct 25, 2024, 3:48 PM Reply Quote 0
                • K
                  keyser Rebel Alliance @viragomann
                  last edited by Oct 25, 2024, 3:48 PM

                  @viragomann It was hardcoded application IP endpoint I was reffering to - not hardcoded DNS. Aka: The APP on the device just contacts the IP directly - no DNS resolution beforehand.

                  DoH is a game of Whack a Mole - as is DoT even though most of them can be blocked by blocking port 853.

                  Unfortunately this is where everything is going (in the name of privacy - even though it is mostly used by vendors to make sure they have the revenue of selling your data rather than your ISP)

                  Love the no fuss of using the official appliances :-)

                  V 1 Reply Last reply Oct 25, 2024, 3:51 PM Reply Quote 2
                  • A
                    abesh @viragomann
                    last edited by Oct 25, 2024, 3:48 PM

                    @viragomann I think it will, if it needs to look up hostnames :) I have two lists (you can see one on the Rules screenshot). I block IPs of DoH servers in pfSense and block domains in piHole.

                    1 Reply Last reply Reply Quote 0
                    • V
                      viragomann @keyser
                      last edited by Oct 25, 2024, 3:51 PM

                      @keyser said in Redirected all DNS to pihole using pfSense. Pihole still showing some hosts as not using the DNS ?:

                      It was hardcoded application IP endpoint I was reffering to - not hardcoded DNS. Aka: The APP on the device just contacts the IP directly - no DNS resolution beforehand.

                      Got it. There is not really much you can to on the DNS to prohibit this, if it's not used then.

                      A 1 Reply Last reply Oct 25, 2024, 4:06 PM Reply Quote 0
                      • A
                        abesh @viragomann
                        last edited by Oct 25, 2024, 4:06 PM

                        @viragomann @disi1 @AndyRH @keyser So from debugging this a bit it seems that these might be showing up as "not using pihole" because maybe they send their DNS queries to pfSense which is then forwarded to pihole. Pihole thinks it is coming from pfSense and not the device itself. How do I configure pfSense so that it also send the device hostnames when forwarding the request ?

                        R V A 3 Replies Last reply Oct 25, 2024, 4:12 PM Reply Quote 0
                        • R
                          Raffi_ @abesh
                          last edited by Raffi_ Oct 25, 2024, 4:28 PM Oct 25, 2024, 4:12 PM

                          @abesh said in Redirected all DNS to pihole using pfSense. Pihole still showing some hosts as not using the DNS ?:

                          @viragomann @disi1 @AndyRH @keyser So from debugging this a bit it seems that these might be showing up as "not using pihole" because maybe they send their DNS queries to pfSense which is then forwarded to pihole. Pihole thinks it is coming from pfSense and not the device itself. How do I configure pfSense so that it also send the device hostnames when forwarding the request ?

                          This is beginning to sound like an Abbott and Costello sketch. I hope no one queried who's on first. Sorry bad joke.

                          Have you tried my original suggestion of allowing pfsense to run unbound and then point pi-hole to it?

                          A 1 Reply Last reply Oct 25, 2024, 4:14 PM Reply Quote 0
                          • A
                            abesh @Raffi_
                            last edited by Oct 25, 2024, 4:14 PM

                            @Raffi_ That was actually the first setup that I ran and I moved on to this :)

                            R 1 Reply Last reply Oct 25, 2024, 4:16 PM Reply Quote 0
                            • R
                              Raffi_ @abesh
                              last edited by Raffi_ Oct 25, 2024, 4:19 PM Oct 25, 2024, 4:16 PM

                              @abesh And we're still talking about brown or red entries? I saw all brown on your screen shot.

                              And to be clear, you had the same exact issue with that original setup which prompted you to try something else or were you trying to address something else? In my experience there might be a couple of devices which do not use pi-hole. How many exactly are you noticing?

                              A 1 Reply Last reply Oct 25, 2024, 4:22 PM Reply Quote 0
                              • A
                                abesh @Raffi_
                                last edited by Oct 25, 2024, 4:22 PM

                                @Raffi_ Yeah, let me wait and observe a bit.

                                1 Reply Last reply Reply Quote 0
                                • V
                                  viragomann @abesh
                                  last edited by Oct 25, 2024, 4:29 PM

                                  @abesh said in Redirected all DNS to pihole using pfSense. Pihole still showing some hosts as not using the DNS ?:

                                  Pihole thinks it is coming from pfSense and not the device itself.

                                  @Raffi_ said in Redirected all DNS to pihole using pfSense. Pihole still showing some hosts as not using the DNS ?:

                                  Have you tried my original suggestion of allowing pfsense to run unbound and then point pi-hole to it?

                                  I don't expect, that this makes any difference on the pihole seeing requests coming from pfSense.(?)

                                  @abesh
                                  If you want to see the origin client IPs, you have put the pihole into a separated network segment on a different interface, so that you can get rid of the masquerading rule.

                                  A 2 Replies Last reply Oct 25, 2024, 4:31 PM Reply Quote 0
                                  • A
                                    abesh @viragomann
                                    last edited by Oct 25, 2024, 4:31 PM

                                    @viragomann That makes a lot of sense. Thank you :)

                                    1 Reply Last reply Reply Quote 0
                                    • A
                                      abesh @viragomann
                                      last edited by Oct 25, 2024, 4:35 PM

                                      @viragomann Would I get anything else other than local domain name resolution for forwarded queries if I move the pihole to a different subnet ? If not I would just like to keep it as is :)

                                      V 1 Reply Last reply Oct 25, 2024, 4:41 PM Reply Quote 0
                                      • V
                                        viragomann @abesh
                                        last edited by Oct 25, 2024, 4:41 PM

                                        @abesh
                                        There is no benefit else, I can think of at the moment.

                                        A 1 Reply Last reply Oct 25, 2024, 4:46 PM Reply Quote 0
                                        • A
                                          abesh @viragomann
                                          last edited by Oct 25, 2024, 4:46 PM

                                          @viragomann Thank you so much !!!

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