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

    OpenVPN and client DNS

    OpenVPN
    3
    4
    400
    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.
    • T
      trigg3r
      last edited by

      I configured an OpenVPN server to remotely access a NAS share. Everything works, but I can't get the client to use the DNS set in "Advance Clent Settings" of the OpenVPN server (I tried to change in many ways both the server settings and those of the exported file for the client).

      The only way I can get things to work is by manually setting the NAS hostname resolution on Windows 10/11.

      Can you tell me what's wrong?

      ovpn_adv_cli_set.png

      dns_set.png

      fw_ovpn_rules.png

      the otherT GertjanG 2 Replies Last reply Reply Quote 0
      • the otherT
        the other @trigg3r
        last edited by the other

        @trigg3r hey there,
        I do that on my client (in my openvpn app) for mobiles.
        You could also try it in your openvpn ADVANCED settings.
        Enter `push "dhcp-option DNS x.x.x.x"' (your DNS server's IP instead of x.x.x.x, of course) in "custom options field".
        look here > https://openvpn.net/community-resources/pushing-dhcp-options-to-clients/

        the other

        pure amateur home user, no business or professional background
        please excuse poor english skills and typpoz :)

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

          @trigg3r

          Locally, can you access this 192.168.1.210 ? Can you use it over TCP/UDP port 53 ?

          When connected with your VPN client, and you fire up nslookup, does it say that by default it uses 192.168.1.210 ?
          if not, as soon as the connection comes up, what is your DNS ? (If you don't force it to use DNS proposed by OpenVPN? it could also ask 8.8.8.8 and that one doesn't know nothing about your nas)

          pfSense version ?

          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
          • T
            trigg3r
            last edited by

            Thank you both for your valuable suggestions.

            The issue was resolved by setting the pfSense IP as DNS.

            The IP 192.168.1.210 is that of the domain controller which is not blocked by the firewall but I presume it does not respond to requests coming from hosts via VPN (?)

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