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

    DNS issue while connected to OpenVPN

    OpenVPN
    5
    43
    6.2k
    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.
    • jimpJ
      jimp Rebel Alliance Developer Netgate
      last edited by

      Yes, but it pushes that to the client, it doesn't affect how the server behaves.

      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!

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

        @jimp
        Ok, so if i want this setting to be active i must export a new Windows client configuration correct?

        by default DNS resolver is enabled, im not sure where the ACL where can i check this?
        39664538-b62c-455d-b681-23fcf228dc1c-image.png

        thanks

        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          That wouldn't affect VPN clients in any way, only the firewall itself.

          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!

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

            Ok..

            Also make sure that the DNS resolver is configured with an ACL to allow the OpenVPN client subnet to make DNS queries. how can i check this settings?

            thanks

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              Services > DNS Resolver, Access Lists tab

              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 Reply Quote 0
              • noplanN
                noplan
                last edited by

                do you use the netBios setting ?
                out of the blue
                brNP

                A 1 Reply Last reply Reply Quote 0
                • A
                  albertmiclat @noplan
                  last edited by

                  @noplan if you are referring to this? then yes
                  0bb43550-5432-4794-b73c-4adb41933907-image.png

                  1 Reply Last reply Reply Quote 0
                  • A
                    albertmiclat @jimp
                    last edited by

                    @jimp looks like DNS resolver is not enabled, can i still proceed to add the ACL or this must be enable first?
                    2b932d0d-b61c-430f-9953-12e0a361fb3a-image.png

                    1 Reply Last reply Reply Quote 0
                    • jimpJ
                      jimp Rebel Alliance Developer Netgate
                      last edited by

                      Are you using the DNS Forwarder then?

                      Or what are the clients using for DNS if not the firewall?

                      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 Reply Quote 0
                      • A
                        albertmiclat @jimp
                        last edited by

                        @jimp DNS forwarders also not enabled.

                        our clients is using our Windows DNS servers..

                        configured on here System > General Setting
                        cb552701-a081-4d6e-b5e3-0fb1fe5aeb22-image.png

                        and here for OpenVPN
                        4bb91fb3-91a8-460c-abee-85ce44a1d883-image.png

                        1 Reply Last reply Reply Quote 0
                        • jimpJ
                          jimp Rebel Alliance Developer Netgate
                          last edited by

                          OK so the firewall would not be involved in their DNS at all. The "Block outside DNS" box is about all you can do there other than trying to solve client issues.

                          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 Reply Quote 0
                          • A
                            albertmiclat @jimp
                            last edited by

                            @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
                            • jimpJ
                              jimp Rebel Alliance Developer Netgate
                              last edited by

                              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 Reply Quote 0
                              • A
                                albertmiclat @jimp
                                last edited by

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

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

                                  @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

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

                                    @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 Reply Quote 1
                                    • A
                                      albertmiclat @Gertjan
                                      last edited by

                                      @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

                                        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
                                        • johnpozJ
                                          johnpoz LAYER 8 Global Moderator
                                          last edited by

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

                                          A 1 Reply Last reply Reply Quote 0
                                          • A
                                            albertmiclat @johnpoz
                                            last edited by albertmiclat

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