OpenVPN client released for iOS
Just wanted to let everyone know that the OpenVPN Connect client for iOS has just been released and is now available in the app store.
This is an official Apple-sanctioned OpenVPN client developed by OpenVPN Technologies in collaboration with Apple.
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.
The current plan is to open-source the C++ core within the coming weeks.
We won't be able to open source the full iOS client because portions
of it use Apple-proprietary APIs to integrate with the iOS VPN framework. But we will be open-sourcing the core itself, which contains all of the code for building an OpenVPN client on Linux or Mac.
BTW, I'm going to be at FOSDEM in early February, so I look forward to meeting some of you there.
Enjoy,
James
Quoted 4 lines · On Wed, 16 Jan 2013 21:48:23 -0700 James Yonan <[email protected]...> 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?
Best regards,
Marcel
Quoted 20 lines · Marcel Pennewiß
Quoted 4 lines · On Wed, 16 Jan 2013 21:48:23 -0700 James Yonan <[email protected]...> 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_gatewayin 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
Quoted 4 lines
This works as expected on Win, Linux and Android 4 (reported by user that there are no connection issues).
Will
net_gatewaybe 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
Quoted 1 line · On Sat, 19 Jan 2013 23:06:55 -0700 James Yonan <[email protected]...> wrote:
Also... You mentioned Android 4 --
A user tested it and told me, that VPN works well. Our VPN-Server is inside a /16 which is routed over VPN. So without the hostroute the connection will die and VPN works well.
Quoted 7 lines
I don't think the Android 4 VPN
API has the capability to supportnet_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 mentionsnet_gatewayas not being supported. I think that VpnService.Builder would have to add an excludeRoute method to make this possible.
FAQ says, that VPNService API will create a hostroute itsself and OpenVPN on ICS ignores net_gateway-routes. I neither own a Android 4 nor a iOS device to test this ;) So maybe this will work on iOS as well?
Best regards,
Marcel