I have a computer in my lan that I name MyServer and I want to connect to the server outside my lan. I configurate the client OpenVPN and I can connect to the server.
In the server I have a shared folder. In my client computer, I try to add a new network folder, in the wizzard I try to find this folder in this way: "\\MyServer\d". owever I can't find it. If I use this way "\\10.0.8.1\d" then I can find the folder.
the problem with this is that if I connect the client computer directly in my lan, the IP is not 10.0.8.6, but 192.168.1.x so I need to add a new shared folder. In this case I can use the way "\\MyServer\d".
I would like to connect with the name of the server because I would like to install a database and it's better to use the server name instead the IP, more if the IP change if I connect into the lan or ouside the lan.
Why can't I use the name of the server when I connect through my OpenVPN?
Server config:
port 1194
proto udp
dev tun
dev-node OpenVPN
server 10.0.8.0 255.255.255.0
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
tls-auth ta-hmac.key 0
ifconfig-pool-persist ipp.txt
cipher AES-256-CBC
push "route-metric 512"
push "route 10.0.8.1 255.255.255.252"
push "redirect-gateway def1"
push "dhcp-option DNS 10.0.8.1"
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
Cient configuration file
client
dev tun
dev-node TunnelTap
proto udp
remote myServer.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
tls-auth ta-hmac.key 1
ns-cert-type server
cipher AES-256-CBC
comp-lzo
verb 4
explicit-exit-notify 2
ping 10
ping-restart 60
route-method exe
route-delay 2
Thank so much.