OpenVPN Connect (Android), route exclude using domain name

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
dwindura
OpenVpn Newbie
Posts: 1
Joined: Sun Jul 05, 2015 6:28 am

OpenVPN Connect (Android), route exclude using domain name

Post by dwindura » Sun Jul 05, 2015 6:45 am

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

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

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

Post by Traffic » Wed Jul 08, 2015 9:44 am

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.

Post Reply