Greetings. I have a OpenVPN server set up on my router (in "road warrior" mode) and it's been working great. However, I cannot reach VPN clients on my local LAN by their hostname.
Scenario:
local client: localClient1 is connected to router as 192.168.1.5
vpn client: vpnClient1 is connected to VPN server as 192.168.11.3
from vpnClient1, I can do
ping localClient1.mylocaldomain
and it works fine. Awesome, but from localClient1, if I try:
ping vpnClient1.mylocaldomain
I get nothing. I want to get it to find it at its IP address and communicate. If I ping 192.168.11.3, that works.
Thoughts? My router/server is running a light DNS server (dnsmasq) and I thought that should be able to handle this kind of thing. Thoughts? Suggestions? Thanks in advance!
I'm using OpenVPN server version 2.3.4.
server config:
dh dh.pem
ca ca.crt
cert cert.pem
key key.pem
writepid /var/run/openvpnd.pid
topology subnet
port 1194
proto udp
cipher aes-256-cbc
auth sha512
client-config-dir /ccd
comp-lzo adaptive
tls-server
ifconfig-pool-persist /etc/openvpn/ip-pool 86400
client-to-client
push "redirect-gateway def1"
fast-io
tun-mtu 1500
mtu-disc yes
server 192.168.11.0 255.255.255.0
dev tun2
tun-ipv6
tls-auth ta.key 0
push "dhcp-option DNS 192.168.11.1"
keepalive 300 600
client config:
remote server.domain.com port
client
remote-cert-tls server
dev tun0
proto udp
resolv-retry infinite
nobind
persist-key
persist-tun
float
tun-mtu 1500
auth SHA512
cipher AES-256-CBC
keysize 256
comp-lzo
ca ca.crt
cert os1.crt
key os1.key
tls-auth ta.key 1