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

    DNS not working from OPENVPN connected Machine

    Scheduled Pinned Locked Moved DHCP and DNS
    8 Posts 3 Posters 1.1k Views 3 Watching
    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.
    • P Offline
      praveen02
      last edited by

      We have a remote Open VPN user connected to the infra.

      User is able to ping the remote private IP, when connected to OpenVPN, but not able to acces sthe URL via the local browser.

      Which DNS configuration is missing in Pfsense FW ? (The private network have DNS server configured, and there is entry for the host name.)

      As the remote user is connected to LAN private networks, via OpenVPN, is there anything i should do configure on WAN or any DNS configurations with the WAN public IP ?

      I am confused with DNS resolver and DNS forwarder configurations. Please help me.

      Do I need to configure the Host overrides and Domain overrides for the Host IPs and domain under DNS resolver section. Please advise me.

      V 1 Reply Last reply Reply Quote 0
      • V Offline
        viragomann @praveen02
        last edited by

        @praveen02 said in DNS not working from OPENVPN connected Machine:

        The private network have DNS server configured, and there is entry for the host name.

        You can provide this DNS server to the VPN clients by entering its IP in the OpenVPN server settings.

        Consider that you have also to allow the access by firewall rules if you have restricted the access.
        Also you probably need to add the VPN tunnel network to the DNS servers access ACLs.

        johnpozJ P 2 Replies Last reply Reply Quote 0
        • johnpozJ Online
          johnpoz LAYER 8 Global Moderator @viragomann
          last edited by

          @viragomann said in DNS not working from OPENVPN connected Machine:

          need to add the VPN tunnel network to the DNS servers access ACLs.

          Yeah this is one that is always missed. The automatic ACLs that are created for unbound - I do not believe unless there has been a recent change do not include the tunnel networks you create for the vpn connection. So some client on a tunnel network IP would not have access to unbound via the built in 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.8, 24.11

          1 Reply Last reply Reply Quote 1
          • P Offline
            praveen02 @viragomann
            last edited by

            @viragomann @johnpoz

            1. You can provide this DNS server to the VPN clients by entering its IP in the OpenVPN server settings.

            Do you mean to push the route - private network (DNS server) on the OpenVPN configurations? (Though I do not have the route (DNS server/Network) pushed on the Open VPN server.)

            1. Consider that you have also to allow the access by firewall rules if you have restricted the access.
              Also you probably need to add the VPN tunnel network to the DNS servers access ACLs.

            The rules for Open VPN is allowed for any any.
            The Rules for LAN section is also any any allowed.
            ![LAN _Openvpn rules.png](/assets/uploads/files/1637157593423-lan-_openvpn-rules.open vpn push route.png png)

            johnpozJ V 2 Replies Last reply Reply Quote 0
            • johnpozJ Online
              johnpoz LAYER 8 Global Moderator @praveen02
              last edited by johnpoz

              @praveen02 not sure what your wanting to say here?

              Where have you adjusted the ACLs of unbound to allow for your tunnel network to query it?

              Also there is no reason to push those routes through options, when in a road warrior setup you just put in what local networks you have that you want the client to be able to get to in the vpn setup gui.

              remotenetworks.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

              P 1 Reply Last reply Reply Quote 1
              • V Offline
                viragomann @praveen02
                last edited by

                @praveen02 said in DNS not working from OPENVPN connected Machine:

                Do you mean to push the route - private network (DNS server) on the OpenVPN configurations? (Though I do not have the route (DNS server/Network) pushed on the Open VPN server.)

                Also for this the GUI provides fields where you can state up to four DNS servers to be pushed to the clients.

                1 Reply Last reply Reply Quote 1
                • P Offline
                  praveen02 @johnpoz
                  last edited by

                  @johnpoz

                  The Local network is added only one LAN network. All the other internal LAN network been added via the push route option. all are reachable via VPN.

                  In one of the LAN segment I have two URLs with different domain names. The DNS - A record is configured in local winodws DNS server.

                  Can you help me how to configure ACL for unbound ?

                  Im able to ping the IP address of the host from Open VPN connection, but not able to access the URLs from the openvPN.

                  The model network diagram is attached. Please guide.
                  network.png

                  johnpozJ 1 Reply Last reply Reply Quote 0
                  • johnpozJ Online
                    johnpoz LAYER 8 Global Moderator @praveen02
                    last edited by

                    @praveen02 said in DNS not working from OPENVPN connected Machine:

                    The DNS - A record is configured in local winodws DNS server.

                    Well if your pointing your dns to windows - that has nothing to do with unbound.

                    Where do you point your vpn clients for dns - if its unbound, you need to allow for their vpn IPs in your acls..

                    If your pointing them to windows dns - then you need to make sure your windows box allows them to query, possible windows firewall issue and the vpn IPs.

                    unbound acls can be created here
                    aclunbound.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

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