> -----Original Message----- > From: James Ring [mailto:s...@jdns.org] > Sent: dinsdag 7 februari 2012 23:33 > To: openvpn-devel@lists.sourceforge.net > Subject: [Openvpn-devel] OpenVPN and Android 4.0 VPN API > > Hi there, > > I was just wondering if anybody has seen the new Android 4.0 VPN API. > It looks like a promising way to have a native Java OpenVPN solution on > Android. > > http://developer.android.com/reference/android/net/VpnService.html > > There is a lot of interest in having an Android implementation of > OpenVPN that does not require rooting the phone. > > Thanks, > James
Hi James, I had a look at it a few months ago, and it looks really promising. It uses a tun device at its base. Network settings can be passed to There are a few tricky bits though: - The ABI expects a two-stage setup process: set up a control channel first for negotiation, then a call VpnService.Builder with the proper routing, DNS, addresses, etc. As far as I've been told by other developers, this is not how OpenVPN currently works. - We would need the management interface to export the routing and network parameters that need to be set, so that a surrounding android app can call the appropriate Java methods. - We would need a call in the management interface allowing the tun interface to be passed back into OpenVPN. None of these problems are impossible to solve, but they would take some refactoring of the OpenVPN main and connection code. Any input would of course be appreciated! Adriaan