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

OpenVPN works but no local DNS

OpenVPN
18
49
34.5k
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.
  • J
    john_galt
    last edited by May 8, 2019, 12:24 PM

    Hi,

    I'm running pfSense 2.4.4-RELEASE-p2 with pfBlockerNG-devel 2.2.5_22. I have OpenVPN setup and running and can connect successfully. I can access assets by IPv4 address but can't resolve local host names. I've read countless forum articles and tutorials on OpenVPN, Client, DNS issues but at this point I can't see the trees through the forest. I'm humbly asking for some assistance and or clues as to what I'm missing.

    I'm including some screen captures below. (apologies if it's too many)

    Doug

    OpenVPN Server:

    alt text

    DNS Resolver:

    alt text

    Firewall > Rules > OpenVPN:

    alt text

    Firewall > Rules > WAN:

    alt text

    Firewall > Rules > LAN:

    alt text

    client ipconfig:

    alt text

    client nslookkup:

    alt text

    pfSense packet capture:
    on OpenVPN interface, port 53:

    alt text

    Doug

    1 Reply Last reply Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator
      last edited by May 8, 2019, 12:34 PM

      Out of the box unbound does auto ACLs to allow the local networks of pfsense to query it... If you want your tunnel networks (ie vpn clients) to be able to query unbound running on pfsense then you need to adjust your unbound acls.

      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.7.2, 24.11

      J 1 Reply Last reply May 10, 2019, 2:08 PM Reply Quote 0
      • J
        john_galt
        last edited by May 8, 2019, 12:40 PM

        Hi John,

        Thanks for your quick reply.

        Is this what you are talking about?

        alt text

        Doug

        Doug

        1 Reply Last reply Reply Quote 0
        • J
          johnpoz LAYER 8 Global Moderator
          last edited by May 8, 2019, 12:54 PM

          yeah that is where you set the acls on who can query unbound.

          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.7.2, 24.11

          J 1 Reply Last reply May 8, 2019, 1:07 PM Reply Quote 0
          • J
            john_galt @johnpoz
            last edited by May 8, 2019, 1:07 PM

            @johnpoz

            Isn't it set by that entry?

            The client is 10.0.8.2 and that is in the ACL.

            Doug

            Doug

            1 Reply Last reply Reply Quote 0
            • J
              johnpoz LAYER 8 Global Moderator
              last edited by johnpoz May 8, 2019, 1:48 PM May 8, 2019, 1:43 PM

              yeah that should allow it yes.. So you just created it, or that was there already? Do you have automatic set? Not sure if when you have automatic if it reads what you set?

              🔒 Log in to view

              I have always turned off automatic and done my own acls..

              I looked closer and sure looks like your getting answers in your packet capture..

              Oh your dns on your client is just pointing to loopback??

              🔒 Log in to view

              That kind of broken... should be pointing to pfsense lan IP for dns would be how I would set it up..

              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.7.2, 24.11

              J 2 Replies Last reply May 8, 2019, 1:54 PM Reply Quote 0
              • J
                john_galt @johnpoz
                last edited by May 8, 2019, 1:54 PM

                @johnpoz

                No I didn't just create it. It's been there probably since I setup OpenVPN.

                I haven't disabled auto-added list.

                From that packet capture I thought so as well but I still can't get host resolution. Why I'm at a loss.

                Doug

                Doug

                1 Reply Last reply Reply Quote 0
                • J
                  johnpoz LAYER 8 Global Moderator
                  last edited by May 8, 2019, 1:57 PM

                  your client is asking itself for dns... So how would that get sent down the tunnel to unbound on pfsense?

                  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.7.2, 24.11

                  1 Reply Last reply Reply Quote 0
                  • J
                    john_galt @johnpoz
                    last edited by May 8, 2019, 2:12 PM

                    @johnpoz

                    I thought so as well John. I had that set to my pfSense IP before a recent pfBlockerNG devel release.
                    BBcan177 did some "tinkering". I will ping him on this.

                    Doug

                    Doug

                    1 Reply Last reply Reply Quote 0
                    • J
                      john_galt @johnpoz
                      last edited by john_galt May 10, 2019, 2:13 PM May 10, 2019, 2:08 PM

                      @johnpoz

                      I can now get local DNS over OpenVPN but I don't know why. I would like to if anyone can explain.

                      In Services > DNS Resolver > General Settings I changed the Network Interfaces from "All" to selecting all the interfaces and saving.

                      I've spent a lot of time trying to figure this out and really would like to understand why one setting
                      doesn't work but the other does when essentially they are both the same?

                      Thanks,

                      Doug

                      // Edit//

                      Here's the forum thread that gave me this fix.

                      alt text

                      Doug

                      B A S F 4 Replies Last reply Sep 2, 2021, 12:11 AM Reply Quote 0
                      • J
                        johnpoz LAYER 8 Global Moderator
                        last edited by May 10, 2019, 7:19 PM

                        So your clients are using doing ssl/tls queries? over a VPN? WTF???

                        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.7.2, 24.11

                        J 1 Reply Last reply May 10, 2019, 8:39 PM Reply Quote 0
                        • J
                          john_galt @johnpoz
                          last edited by May 10, 2019, 8:39 PM

                          @johnpoz

                          I’m not even sure how to answer that John. I’ll let it go as it seems to have struck a nerve.

                          Thanks for your help.

                          Doug

                          J 1 Reply Last reply May 10, 2019, 9:03 PM Reply Quote 0
                          • K
                            KOM
                            last edited by May 10, 2019, 8:46 PM

                            @john_galt said in OpenVPN works but no local DNS:

                            I've spent a lot of time trying to figure this out and really would like to understand why one setting
                            doesn't work but the other does when essentially they are both the same?

                            That looks like some sort of glitch to me. There may not be any sense to be made about it other than 'bug'.

                            J 1 Reply Last reply May 10, 2019, 9:03 PM Reply Quote 0
                            • J
                              johnpoz LAYER 8 Global Moderator @john_galt
                              last edited by May 10, 2019, 9:03 PM

                              @john_galt

                              Dude why would you do dns over tls over your own vpn? Complete nonsense and extra overhead

                              Did you fix your client from pointing to loop back? Dude I use this every day there is no “bug”

                              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.7.2, 24.11

                              J 1 Reply Last reply May 10, 2019, 9:20 PM Reply Quote 0
                              • J
                                john_galt @KOM
                                last edited by May 10, 2019, 9:03 PM

                                @KOM

                                KOM,

                                Someone in the old forum article I referenced mentioned something about committing a fix but that was years ago.

                                Like I tried to explain I know enough about networking to get myself into trouble. But I'm willing to learn.

                                Thank you for your assistance.

                                Doug

                                Doug

                                1 Reply Last reply Reply Quote 0
                                • J
                                  john_galt @johnpoz
                                  last edited by May 10, 2019, 9:20 PM

                                  @johnpoz

                                  John,

                                  My name is Doug. It's in my messages. I give you the respect of using your name.

                                  I did fix the loopback.

                                  I really don't understand why you are taking this request for help and my stated lack of
                                  knowledge so personally. I have no idea that I'm doing DNS over TLS over my own VPN.
                                  All I wanted to do was VPN into my home network from my work location and be able
                                  to access assets by name.

                                  If you wish to help I will listen and respect you for it. If you wish to berate then please
                                  don't help.

                                  Doug

                                  Doug

                                  1 Reply Last reply Reply Quote 4
                                  • K
                                    KOM
                                    last edited by May 11, 2019, 12:47 AM

                                    Check your DHCP server to see what it's pushing to clients for DNS.

                                    J 1 Reply Last reply May 11, 2019, 11:53 AM Reply Quote 0
                                    • J
                                      john_galt @KOM
                                      last edited by May 11, 2019, 11:53 AM

                                      @KOM

                                      KOM,

                                      I will check when I get back to work Monday morning.

                                      It's working now though since I made that change. I don't know why
                                      and that bothers me. I will continue my research.

                                      Thank you for your help.

                                      Doug

                                      1 Reply Last reply Reply Quote 0
                                      • J
                                        johnpoz LAYER 8 Global Moderator
                                        last edited by johnpoz May 11, 2019, 12:14 PM May 11, 2019, 12:12 PM

                                        If you do not understand what dns over tls is then why would you set it??

                                        🔒 Log in to view

                                        Fixing your issue does not come from just randomly clicking shit..

                                        Come back when you have your client actually pointing to the IP for dns that is your pfsense box on your vpn connection which was pointed out to you back in the beginning of this thread.

                                        Do a simple query from your client using your fav dns tool, nslookup, dig, host, etc..

                                        Does it respond - yes or no?

                                        You show an answer in your packet capture to your query to 53 - what was that query, what was the answer... download that packet capture in wireshark.

                                        It's working now though since I made that change

                                        You changed from ALL to manually selecting "all" that is not a fix that is not even different.. So how would that "fix" anything..

                                        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.7.2, 24.11

                                        J 1 Reply Last reply May 11, 2019, 12:35 PM Reply Quote 0
                                        • J
                                          john_galt @johnpoz
                                          last edited by May 11, 2019, 12:35 PM

                                          @johnpoz

                                          John I setup pfsense to use Quad9 DNS over TLS earlier this year. I can't find the URL for the instructions I used but will keep looking. In those instructions I was instructed to enable that feature.

                                          I will come back when I can check over the VPN connection Monday.

                                          In my initial request for help I posted a screen grab of the packet capture which you said showed the query being answered. I did that query using nslookup and explicitly setting the server to my pfsense IPv4 address. I did not get a name back using this method.

                                          I will get wireshark and get that data but can't until Monday.

                                          Thank you for your help.

                                          Doug

                                          Doug

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