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

    Only first connected user got DNS domain resolution.

    Scheduled Pinned Locked Moved OpenVPN
    19 Posts 5 Posters 1.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.
    • S
      szneo
      last edited by szneo

      Hi forum,

      I've searched a lot in order to resolve this issue.
      We are able to connect several users to openvpn at the same time , but the issue its that only the first one connected can resolve domains and publics ips ( internet ) through DNS. I mean, all users connects just fine, no log errors logs, get DNS and LAN ip information, but only first one, can resolve internet domains and lan ip, any other client after first one, not.

      No logs differences on windows openvpn clients connections, all users got Lan ips and DNS's, but only the first one connected can resolve domains on internet.

      I'm attaching some configuration information

      Tap Windows Adapter.
      windows TAP.png

      Windows vpn client logs. ( all users get the same informations, except lan ip of course )
      openvpn windows client log.png

      Pfsense openvpn configuration

      openvpn config 1.png
      openvpn config 2.png
      openvpn config 3.png
      openvpn config 4.png
      openvpn config 5.png
      openvpn config 6.png
      openvpn config 7.png

      First connected openvpn client can ping other Lan ip ( 192.168.100.x ), connect to domains, etc. The rest of the connected users cannot navigate even when they obtain the correct configuration on the network card. Cant not resolve something like ' ping google.com ' or ' ping 192.168.100.3 '

      I really appreciate any tip or help.

      Regards,

      1 Reply Last reply Reply Quote 0
      • KOMK
        KOM
        last edited by KOM

        Your images are microscopic and unreadable. You can add images here directly without linking to an external site via the Upload Image button on the far right of the Edit toolbar.

        What are your firewall rules on your OpenVPN tab? Can the problem clients ping out anywhere or is DNS resolution the only problem? Can they ping the OpenVPN server interface?

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

          Yeah those are impossible to make out.. Love to take a look and help you with your problem, but just can not make out anything in those pics

          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
          • S
            szneo
            last edited by szneo

            My apologizes for the images size. I've just uploaded full sizeded images as you indicated.

            I'll be posting firewall rules when I get pfsense in a few hours today. Nothing complex, just normal wan/lan and the rule that the pfsense assistance insert for openvpn.

            Thank you in advance.

            Regards,

            1 Reply Last reply Reply Quote 0
            • KOMK
              KOM
              last edited by

              Only the rules on the OpenVPN tab matter at this point. WAN/LAN rules aren't relevant to your problem for now.

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

                Like :

                18178eb6-463f-4a69-9308-cb27407f6a1c-image.png

                See here : https://www.youtube.com/watch?v=qscIIZ10WTQ&t=5016s 54 minutes, 19 seconds.

                As you can see, IPv4 and IPv6 traffic hits these rules just fine -> traffic is passing.

                Note : because I created a dedicated Interface from the auto created "OpenVPN", I added my rules on the "VPN" interface - the list with rules on OpenVPN can be left empty. See the official https://www.youtube.com/watch?v=PtZxuC9IyTg for this.

                edit Your images are still not readable. Click on mine, created by the windows capture tool.

                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
                • PippinP
                  Pippin
                  last edited by Pippin

                  Look at "DNS Server enable" and "WINS server enable", those are tunnel IPs.
                  I doubt there is a DNS/WINS server listening on that address.

                  The following addresses are not usable in topology subnet:
                  192.168.100.0
                  192.168.100.1
                  192.168.100.254
                  192.168.100.255

                  *Edit to be more accurate.

                  I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
                  Halton Arp

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

                    This :
                    @Pippin said in Only first connected user got DNS domain resolution.:

                    https://www.youtube.com/watch?v=PtZxuC9IyTg
                    192.168.100.254
                    192.168.100.1

                    are valid addresses.
                    pfSense is delivered with a 192.168.1.1 on it's LAN.

                    "WINS" servers still exists these days ?

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

                    PippinP 1 Reply Last reply Reply Quote 0
                    • S
                      szneo
                      last edited by

                      Thanks for the answers.

                      I'm attaching the rules for firewall view.

                      Please let me know if its needed more information.

                      Wan
                      ovpn wan.png

                      Lan
                      ovpn lan.png

                      Openvpn Tab
                      ovpn tab.png

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

                        Your OpenVPN firewall rule looks fine.
                        33,86 MB of traffic passed by : ok.

                        It's time to make this :

                        430cae38-b9af-4ac8-9e0e-33066a74502b-image.png

                        readable.

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

                        KOMK 1 Reply Last reply Reply Quote 0
                        • KOMK
                          KOM @Gertjan
                          last edited by

                          @Gertjan It must be your settings because his updated images look good to me. I can read every line, and I have pretty thick glasses.

                          1 Reply Last reply Reply Quote 0
                          • S
                            szneo
                            last edited by

                            Thanks for your comments again.

                            Ive just edited images at full image size, hope it works this time.

                            1 Reply Last reply Reply Quote 0
                            • PippinP
                              Pippin @Gertjan
                              last edited by

                              Images look fine here too.

                              @Gertjan said in Only first connected user got DNS domain resolution.:

                              This :
                              @Pippin said in Only first connected user got DNS domain resolution.:

                              https://www.youtube.com/watch?v=PtZxuC9IyTg
                              192.168.100.254
                              192.168.100.1

                              are valid addresses.
                              pfSense is delivered with a 192.168.1.1 on it's LAN.

                              "WINS" servers still exists these days ?

                              It won't work...
                              .0 is the tunnel network designation
                              .1 is the servers tunnel IP
                              .254 is OpenVPNs internal DHCP server
                              .255 is broadcast
                              Leaving 252 addresses for clients.

                              There is an exception though. The servers tunnel IP could be used to point to a service if that service is running on the OpenVPN host.
                              Pointing to a service is typically not done on tunnel addresses.

                              I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
                              Halton Arp

                              S 1 Reply Last reply Reply Quote 0
                              • S
                                szneo @Pippin
                                last edited by

                                @Pippin said in Only first connected user got DNS domain resolution.:

                                It won't work...
                                .0 is the tunnel network designation
                                .1 is the servers tunnel IP
                                .254 is OpenVPNs internal DHCP server
                                .255 is broadcast
                                Leaving 252 addresses for clients.

                                192.168.100.254 it's the pfsense gateway and we put the " IPv4 Tunnel Network " as 192.168.100.0/24 for supposedly new openvpn clients get an IP from the same Pfsense LAN ( 192.168.100.0/24 ).

                                Thanks for your comments.

                                1 Reply Last reply Reply Quote 0
                                • PippinP
                                  Pippin
                                  last edited by

                                  That's not how it works.

                                  Your tunnel network cannot be your LAN network...case of conflicting subnets.

                                  I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
                                  Halton Arp

                                  S 1 Reply Last reply Reply Quote 0
                                  • S
                                    szneo @Pippin
                                    last edited by

                                    @Pippin said in Only first connected user got DNS domain resolution.:

                                    That's not how it works.

                                    Your tunnel network cannot be your LAN network...case of conflicting subnets.

                                    @Pippin thanks for the clarification. Could you confirm to me if, after changing the ' Virtual Tunnel Network ' to anything else ( ie: 10.0.8.0/24 ), will be needed to add any rule to firewall/openvpn in order to that change work ?.

                                    Regards,

                                    1 Reply Last reply Reply Quote 0
                                    • PippinP
                                      Pippin
                                      last edited by Pippin

                                      All rules related to the virtual tunnel network.

                                      I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
                                      Halton Arp

                                      S 1 Reply Last reply Reply Quote 0
                                      • S
                                        szneo @Pippin
                                        last edited by

                                        @Pippin said in Only first connected user got DNS domain resolution.:

                                        All rules related to the virtual tunnel network.

                                        @Pippin really appreciate all comments. Works great now. As you mention, the error were putting the LAN network as the Virtual Network. Now, all clients connects, resolve domains and ping lan ips : ).

                                        Thank u all for the time.

                                        Regards,

                                        1 Reply Last reply Reply Quote 0
                                        • PippinP
                                          Pippin
                                          last edited by

                                          Glad you got it working.

                                          I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
                                          Halton Arp

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