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

    DNS Leaks using DNS Resolver

    Scheduled Pinned Locked Moved DHCP and DNS
    18 Posts 5 Posters 2.5k 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.
    • GertjanG
      Gertjan @ahiggs117
      last edited by

      @ahiggs117 said in DNS Leaks using DNS Resolver:

      or dnsleaktest.com

      Here you got my test result :

      5baa797c-b418-405d-ba8c-04b5302beb86-image.png

      Note that my WAN IPv4 is correct. The IPv6 also, although that "WAN IP" is actually the IP v6 of my PC, somewhere on my LAN. But that another story.

      The 2 DNS shown ..... is my IPv6 tunnel IP - the one that ends with a "::2" => ???? and the other IPv4 is my .... WAN IP => ??^2 My WAN == my DNS ?
      Yeah. As said, it's Friday.

      My main conclusion is : nice looking page full with no useful information. At least, I qualify it, using my connection, as close to BS ...

      @ahiggs117 said in DNS Leaks using DNS Resolver:

      My Netgear modem has DNS servers set inside it

      So, even if it has a modem thing integrated, converting, for example, cable or ADSL signals to an pure IP flux, it is NOT a modem but a known router.
      So, like my ISP router, which uses ADSL to connect to my ISP, it probably has it's own ISP-DNS. But pfSense isn't forwarding to my ISP router, I'm not forwarding at all.
      I use the default Resolver mode.

      To complete the question of @Bob-Dig : you should be seeing this :

      0cfc3038-e472-406b-b494-16d82e44a50a-image.png

      127..0.0.1 works great ;)
      And it is the default setting. Netgate was right !

      @ahiggs117 said in DNS Leaks using DNS Resolver:

      werent required to answer

      True. Just see it as a way to start up the thread ;)

      You use 2 WANs.
      Good question : which WAN is used for requests from unbound ?
      Both ? Using round robin ? Using the "lowest latency known" ? Random ? Other criteria ?
      In a best case - or worst case ^^, the answer can be found in the manual == the open source code.

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

      1 Reply Last reply Reply Quote 0
      • A
        ahiggs117
        last edited by

        Here is my Dashboard and also the config for the DNS Resolver
        screenshot-192.168.2.1_10443-2020.11.07-02_46_45.png screenshot-192.168.2.1_10443-2020.11.07-02_44_08.png

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

          And who is 10.8.8.1 for dns?

          Why do you have dnssec enabled if your forwarding - pointless.. Also why are you listening via tls? locally?

          Where are you settings for dns..
          dns.png

          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
          • A
            ahiggs117
            last edited by ahiggs117

            10.8.8.1 is for the ProtonVPN gateway. I have set up NAT forwarding rules for it.
            Here are the DNS server settings, sorry, will double check when I post now to make sure everything is in the message.
            screenshot-192.168.2.1_10443-2020.11.07-16_39_37.png

            These are the NAT settings that I have, for context about the Proton gateway

            screenshot-192.168.2.1_10443-2020.11.07-16_43_22.png

            edit:
            Here are the settings in my Netgear modem.


            screenshot-192.168.1.1-2020.11.07-17_06_56.png


            I have set the desired DNS servers so when I run a leak test, it only shows one or more of these three. But when I have it set to get automatically from ISP, ill see their DNS servers show up in a leak test. This is what I am trying to avoid. There is no way for me to leave these blank, dont even know if that would serve for this but either way, my DNS requests will be sent to one or two of the servers I have set in pfsense but I will also see my ISPs DNS servers in the leak test. I will change this back to my get automatically from ISP and run a leak test at dnsleaktest.com and ipleak.net so i can show the results

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

              Pfsense is not set to ask that router for dns - is I don't see it listed.. so pfsense would never ask it.. Unless pfsense was set to get dns from isp... Which you turned off - so unless something asks that router for dns - your isp dns would not be used.

              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
              • A
                ahiggs117
                last edited by

                This is exactly my frustration. I'm a complete noob to pfsense so I wasn't sure if i missed something or that I misread directions on how to set this up.
                I'm going to set the modem router to use my ISPs DNS and then run a couple tests so I can get screenshots of the repro.
                @johnpoz Thanks for confirming that I haven't done this to myself and just set it up wrong.

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

                  What client are you testing from - if its on that routers wifi, and using that routers dhcp the client would ask your router, which would then ask whatever you have in that router for dns.

                  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
                  • A
                    ahiggs117
                    last edited by

                    I was using wifi, which was connected to a wifi AP that Ive setup. That is set to forward all requests to pfsense. I also am testing on a client that is connected to a switch that has two VLANs running through it. The clients I was testing with were not connected to the Netgear routers wifi.
                    Here are the DNS tests that I ran to see what happens when I set the modem router DNS to googles resolvers 8.8.8.8 and 8.8.4.4 pfsense still has the same DNS servers as before.
                    screenshot-ipleak.net-2020.11.07-18_32_17.png
                    Capture.PNG

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

                      You understand that is what suppose to show up right if your using google.. did you think it would be 8.8.8.8

                      You have no freaking clue to what your 10.8.8.1 could be doing - prob forwarding to google ;)

                      I would suggest as I stated before - pick 1!!! Don't try and use multiple.. For those nixnet ones - why would you not just use the anycast address?

                      Maybe your router is intercepting dns? Sniff on pfsense wan and validate it sending the dns query to where you think its going..

                      Just like how pfsense can intercept dns - your router could be doing the same sort of thing.

                      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
                      • A
                        ahiggs117
                        last edited by

                        Haha yes, that is exactly what should happen because those are googles servers. Im not that dense, buddy. The reason I set those in the Netgear modem router is to prove the fact that DNS requests are getting handled there when they should just be handled by Unbound DNS resolver in pfsense.
                        The 10.8.8.1 is so the DNS requests are sent to the protonvpn interface so that the DNS requests made through the protonvpn interface go through protonvpn.

                        You can clearly see that the 10.8.8.1 should only be used by the protonvpn interface thats set in the general setup in one of my earlier posts.
                        Shouldnt ubound be stopping my ISP from intercepting requests? Isnt that part of the point of it lol?

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

                          Well I would think you router is intercepting your dns then...

                          Its a common setting in many a soho router.. Prove it to yourself.. do a sniff on pfsense wan - if you only see it sending queries to what you set, then your router is intercepting the traffic.. Just like pfsense can do if you set that up.

                          You can clearly see that the 10.8.8.1 should only be used by the protonvpn interface thats set in the general setup in one of my earlier posts.

                          But you don't know when pfsense(unbound) would use those.. You have multiple dns listed - which interface used to talk to something doesn't mean its not used.

                          If you have dns 1,2 and 3 listed as forwarders - any of those can be used.. You don't have control over when which is used..

                          I would for your testing, turn everything off but 1 dns in unbound.. And then sniff on your wan - do you see it sending to that IP.. But your dns leak shows what your router is using - then its intercepting the traffic!

                          Just like you can setup pfsense to intercept traffic... Here I set my client to use 4.2.2.2 as dns

                            Connection-specific DNS Suffix  . :
                             Description . . . . . . . . . . . : Realtek PCIe GbE Family Controller
                             Physical Address. . . . . . . . . : 00-13-3B-2F-67-63
                             DHCP Enabled. . . . . . . . . . . : No
                             Autoconfiguration Enabled . . . . : Yes
                             IPv4 Address. . . . . . . . . . . : 192.168.9.100(Preferred)
                             Subnet Mask . . . . . . . . . . . : 255.255.255.0
                             Default Gateway . . . . . . . . . : 192.168.9.253
                             DNS Servers . . . . . . . . . . . : 4.2.2.2
                             NetBIOS over Tcpip. . . . . . . . : Enabled
                          

                          And before I tell pfsense to intercept that via your dnsleak test site - I see exactly that, 4.2.2.2 is a level3 public dns... So if I set that level3 is what shows as dns doing the lookups.

                          I then set pfsense to intercept the traffic - and even though my client is still sending to 4.2.2.2, you can not see that pfsense intercepted the traffic and my public IP (resolver) is what is seen as the dns on the leak test.

                          intercept.png

                          If your router is doing dns intercept - that is exactly what would happen no matter where pfsense is trying to query for dns.

                          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 1
                          • GertjanG
                            Gertjan
                            last edited by

                            A Netgear doing DNS intercepting ?
                            Google up the firmware, that would be known on the net.

                            The ISP doing intercepting, that would be the next question.

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

                            1 Reply Last reply Reply Quote 0
                            • R
                              restwzeasy @Gertjan
                              last edited by

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