Page 1 of 1

OpenVPN Connect (Android), route exclude using domain name

Posted: Sun Jul 05, 2015 6:45 am
by dwindura
Hi,

I am using OpenVPN Connect (version 1.1.16 - build 74)in my Android phone running KitKat (4.4.4).
I understand that this version of OpenVPN Connect support Exclude Route to emulate the net_gateway route.
The problem is I have the following line in my OpenVPN Connect:

Code: Select all

route my.domain.name 255.255.255.255 net_gateway
and from the OpenVPN log, I saw the following lines:

Code: Select all

0 [route] [my.domain.name] [255.255.255.255] [net_gateway]
.
.
.
09:30:13.792 - Error parsing IPv4 route: [route] [my.domain.name] [255.255.255.255] [net_gateway] : addr_pair_mask_parse_error: AddrMaskPair parse error 'route': my.domain.name/255.255.255.255 : ip_exception: error parsing route IP address 'my.donain.name' : Invalid argument
So looks like the Exclude Route feature does not support domain name (I tried to change the domain name to IP address and it works).
Is it possible to make the "Exclude Route" feature to mimic the "net_gateway route" (i.e., resolve the domain name, but only grab the first IP address returned)?

Cause the problem in my case is that the domain name has dynamic IP address, so I would need to change the config file and load it to OpenVPN everytime the IP address change.

BTW, thanks for the wonderful OpenVPN and OpenVPN Connect software..


Thanks and regards,

~daniel

Re: OpenVPN Connect (Android), route exclude using domain na

Posted: Wed Jul 08, 2015 9:44 am
by Traffic
This works for normal OpenVPN, it may work for your app:
The Manual wrote:--allow-pull-fqdn
  • Allow client to pull DNS names from server (rather than being limited to IP address) for --ifconfig, --route, and --route-gateway.