On 18/01/2013 15:31, Marcel Pennewiß wrote:
On Wed, 16 Jan 2013 21:48:23 -0700
James Yonan <ja...@openvpn.net> wrote:
The client is based on the new C++ OpenVPN core that is also used in
the OpenVPN Connect client for Android. The C++ core is a portable,
lightweight class library for building OpenVPN clients and is 100%
protocol-compatible with the 2.x branch.
It seems, that the client does not support net_gateway in pushed routes:
2013-01-17 16:55:59 EVENT: ASSIGN_IP
2013-01-17 16:55:59 TUN Error: tun_builder_error: error parsing IPv4
route: [route] [141.24.xxx.xxx] [255.255.255.255] [net_gateway] :
tun_builder_route_error: only tunnel routes supported
2013-01-17 16:55:59 EVENT: TUN_SETUP_FAILED tun_builder_error: error
parsing IPv4 route: [route] [141.24.xxx.xxx] [255.255.255.255]
[net_gateway] : tun_builder_route_error: only tunnel routes supported
[ERR]
2013-01-17 16:55:59 EVENT: DISCONNECTED
This works as expected on Win, Linux and Android 4 (reported by user
that there are no connection issues).
Will net_gateway be available in iOS-Client in future?
It's tricky to make some of these features like net_gateway work on
mobile devices, because they don't let you add routes directly, except
through a limited API.
I'll take another look at the iOS VPN API and see if this is doable.
Also... You mentioned Android 4 -- I don't think the Android 4 VPN API
has the capability to support net_gateway. OpenVPN Connect for Android
definitely doesn't support it. And looking at Arne Schwabe's FAQ for
ics-openvpn, in the Routing/Interface Configuration, it specifically
mentions net_gateway as not being supported. I think that
VpnService.Builder would have to add an excludeRoute method to make this
possible.
James