OpenVPN - can not ping local LAN devices by hostname - by IP address works fin

Referring to my previous post where I was able to solve how to ping/access local LAN devices by their host names instead of IP adddress I am now trying to solve the same issue when connected from WAN via OpenVPN to my RUTX50.

OpenVPN connection works fine and I can ping local LAN devices by their IP addresses and I am also able to access devices via their web interfaces.

However, pinging by their host name does not work when I am connected from WAN via OpenVPN.

I believe I need to do some changes to the OpenVPN server and/or client configs to get this working?

I added the following push options to the OpenVPN service on my RUTX50:

image

I restarted the OpenVPN service by disabling it and then enabling it again.
Connected with my laptop to RUTX50 via OpenVPN client via WAN and I still can not ping local devices by hostname while pinging with IP address works fine.

My local LAN is on 192.168.11.0 while my OpenVPN LAN is on 192.168.15.0
Looking in my OpenVPN-client log it looks like the push of the DNS server to be the IP of my RUTX50 (192.168.11.1) is not pushed to the client since the DNS Servers log line is empty?

Tunnel Addresses:
192.168.15.6/30 → 192.168.15.5 [net30]
Reroute Gateway: IPv4=0 IPv6=0 flags=[ IPv4 ]
Block IPv4: no
Block IPv6: no
Add Routes:
192.168.11.0/24
192.168.15.1/32
Exclude Routes:
DNS Servers:
Search Domains:

BUT when I look further up in the OpenVPN-client log I see the following
OPTIONS:
0 [route] [192.168.11.0] [255.255.255.0]
1 [dchp-option] [DNS] [192.168.11.1]
2 [block-outside-dns]
3 [route] [192.168.15.1]
4 [topology] [net30]
5 [ping] [5]
6 [ping-restart] [10]
7 [ifconfig] [192.168.15.6] [192.168.15.5]
8 [peer-id] [1]
9 [cipher] [AES-256-GCM]

So it does seem indeed as if the server push options are seen by my OpenVPN-client?

When I do ipconfig on my Windows laptop I see the following for my WiFi-connection:

Wireless LAN adapter WiFi:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) Dual Band Wireless-AC 8260
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::3930:4877:bc4c:66ed%12(Preferred)
IPv4 Address. . . . . . . . . . . : 172.20.10.2(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.240
Default Gateway . . . . . . . . . : 172.20.10.1
DHCP Server . . . . . . . . . . . : 172.20.10.1
DNS Servers . . . . . . . . . . . : 172.20.10.1
NetBIOS over Tcpip. . . . . . . . : Enabled

While my OpenVPN-adapter shows:

Local Area Connection 2:

Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::5033:aabe:9355:7da4%15
IPv4 Address. . . . . . . . . . . : 192.168.15.6
Subnet Mask . . . . . . . . . . . : 255.255.255.252
Default Gateway . . . . . . . . . :
DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1

Default gateway is empty and DNS servers seems to show IPv6-addresses?

This topic was automatically closed after 15 days. New replies are no longer allowed.