Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-12 Thread Gert Doering
Hi, On Fri, May 11, 2012 at 11:52:22PM +0200, Arne Schwabe wrote: > Am 11.05.12 20:56, schrieb Gert Doering: > > Changing the build environment to build a shared library out of openvpn > > is something I do not fully understand yet, though - and don't view > > a particular useful goal right now.

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-11 Thread Arne Schwabe
>> I would like you to try to do so using libtool... >> >> Just replace: >> --- >> sbin_PROGRAMS = openvpn >> openvpn_SOURCES = >> --- >> with: >> --- >> lib_LTLIBRARIES = openvpn.la >> openvpn_la_SOURCES = ... >> openvpn_la_LDFLAGS = \ >>-module -shared -avoid-version -no-undefined >>

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-11 Thread Arne Schwabe
Am 11.05.12 20:56, schrieb Gert Doering: > Changing the build environment to build a shared library out of openvpn > is something I do not fully understand yet, though - and don't view > a particular useful goal right now. The shared library is not used as real shared library. I build libopenvpn

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-11 Thread Alon Bar-Lev
On Sat, May 12, 2012 at 12:56 AM, Alon Bar-Lev wrote: > On Sat, May 12, 2012 at 12:52 AM, Arne Schwabe > wrote: >> Am 11.05.12 20:56, schrieb Gert Doering: >>> Changing the build environment to build a shared library out of openvpn >>> is

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-11 Thread Alon Bar-Lev
On Sat, May 12, 2012 at 12:52 AM, Arne Schwabe wrote: > Am 11.05.12 20:56, schrieb Gert Doering: >> Changing the build environment to build a shared library out of openvpn >> is something I do not fully understand yet, though - and don't view >> a particular useful goal

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-11 Thread Gert Doering
Hi, On Fri, May 11, 2012 at 12:07:40AM +0200, Arne Schwabe wrote: > * Openvpn for Android is the first platform which does allow non CIDR > routes (I think). In my port I print a warning in the GUI if I encounter > something stupid like 10.0.0.0 netmask 255.0.255.0. The same goes the > netmask of

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-11 Thread Alon Bar-Lev
On Fri, May 11, 2012 at 3:28 PM, Fabian Knittel wrote: > Hi Alon, > > 2012/5/11 Alon Bar-Lev : >> On Fri, May 11, 2012 at 12:11 AM, Fabian Knittel >> wrote: >>> The main undecided points regarding the interface side of

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-11 Thread Gert Doering
Hi, On Thu, May 10, 2012 at 03:42:53PM +0300, Samuli Seppänen wrote: > Speaking of Windows Phone 7 and iPhone/iPad afaik[1] their > respective application stores prohibit apps with reciprocal licenses > (e.g. GPLv2). Is there any way to work around this arbitrary limitations > without a

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-11 Thread Gert Doering
Hi, On Thu, May 10, 2012 at 09:00:05AM +0200, Adriaan de Jong wrote: > That would be another option. In the model we were using (which might be > different), the order is as follows: > > 1. openvpn is started > 2. openvpn opens a socket to the remote host > 2. openvpn establishes the control

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-11 Thread Fabian Knittel
Hi Alon, 2012/5/11 Alon Bar-Lev : > On Fri, May 11, 2012 at 12:11 AM, Fabian Knittel > wrote: >> The main undecided points regarding the interface side of things appear to >> be: >> * How to pass the fds back and forth: Special-case the

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-11 Thread Alon Bar-Lev
On Fri, May 11, 2012 at 12:11 AM, Fabian Knittel wrote: > Hi, > > 2012/5/10 David Sommerseth : >> On 10/05/12 16:50, Alon Bar-Lev wrote: >>> Why? plugin is adding a custom logic, and you need custom logic. As >>> I wrote it does not imply

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-10 Thread Arne Schwabe
I am listing a few requirements that are not discussed before but may still be important and non obvious. These at least people not involved with the Android platform a better picture of required changes. > To allow OpenVPN to be properly refactored afterwards, the important > part is probably to

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-10 Thread Fabian Knittel
Hi, 2012/5/10 David Sommerseth : > On 10/05/12 16:50, Alon Bar-Lev wrote: >> Why? plugin is adding a custom logic, and you need custom logic. As >> I wrote it does not imply that you implement your JNI there. > > Okay ... fine ... there are plenty of big visions for

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-10 Thread Alon Bar-Lev
On Thu, May 10, 2012 at 6:20 PM, Alon Bar-Lev wrote: > On Thu, May 10, 2012 at 6:17 PM, David Sommerseth > wrote: >> Development is all about iterations.  Let's see what we can do NOW to >> get Arne's approach reviewed properly, see if there

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-10 Thread Alon Bar-Lev
On Thu, May 10, 2012 at 6:17 PM, David Sommerseth wrote: > Development is all about iterations.  Let's see what we can do NOW to > get Arne's approach reviewed properly, see if there are things which > can be do to simplify the future somewhat ... but don't make

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-10 Thread David Sommerseth
onderdag 10 mei 2012 >>> 16:33 To: Mendelt Siebenga Cc: >>> openvpn-devel@lists.sourceforge.net Subject: Re: >>> [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset >>> >>> Hello Mendelt, >>> >>> Thank you for taking the time to explain

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-10 Thread Alon Bar-Lev
e.net >> Subject: Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset >> >> Hello Mendelt, >> >> Thank you for taking the time to explain the process, now at least I >> can comment better. >> >> On Thu, May 10, 2012 at 5:03 PM, Mendelt Siebenga

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-10 Thread Adriaan de Jong
> -Original Message- > From: Alon Bar-Lev [mailto:alon.bar...@gmail.com] > Sent: donderdag 10 mei 2012 16:33 > To: Mendelt Siebenga > Cc: openvpn-devel@lists.sourceforge.net > Subject: Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset > > Hello

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-10 Thread Alon Bar-Lev
Hello Mendelt, Thank you for taking the time to explain the process, now at least I can comment better. On Thu, May 10, 2012 at 5:03 PM, Mendelt Siebenga wrote: > Android has a lot of limitations on how you can get access to a TUN device > without rooting your

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-10 Thread Arne Schwabe
I generaly agree with Mendelt. A few additions > We considered two ways of doing this: > - Modify OpenVPN to make it possible to use JNI to call into OpenVPN directly from Java code. I implemented that in the first version of my app (<= 0.4.6). But that involed evil trickery like

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-10 Thread Mendelt Siebenga
@lists.sourceforge.net Subject: Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/05/12 09:28, Adriaan de Jong wrote: > I still prefer using the management interface. It keeps the interface > to the Java stuff very clean (socket-based). F

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-10 Thread Alon Bar-Lev
On Thu, May 10, 2012 at 12:48 PM, David Sommerseth wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 10/05/12 09:28, Adriaan de Jong wrote: >> I still prefer using the management interface. It keeps the >> interface to the Java stuff very clean

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-10 Thread Samuli Seppänen
> >> -Original Message- >> From: David Sommerseth [mailto:openvpn.l...@topphemmelig.net] >> Sent: donderdag 10 mei 2012 11:49 >> To: Alon Bar-Lev >> Cc: Adriaan de Jong; openvpn-devel@lists.sourceforge.net >> Subject: Re: [Openvpn-devel] [P

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-10 Thread Alon Bar-Lev
On Thu, May 10, 2012 at 12:06 PM, David Sommerseth wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 10/05/12 00:36, Arne Schwabe wrote: > >>> I suggest you clone the repository at github, create a branch >>> and order your changes. >> >> >> that would

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-10 Thread David Sommerseth
c: Arne Schwabe; >> openvpn-devel@lists.sourceforge.net Subject: Re: [Openvpn-devel] >> [PATCH] Openvpn for Android 4.0 Changeset >> >> Thank you, >> >> Yes, I understand. >> >> If I narrow this to "feature requests", basically we say that: 1. >

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-10 Thread David Sommerseth
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/05/12 00:36, Arne Schwabe wrote: >> I suggest you clone the repository at github, create a branch >> and order your changes. > > > that would mean to revert all changes, making the changes in small > steps and commiting each step? (I am still

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-10 Thread Jan Just Keijser
Hi, Samuli Seppänen wrote: Hello, I have developed the port of openvpn for Android 4.0: https://play.google.com/store/apps/details?id=de.blinkt.openvpn and http://code.google.com/p/ics-openvpn/ The API of Android 4.0 requires that openvpn runs as completely unprivileged process. There all

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-10 Thread Samuli Seppänen
> Hello, > > I have developed the port of openvpn for Android 4.0: > https://play.google.com/store/apps/details?id=de.blinkt.openvpn and > http://code.google.com/p/ics-openvpn/ > > The API of Android 4.0 requires that openvpn runs as completely > unprivileged process. There all opening of tun,

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-10 Thread Adriaan de Jong
the simplest solution. > -Original Message- > From: Alon Bar-Lev [mailto:alon.bar...@gmail.com] > Sent: donderdag 10 mei 2012 9:17 > To: Adriaan de Jong > Cc: Arne Schwabe; openvpn-devel@lists.sourceforge.net > Subject: Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Ch

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-10 Thread Alon Bar-Lev
l.com] >> Sent: donderdag 10 mei 2012 8:49 >> To: Adriaan de Jong >> Cc: Arne Schwabe; openvpn-devel@lists.sourceforge.net >> Subject: Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset >> >> On Thu, May 10, 2012 at 9:35 AM, Adriaan de Jong <dej.

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-10 Thread Adriaan de Jong
; openvpn-devel@lists.sourceforge.net > Subject: Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset > > On Thu, May 10, 2012 at 9:35 AM, Adriaan de Jong <dej...@fox-it.com> > wrote: > >> -Original Message- > >> From: Alon Bar-Lev [mailto:alon.bar.

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-10 Thread Alon Bar-Lev
rdag 10 mei 2012 2:10 >>> To: Arne Schwabe >>> Cc: openvpn-devel@lists.sourceforge.net >>> Subject: Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset >>> >>> On Thu, May 10, 2012 at 3:01 AM, Arne Schwabe <a...@rfc2549.org> wrote: >&g

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-10 Thread Alon Bar-Lev
t;> Subject: Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset >> >> On Thu, May 10, 2012 at 3:01 AM, Arne Schwabe <a...@rfc2549.org> wrote: >> > Am 10.05.12 01:39, schrieb Alon Bar-Lev: >> >> On Thu, May 10, 2012 at 2:24 AM, Arne Schwabe <a...

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-10 Thread Adriaan de Jong
> -Original Message- > From: Alon Bar-Lev [mailto:alon.bar...@gmail.com] > Sent: donderdag 10 mei 2012 2:10 > To: Arne Schwabe > Cc: openvpn-devel@lists.sourceforge.net > Subject: Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset > > On Thu, May 1

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-10 Thread Alon Bar-Lev
On Thu, May 10, 2012 at 3:01 AM, Arne Schwabe wrote: > Am 10.05.12 01:39, schrieb Alon Bar-Lev: >> On Thu, May 10, 2012 at 2:24 AM, Arne Schwabe wrote: I need a better description of the tun process... so far I did not understand why you cannot use

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-10 Thread Arne Schwabe
Am 10.05.12 01:39, schrieb Alon Bar-Lev: > On Thu, May 10, 2012 at 2:24 AM, Arne Schwabe wrote: >>> I need a better description of the tun process... so far I did not >>> understand why you cannot use standard approach of creating persistent >>> tun with non root access and then

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-10 Thread Alon Bar-Lev
On Thu, May 10, 2012 at 2:24 AM, Arne Schwabe wrote: > >> I need a better description of the tun process... so far I did not >> understand why you cannot use standard approach of creating persistent >> tun with non root access and then use the iproute2 wrapper with suid >> or

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-10 Thread Arne Schwabe
> I need a better description of the tun process... so far I did not > understand why you cannot use standard approach of creating persistent > tun with non root access and then use the iproute2 wrapper with suid > or sudo to setup its configuration. > > Alon. I have no root access on the

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-10 Thread Alon Bar-Lev
On Thu, May 10, 2012 at 2:09 AM, Arne Schwabe wrote: > Am 10.05.12 00:50, schrieb Alon Bar-Lev: >> On Thu, May 10, 2012 at 1:36 AM, Arne Schwabe wrote: >>> Am 10.05.12 00:09, schrieb Alon Bar-Lev: Hmmm... the fact that you are not using git, and create

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-10 Thread Arne Schwabe
Am 10.05.12 00:50, schrieb Alon Bar-Lev: > On Thu, May 10, 2012 at 1:36 AM, Arne Schwabe wrote: >> Am 10.05.12 00:09, schrieb Alon Bar-Lev: >>> Hmmm... the fact that you are not using git, and create separate >>> branch for the changes makes it very difficult to peak. >> Sorry.

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-09 Thread Alon Bar-Lev
On Thu, May 10, 2012 at 1:36 AM, Arne Schwabe wrote: > Am 10.05.12 00:09, schrieb Alon Bar-Lev: >> Hmmm... the fact that you are not using git, and create separate >> branch for the changes makes it very difficult to peak. > Sorry. I am new to git and the distributed version

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-09 Thread Arne Schwabe
Am 10.05.12 00:09, schrieb Alon Bar-Lev: > Hmmm... the fact that you are not using git, and create separate > branch for the changes makes it very difficult to peak. Sorry. I am new to git and the distributed version systems. I hope this patch is better. I also pushed the changes to

Re: [Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-09 Thread Alon Bar-Lev
Hmmm... the fact that you are not using git, and create separate branch for the changes makes it very difficult to peak. I see a mix of changes and a separate build system which I am not sure is needed. You build openvpn as a shared library, it is OK, I had this on my list, but why not use the

[Openvpn-devel] [PATCH] Openvpn for Android 4.0 Changeset

2012-05-09 Thread Arne Schwabe
Hello, I have developed the port of openvpn for Android 4.0: https://play.google.com/store/apps/details?id=de.blinkt.openvpn and http://code.google.com/p/ics-openvpn/ The API of Android 4.0 requires that openvpn runs as completely unprivileged process. There all opening of tun, adding of routes,