openvpn_inc wrote: ↑Tue Jul 19, 2022 2:04 pm
...Windows has a feature called Name Resolution Policy Table (NRPT) and this is implemented in OpenVPN Connect. But I am not sure if community
openvpn(8) servers push this. (Our commercial products do.)
Thanks for your answer.
The server side of my OpenVPN implementations are Sophos XGS Firewalls.
They send DHCP-OPTION DOMAIN domainname.
For example here an cut of the logfile:
0 [route] [remote_host] [255.255.255.255] [net_gateway]
1 [route-gateway] [10.81.234.1]
2 [sndbuf] [0]
3 [rcvbuf] [0]
4 [ping] [45]
5 [ping-restart] [180]
6 [route] [192.168.44.0] [255.255.255.0]
7 [topology] [subnet]
8 [route] [remote_host] [255.255.255.255] [net_gateway]
9 [dhcp-option] [DNS] [192.168.44.1]
10 [dhcp-option] [DNS] [192.168.44.254]
11 [dhcp-option] [DOMAIN] [cubus.local]
....
Remote Address: 92.206.82.47
Tunnel Addresses:
10.81.234.4/24 -> 10.81.234.1
Reroute Gateway: IPv4=0 IPv6=0 flags=[ IPv4 ]
Block IPv6: no
Add Routes:
192.168.44.0/24
Exclude Routes:
DNS Servers:
192.168.44.1
192.168.44.254
Search Domains:
cubus.local
If I now ping an fqdn, like server.cubus.local, the ip is resolved correctly. But as I ping only the hostname, server, no ip is resolved.
As I change OpenVPN Connect to the community version of OpenVPN Gui up to version 2.5.6 it works with same client configs.
When I put the option "dhcp-option ADAPTER_DOMAIN_SUFFIX Domainname" to the client config it also works with OpenVPN Connect. However, this requires a manual change to the config file of each user, who actually downloads it conveniently from the Sophos user portal.
regards
Markus