TAP on Android

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
brendan
OpenVPN Power User
Posts: 110
Joined: Wed Oct 19, 2011 1:19 am

TAP on Android

Post by brendan » Thu Jul 23, 2015 9:46 pm

a new OpenVPN client has emerged in the google play store, and it claims to support TAP without rooting your android device. is this legit, and is there any possibility of this functionality making its way into the offical openvpn client for android?

https://play.google.com/store/apps/deta ... eb.openvpn
...
Now with IPv4 tap device support without root permission!

brendan
OpenVPN Power User
Posts: 110
Joined: Wed Oct 19, 2011 1:19 am

Re: TAP on Android

Post by brendan » Tue Aug 11, 2015 2:19 pm

can this be confirmed as possible or as snake oil?

User avatar
novaflash
OpenVPN Inc.
Posts: 1073
Joined: Fri Apr 13, 2012 8:43 pm

Re: TAP on Android

Post by novaflash » Wed Aug 12, 2015 10:22 am

Hello brendan,

There is nothing new about this. In Android it is nowadays possible to use the built in VPN API which doesn't require root rights to add it. I don't know this 'new' client but it offers nothing significantly different from the official OpenVPN clients for Android that I can see.

brendan
OpenVPN Power User
Posts: 110
Joined: Wed Oct 19, 2011 1:19 am

Re: TAP on Android

Post by brendan » Fri Aug 14, 2015 12:02 am

the point of my question is the use of a TAP interface on a device that has not been rooted. i have the official openvpn client running on android and cannot use TAP. i have had to stand up a second instance of openvpn on my box and put a TUN config together. i want to use only TAP for all my clients, and i am looking to see if that is now possible on android.

bird333
OpenVPN User
Posts: 25
Joined: Wed Nov 05, 2014 2:58 am

Re: TAP on Android

Post by bird333 » Fri Aug 14, 2015 3:00 pm

OP have you tried it? I certainly hope it works. I would take TAP with only root. :)

brendan
OpenVPN Power User
Posts: 110
Joined: Wed Oct 19, 2011 1:19 am

Re: TAP on Android

Post by brendan » Sat Aug 15, 2015 1:47 pm

i have not, but my brother was interested in it. he may be running it. i will be seeing him later and will ask if he did buy the client. i have run 3rd party openvpn clients that require rooting the device, and did allow for TAP interfaces, but since i have not rooted my current device and actually like the official client, i was hoping to find out if TAP was possible.

bird333
OpenVPN User
Posts: 25
Joined: Wed Nov 05, 2014 2:58 am

Re: TAP on Android

Post by bird333 » Mon Aug 17, 2015 1:20 pm

brendan wrote:i have not, but my brother was interested in it. he may be running it. i will be seeing him later and will ask if he did buy the client. i have run 3rd party openvpn clients that require rooting the device, and did allow for TAP interfaces, but since i have not rooted my current device and actually like the official client, i was hoping to find out if TAP was possible.
What 3rd party apps did you run that required root?

brendan
OpenVPN Power User
Posts: 110
Joined: Wed Oct 19, 2011 1:19 am

Re: TAP on Android

Post by brendan » Tue Aug 18, 2015 12:36 pm

i talked to my brother, and he did buy the app from the the play store, and it does work. how the app is doing TAP without being rooted, i dont know.

as for the 3rd party app i ran, it was OpenVPN Installer and OpenVPN Settings by Friedrich Schäuffelhut. i ran these on a rooted phone and could use the TAP interface included in the kernel of the modded ROM.

dredkin
OpenVpn Newbie
Posts: 4
Joined: Sun Aug 19, 2018 7:17 pm

Re: TAP on Android

Post by dredkin » Sun Aug 19, 2018 7:39 pm

Unfortunatelly, it looks like OpenVPN Installer app from Friedrich Schäuffelhut does not work now.
1. Installer fails since mount command syntax has changed in the recent Android versions (we need

Code: Select all

mount -o rw,remount
instead of

Code: Select all

mount -o remount,rw
);
2. If copied manually, openvpn binary cannot be run, Android blames that it was compiled without

Code: Select all

-fPIC
option.

So until someone compiles openvpn with -fPIC for Android we only have one possbility - paid OpenVPN Client app which really can connect to TAP OpenVPN services even without root.

plaisthos
OpenVpn Newbie
Posts: 17
Joined: Mon May 14, 2012 1:15 pm

Re: TAP on Android

Post by plaisthos » Mon Aug 20, 2018 4:31 pm

You need PIE instead of PIC. I have some binaries someone wanted for an old rooted device:

http://plai.de/android/2018-06-13-stand ... vpn.tar.gz

and

http://plai.de/android/2018-06-14-stand ... vpn.tar.gz

As for TAP without root, it is possible to write an emulator for it (see also my FAQ from OpenVPN for Android) but so far I haven't had the motivation to do it (no personal need and no one wanted to throw money at me to implement one ;))

clevenger23
OpenVpn Newbie
Posts: 1
Joined: Tue Oct 09, 2018 6:49 am

Re: TAP on Android

Post by clevenger23 » Tue Oct 09, 2018 6:50 am

is there any word on if OpenVPN is going to add TAP? This should now be possible with 8.0 My company does use a TAP VPN with another private provider and it works on both of my android phones.

plaisthos
OpenVpn Newbie
Posts: 17
Joined: Mon May 14, 2012 1:15 pm

Re: TAP on Android

Post by plaisthos » Thu Oct 18, 2018 6:25 pm

I don't see anything in the API that would allow this. Where did you get that Information that this should be possible?

majunia96eloco
OpenVpn Newbie
Posts: 1
Joined: Fri Oct 26, 2018 11:36 pm

Re: TAP on Android

Post by majunia96eloco » Sat Oct 27, 2018 6:42 pm

any update about this?

User avatar
ordex
OpenVPN Inc.
Posts: 444
Joined: Wed Dec 28, 2016 2:32 am
Location: IRC #openvpn-devel @ libera.chat

Re: TAP on Android

Post by ordex » Tue Oct 30, 2018 4:25 pm

majunia96eloco wrote:
Sat Oct 27, 2018 6:42 pm
any update about this?
not sure what update to expect.

As plaisthos said:
I don't see anything in the API that would allow this. Where did you get that Information that this should be possible?
and
As for TAP without root, it is possible to write an emulator for it (see also my FAQ from OpenVPN for Android) but so far I haven't had the motivation to do it (no personal need and no one wanted to throw money at me to implement one ;))

dredkin
OpenVpn Newbie
Posts: 4
Joined: Sun Aug 19, 2018 7:17 pm

Re: TAP on Android

Post by dredkin » Tue May 26, 2020 10:00 am

majunia96eloco wrote:
Sat Oct 27, 2018 6:42 pm
any update about this?
As I've said above, for now the only option that works on Adnroid is a "https://play.google.com/store/apps/details?id=it.colucciweb.vpnclientpro" app (the name of app was changed) which can connect to TAP servers even without root.
It utilizes the approach plaisthos mentioned and emulates TAP above standard Android VPN API.
The app itself is free, but possibility to connect to TAP is a paid option.

Somewhere on the Net I've seen a pirated version of this app, which claims to be free, but I didn't try it and cannot say if it is really cracked or just a virus.

FrankJ30
OpenVpn Newbie
Posts: 1
Joined: Wed Jan 20, 2021 10:21 pm

Re: TAP on Android

Post by FrankJ30 » Wed Jan 20, 2021 10:24 pm

Can someone make it work?

Post Reply