I am trying to finalize setup of the network, sitting behind the firewall and NAT (or NATs), including providers NAT
I use following setup:
[OpenVPN Client (tun0: 10.8.0.7)] => [Online VPS, OVPN Server, 10.8.0.0/24] <= [OpenVPN Client/ Network (10.8.0.5) : Internal LAN 192.168.5.0/24]
Client on the lan is RoadWarrior arbitrary client, e.g. some PC, IPad, etc. I call it further "external client"
Client on the Right is a service-providing network with servers, which is providing service to the external clients
In the middle is OpenVPN server with public IP, has proper DNS, accessible IP etc.
I have a DNS forwarder, sitting on service net, 192.168.5.1.
Goal: Remote client to be able to access the resource by internal name, which is originated on service net DHCP/DNS forwarder. I have no control by the remote client besides providing a client's ovpn file.
OpenVPN Server: server.conf
port 17019
proto udp
dev tun
server 10.8.0.0 255.255.255.0
route 192.168.5.0 255.255.255.0 #pfsense @Home
client-config-dir /etc/openvpn/clients
route 10.8.0.0 255.255.255.0
client-to-client
push "route 192.168.5.0 255.255.255.0" #pfsense @Home
user nobody
group nogroup
#push pfSense DNS
push "dhcp-option DNS 192.168.5.1"
=======> Issue: remote client (Linux Mint 17) cannot resolve DHCP host as is:
vetal@VetalMobile ~ $nslookup sgm.vetals
Server: 192.168.1.1
Address: 192.168.1.1#53
** server can't find sgm.vetals: NXDOMAIN
But with some help:
vetal@VetalMobile ~ $ nslookup
> server 192.168.5.1
Default server: 192.168.5.1
Address: 192.168.5.1#53
> sgm.vetals
Server: 192.168.5.1
Address: 192.168.5.1#53
Name: sgm.vetals
Address: 192.168.5.15
So,
Is pushing DHCP options is right way? Is it doable? Is it Linux problem only?
I would like to push it as a complimentary DNS server to the one provided by remote clients router. So when internal name is resolved, it is failed on 127.0.0.1 but succeeded on one provided by OpenVPN