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

    DNS Resolver doesn't work in VPN

    Scheduled Pinned Locked Moved DHCP and DNS
    7 Posts 3 Posters 569 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.
    • W
      WhiteTiger-IT
      last edited by

      I have configured DNS Resolver to associate a URL like crm.my-host.local to the IP address of the server in the DMZ.
      If I use this URL on a PC in the office it works.
      On the other hand, if I use this URL on a PC connected with OpenVPN, then I can't find the page.
      The VPN is working fine and the IP is reachable with a ping.
      If I the IP of the server, the page can reach it.
      Where am I doing wrong?

      1 Reply Last reply Reply Quote 0
      • bingo600B
        bingo600
        last edited by

        Have you added the OpenVPN ip range to Unbound's allowed accesslist ?

        28bdf5f9-d138-48b8-a078-35cbc9445028-image.png

        /Bingo

        If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

        pfSense+ 23.05.1 (ZFS)

        QOTOM-Q355G4 Quad Lan.
        CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
        LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

        W 1 Reply Last reply Reply Quote 1
        • W
          WhiteTiger-IT @bingo600
          last edited by

          @bingo600
          I put 10.101.101.0/24, but it is always unreachable.

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

            What IP did you set for your vpn client to use for dns - is unbound listening on that IP?

            Do your openvpn rules allow for it?

            Simple test do a directed dns query towards pfsense IP you set for dns in the vpn client. Do you get an answer.. Use your fav tool, nslookup, dig, host, etc.

            And yes your unbound acls have to allow for the vpn tunnel network to do queries.

            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

            W 1 Reply Last reply Reply Quote 0
            • W
              WhiteTiger-IT @johnpoz
              last edited by

              @johnpoz
              I don't understand what I should do.
              The VPN works and I can access the servers in the DMZ using their IP address.
              The IP 10.101.101.0 is that of the VPN.
              My PC IP is 10.101.101.2

              johnpozJ W 2 Replies Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator @WhiteTiger-IT
                last edited by

                And what did you point your vpn client dns too?

                Here for example in my vpn server setup I point the vpn clients to 192.168.3.10 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 1
                • W
                  WhiteTiger-IT @WhiteTiger-IT
                  last edited by

                  @whitetiger-it
                  Thank you, this resolve my issue.

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