I have a DD-WRT router that has an OpenVPN server configured on it (in Router mode). Behind the OpenVPN server is a 172.16.0.0/24 network that has some Windows Folder Shares that I want to be able to mount and access. Behind the client is a 192.168.1.0/24 network. I am able to successfully connect to the 172 network through the VPN, but I cannot seem to mount any network shares, even when using IP addresses directly.
After doing some research, many FAQs say that you can fix a lot of the Windows discovery problems in Router mode by setting up a WINS server. Therefore, on the 172.16.0.0/24 network I installed Samba on an Ubuntu machine, and configured /etc/samba/smb.conf to reflect...
wins support = yes
name resolve order = lmhosts host wins bcast
Then, on my OpenVPN server config I added the WINS server:
push "route 172.16.0.0 255.255.255.0"
push "dhcp-option WINS 172.16.0.10"
server 10.8.0.0 255.255.255.0
dev tun0
proto tcp
keepalive 10 120
<snip...>
For all Windows machines behind the 172.16.0.0/24 network, I added 172.16.0.10 as a WINS server (adapter properties -> TCP/IP v4 properties -> Advanced -> WINS). On the client side, I also added the WINS server to the TAP windows adapter.
However, despite these changes, I still cannot seem to mount the drive using the Windows computer name (e.g., \\winserver\folder), or using an IP address directly (e.g., \\172.16.0.20\folder). Is there something I am fundamentally missing or misunderstanding? I would greatly appreciate any help.