Re: [Openvpn-devel] OpenVPN and Android 4.0 VPN API

2012-04-09 Thread Arne Schwabe
Am 06.04.12 20:12, schrieb James Ring: Hey Arne, On Thu, Apr 5, 2012 at 12:19 PM, Arne Schwabe wrote: I have managed to hack a proof of concept together. (Screen shot here: http://plai.de/android/Bildschirmfoto%202012-04-05%20um%2021.00.57.png) The core VPN

Re: [Openvpn-devel] OpenVPN and Android 4.0 VPN API

2012-04-06 Thread James Ring
Hey Arne, On Thu, Apr 5, 2012 at 12:19 PM, Arne Schwabe wrote: > I have managed to hack a proof of concept together. (Screen shot here: > http://plai.de/android/Bildschirmfoto%202012-04-05%20um%2021.00.57.png) > > The core VPN functionality already works. What needs to

Re: [Openvpn-devel] OpenVPN and Android 4.0 VPN API

2012-04-05 Thread Arne Schwabe
Am 02.03.12 00:05, schrieb Arne Schwabe: ... and for the rest, well, we'd need a volunteer that wants to *work* on this, not just ask for it... I don't have an Android device (and no time) so it wouldn't be me. I'm raising my hand. This path sounds better than what I thought would be

Re: [Openvpn-devel] OpenVPN and Android 4.0 VPN API

2012-03-02 Thread James Ring
Hey Arne, On Thu, Mar 1, 2012 at 3:05 PM, Arne Schwabe wrote: > >>> ... and for the rest, well, we'd need a volunteer that wants to *work* on >>> this, not just ask for it...  I don't have an Android device (and no >>> time) so it wouldn't be me. >> >> I'm raising my

Re: [Openvpn-devel] OpenVPN and Android 4.0 VPN API

2012-02-08 Thread Fabian Knittel
Hi Gert, 2012/2/8 Gert Doering : > On Wed, Feb 08, 2012 at 11:27:10AM -0800, James Ring wrote: >> Does other code within openvpn care whether the fd is a UNIX socket or >> a tun/tap device? I'm guessing there may be some ioctls it wants to >> perform on the device. > > There

Re: [Openvpn-devel] OpenVPN and Android 4.0 VPN API

2012-02-08 Thread Gert Doering
Hi, On Wed, Feb 08, 2012 at 11:27:10AM -0800, James Ring wrote: > > Exactly.  The first three things are sort of "nearly done", the > > "receive file descriptor to use for tun/tap" would need to be > > implemented (tun.c, open_tun(), #ifdef ANDROID_MAGIC_VPN :-) ) > > I was thinking about this a

Re: [Openvpn-devel] OpenVPN and Android 4.0 VPN API

2012-02-08 Thread Fabian Knittel
Hi James, 2012/2/8 James Ring : > On Wed, Feb 8, 2012 at 10:24 AM, Gert Doering wrote: >> Exactly.  The first three things are sort of "nearly done", the >> "receive file descriptor to use for tun/tap" would need to be >> implemented (tun.c, open_tun(), #ifdef

Re: [Openvpn-devel] OpenVPN and Android 4.0 VPN API

2012-02-08 Thread James Ring
Hey Gert, On Wed, Feb 8, 2012 at 10:24 AM, Gert Doering wrote: > Hi, > > On Wed, Feb 08, 2012 at 04:47:35AM -0800, James Ring wrote: >> Perhaps I wrote this too hastily. I wasn't thinking of how OpenVPN >> actually works. OpenVPN would: >> >> * open the connection (tcp or

Re: [Openvpn-devel] OpenVPN and Android 4.0 VPN API

2012-02-08 Thread Gert Doering
Hi, On Wed, Feb 08, 2012 at 04:47:35AM -0800, James Ring wrote: > Perhaps I wrote this too hastily. I wasn't thinking of how OpenVPN > actually works. OpenVPN would: > > * open the connection (tcp or udp) to the remote end > * negotiate session parameters > * provide the Android Java wrapper

Re: [Openvpn-devel] OpenVPN and Android 4.0 VPN API

2012-02-08 Thread Gert Doering
Hi, On Wed, Feb 08, 2012 at 04:16:20AM -0800, James Ring wrote: > Looks like you need to pass a native fd. OpenVPN would not be able to > open the device itself. There looks to be a chicken and egg problem > here though: the fd is returned by the VpnService.Builder.establish() > method > >

Re: [Openvpn-devel] OpenVPN and Android 4.0 VPN API

2012-02-08 Thread James Ring
Hey, On Wed, Feb 8, 2012 at 4:16 AM, James Ring wrote: > Looks like you need to pass a native fd. OpenVPN would not be able to > open the device itself. There looks to be a chicken and egg problem > here though: the fd is returned by the VpnService.Builder.establish() > method > >

Re: [Openvpn-devel] OpenVPN and Android 4.0 VPN API

2012-02-08 Thread James Ring
Hi Gert, On Wed, Feb 8, 2012 at 12:09 AM, Gert Doering wrote: > Hi, > > On Wed, Feb 08, 2012 at 08:39:32AM +0100, Adriaan de Jong wrote: >>  - The ABI expects a two-stage setup process: set up a control >> channel first for negotiation, then a call VpnService.Builder with >>

Re: [Openvpn-devel] OpenVPN and Android 4.0 VPN API

2012-02-08 Thread Gert Doering
Hi, On Wed, Feb 08, 2012 at 08:39:32AM +0100, Adriaan de Jong wrote: > - 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,

Re: [Openvpn-devel] OpenVPN and Android 4.0 VPN API

2012-02-08 Thread Adriaan de Jong
> -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

[Openvpn-devel] OpenVPN and Android 4.0 VPN API

2012-02-07 Thread James Ring
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