OpenVPN Nameserver for Mapped Network Drives

Posted on

A server stack is the collection of software that forms the operational infrastructure on a given machine. In a computing context, a stack is an ordered pile. A server stack is one type of solution stack — an ordered selection of software that makes it possible to complete a particular task. Like in this post about OpenVPN Nameserver for Mapped Network Drives was one problem in server stack that need for a solution. Below are some tips in manage your windows server when you find problem about windows, vpn, openvpn, remote-access, vpn-client.

Good Day,

I have setup a raspberry pi on my internal network as a OpenVPN server. I am able to connect to it on the public IP using the OpenVPN Windows client. basic VPN seems to be working (when i check my public IP, once connected, it is as per the internal networks).

My issue is that mapped network drives are not accessible, for example drives mapped using \SOME_INTERNAL_SERVER name. I am able to remap these drives using its IP address however I have tools and systems that need it to be mapped on NAME. How can I fix this?

My client.ovpn looks as follows:

proto udp
remote 1194
dev tun
resolv-retry infinite
remote-cert-tls server
verify-x509-name server_L4CReiBJ79AjZ4aN name
auth SHA256
cipher AES-128-GCM
tls-version-min 1.2
setenv opt block-outside-dns # Prevent Windows 10 DNS leak
verb 3
script-security 2                                                                                                       
dhcp-option DNS                                                                                           
dhcp-option DOMAIN company.local 

The last 3 lines were added after some stack overflow searching but does not seem to help.

If I could get a better understanding of the issue and what steps I can take to identify the cause that would be helpful.


It sounds like you need to push a WINIS server to your client (assuming your local DNS is not already replying with the correct IP addresses for the SOME_INTERNAL_SERVER)

You can add a line like this to the server config file:

push "dhcp-option WINS"

Also your client side DNS settings should probably end up being pushed from the server as it’s easier to change them once (on the server side) rather than recalling all your clients to change them.


Leave a Reply

Your email address will not be published. Required fields are marked *