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

DNS issue while connected to OpenVPN

Scheduled Pinned Locked Moved OpenVPN
43 Posts 5 Posters 6.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.
  • A
    albertmiclat @jimp
    last edited by Apr 13, 2020, 3:31 PM

    @jimp Ok.

    so for the "Block outside DNS" i need to generated a new Windows client configuration with "Block outside DNS" tick to get this setting in effect?

    1 Reply Last reply Reply Quote 0
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Apr 13, 2020, 3:33 PM

      You can check the box on the server which may help. If it doesn't, then try exporting a fresh client.

      If neither one helps then it's something else entirely, most likely not in OpenVPN. Could be on the client or the DNS server, but either way, not pfSense and unlikely to be OpenVPN.

      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

      Need help fast? Netgate Global Support!

      Do not Chat/PM for help!

      A 1 Reply Last reply Apr 13, 2020, 3:36 PM Reply Quote 0
      • A
        albertmiclat @jimp
        last edited by Apr 13, 2020, 3:36 PM

        @jimp Thanks jimp.. I will do some testing first. Thanks!

        1 Reply Last reply Reply Quote 0
        • A
          albertmiclat
          last edited by Apr 14, 2020, 5:26 AM

          @jimp base on my testing the user still encounter the same problem unable to resolves DNS hostname.

          my openvpn subnet is 10.50.0.0/22, i noticed when the user is getting 10.50.1.X ip address they encounter the DNS issue.

          i dont have any clue where to check next, any advice will be greatly appreciated. Thanks

          G 1 Reply Last reply Apr 14, 2020, 8:47 AM Reply Quote 0
          • G
            Gertjan @albertmiclat
            last edited by Apr 14, 2020, 8:47 AM

            @albertmiclat said in DNS issue while connected to OpenVPN:

            the user is getting 10.50.1.X ip address

            Ok for the IP, but what about the IP of the DNS the client received ? Why not mentionning it ? The gateway and mask while you're at it.
            The DNS IP is your DNS server in your/a network ? Can it be accessed by the OpenVPN client ? Is the DNS set up to receive DNS requests from OpenVPN clients ?
            Note : You're not using pfSense as a DNS for your networks, but some other device. So pfSense OpenVPN server should be set up accordingly. How ? depends on your network ....

            I guess you should use :

            8ec8feee-860a-4759-8fa3-3b246ae7084a-image.png

            where a.b.c.d is your DNS.

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

            A 1 Reply Last reply Apr 14, 2020, 10:11 AM Reply Quote 1
            • A
              albertmiclat @Gertjan
              last edited by Apr 14, 2020, 10:11 AM

              @Gertjan this setting are set accordingly.
              07591d2c-a065-4376-8903-9bc0d27473ad-image.png

              users also getting the right configurations
              1f004c7c-6f8b-4432-967b-127e72658708-image.png

              cannot ping both ip and hostname
              0e52010c-f78a-4252-a487-3963572f94eb-image.png

              1 Reply Last reply Reply Quote 0
              • A
                albertmiclat
                last edited by albertmiclat Apr 14, 2020, 10:38 AM Apr 14, 2020, 10:22 AM

                here's is one of the user who are not having issue can ping both ip and hostname and the ip address is 10.50.0.x
                37d3b9bf-576b-446c-9848-a779a808aa18-image.png

                0aa7ad35-8895-4904-bbf2-3068f0887ece-image.png

                102d47a4-2e25-4e0c-8fb1-be38cb4d7345-image.png

                1 Reply Last reply Reply Quote 0
                • J
                  johnpoz LAYER 8 Global Moderator
                  last edited by Apr 14, 2020, 10:46 AM

                  what is the local network of these clients that don't work..

                  So the ipconfig /all for these clients, and the routing table

                  route print

                  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

                  A 1 Reply Last reply Apr 14, 2020, 10:58 AM Reply Quote 0
                  • A
                    albertmiclat @johnpoz
                    last edited by albertmiclat Apr 14, 2020, 11:02 AM Apr 14, 2020, 10:58 AM

                    @johnpoz this user is having DNS issue

                    fe096ce7-0202-4cb9-baa9-0b2332d9ac8a-image.png

                    fb4a4ca3-27bc-4d05-8d36-0eab0704fe7c-image.png

                    032e5a99-7d4c-4521-9de2-8969b6ff2ca3-image.png

                    1 Reply Last reply Reply Quote 0
                    • J
                      johnpoz LAYER 8 Global Moderator
                      last edited by Apr 14, 2020, 11:13 AM

                      Well no overlap with the local network..

                      When you do a tracert to 10.25.1.38, you see first hop is end of the tunnel?

                      Can you ping the end of the tunnel? See the gateway listed there in the route print 10.50.1.37

                      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

                      A 1 Reply Last reply Apr 14, 2020, 11:31 AM Reply Quote 0
                      • A
                        albertmiclat @johnpoz
                        last edited by Apr 14, 2020, 11:31 AM

                        @johnpoz this is another user unfortunately the prev is already end his session

                        • tracert to 10.25.1.38 doesnt show anything
                        • ping to the gateway also request time out

                        9a2cfbcc-8fc7-4622-ae89-e80dc0cf0c11-image.png

                        da48b2af-ad44-428e-b250-b7fdc24c935b-image.png

                        d973edef-84c2-4ee2-9dc8-c8d393aafe3b-image.png

                        1 Reply Last reply Reply Quote 0
                        • J
                          johnpoz LAYER 8 Global Moderator
                          last edited by johnpoz Apr 14, 2020, 11:41 AM Apr 14, 2020, 11:35 AM

                          Well if you can not get to the end of the tunnel, its not going to be able to talk to the dns on the other end of the tunnel..

                          Are the machines that are failing have any 3rd party firewall/security software on them?

                          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

                          A 1 Reply Last reply Apr 14, 2020, 11:48 AM Reply Quote 0
                          • A
                            albertmiclat @johnpoz
                            last edited by Apr 14, 2020, 11:48 AM

                            @johnpoz nope no firewall/security software..

                            as mentioned previously this happens when the user get this subnet 10.50.1.X but when the user gets 10.50.0.X no issue, this behavior puzzled me more..

                            may subnet is 10.50.0.0/22

                            1 Reply Last reply Reply Quote 0
                            • J
                              johnpoz LAYER 8 Global Moderator
                              last edited by Apr 14, 2020, 11:52 AM

                              hmmm - didn't notice that..

                              What are the rules in your openvpn interface on pfsense?

                              example:

                              rules.jpg

                              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

                              A 1 Reply Last reply Apr 14, 2020, 11:56 AM Reply Quote 0
                              • A
                                albertmiclat @johnpoz
                                last edited by Apr 14, 2020, 11:56 AM

                                @johnpoz the usual rules..
                                6cb5f4ea-ed42-4a39-9259-5da48d27176e-image.png

                                1 Reply Last reply Reply Quote 0
                                • J
                                  johnpoz LAYER 8 Global Moderator
                                  last edited by Apr 14, 2020, 11:56 AM

                                  Can we see route print from client that is working.

                                  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

                                  A 1 Reply Last reply Apr 14, 2020, 12:06 PM Reply Quote 0
                                  • A
                                    albertmiclat @johnpoz
                                    last edited by Apr 14, 2020, 12:06 PM

                                    @johnpoz this working client

                                    e9372920-65db-4b51-b6ba-90b35ef77fd8-image.png

                                    a99dccef-cd7e-4044-a751-4b706a459c1d-image.png

                                    7e00f87e-4118-41e4-9e0d-c71424e2ac45-image.png

                                    f9b5cc66-c7d8-4c84-9e43-52bda335aec0-image.png

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

                                      hmmmm - maybe I just need to finish waking up, more coffee ;)

                                      But sorry nothing currently jumping out to me on what is the issue here.. Other than yeah, if you can not talk to your gateway at the end of the tunnel, its not going to be possible to talk to some dns server that is on the other end of the tunnel..

                                      The big ? is why? hmmmmm?

                                      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
                                      • J
                                        jimp Rebel Alliance Developer Netgate
                                        last edited by Apr 14, 2020, 12:14 PM

                                        Does the AD server allow DNS queries from that whole /22?

                                        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                        Need help fast? Netgate Global Support!

                                        Do not Chat/PM for help!

                                        A 1 Reply Last reply Apr 14, 2020, 12:34 PM Reply Quote 0
                                        • J
                                          johnpoz LAYER 8 Global Moderator
                                          last edited by Apr 14, 2020, 12:15 PM

                                          Lets say it doesn't - that could explain why he can not do a dns query to it, but seems he can not even ping the other end of the tunnel, while another client that works can..

                                          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
                                          26 out of 43
                                          • First post
                                            26/43
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received