Official Android App

All comments and questions related to the functionality of the OpenVPN web pages and forum should go here.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

bmorales
OpenVpn Newbie
Posts: 9
Joined: Wed Apr 27, 2011 8:10 pm

Official Android App

Post by bmorales » Fri May 13, 2011 7:29 pm

Any plans for an official android app?

User avatar
krzee
Forum Team
Posts: 728
Joined: Fri Aug 29, 2008 5:42 pm

Re: Official Android App

Post by krzee » Thu Jun 09, 2011 7:45 am

openvpn runs fine on android. for an interface, openvpn-settings is already nice.
The problem is that you first must get root, and install a rom that has a tun device.
If you look at cyanogenmod 7, it has openvpn built into the "add vpn" interface, just like ipsec. I would like to see this done on stock android releases, but it is not up to me. Android has the unique ability to do this because they already use so much GPL code. Then people would not need to root and find tun.ko just to get their vpn working on their phone.
We just sent a request to communicate with google regarding this, and hoping to hear back.

User avatar
hamzen
OpenVPN User
Posts: 20
Joined: Mon Sep 26, 2011 11:20 pm

Re: Official Android App

Post by hamzen » Tue Sep 27, 2011 10:41 am

krzee wrote:...If you look at cyanogenmod 7, it has openvpn built into the "add vpn" interface, just like ipsec. ...
I've "upgraded" my Motorola Cliq with this "Cyanogenmod 7.1RC modded Android (v2.3.4)" and there is really OpenVPN on the list. BUT if I try to add a new VPN, it is not allowing to choose the 4 .ca and .key files, only an empty box with "Cancel" button showing.

I've also tried the app "OpenVPN settings" from the Market:
- it is a bit better, because it allows to copy all needed (5) files into /sdcard/openvpn/ dir.
- BUT it can not connect either. (with tested keys and setup)
- and because there are no logs, I can not even figure out, WHY ?
- (logs are ment to show in a future version of the program)
...
in between I've trying to debug through USB, but still can not find the error. Will try to write a msg. to the APP programmer and send him the logs.

pir
OpenVpn Newbie
Posts: 2
Joined: Tue Jan 17, 2012 1:25 am

Re: Official Android App

Post by pir » Tue Jan 17, 2012 1:26 am

With the advent of Android 4.0 there is an API for VPN clients:
http://developer.android.com/sdk/androi ... ights.html

Any chance of an openvpn client that doesn't require root?

Ta,
P.

User avatar
Mimiko
Forum Team
Posts: 1564
Joined: Wed Sep 22, 2010 3:18 am

Re: Official Android App

Post by Mimiko » Wed Jan 25, 2012 7:40 pm

pir wrote:Any chance of an openvpn client that doesn't require root?
Root'ing is required to modify routing table and set static IP to the tun interface.

pir
OpenVpn Newbie
Posts: 2
Joined: Tue Jan 17, 2012 1:25 am

Re: Official Android App

Post by pir » Tue Feb 07, 2012 4:50 pm

Mimiko wrote:
pir wrote:Any chance of an openvpn client that doesn't require root?
Root'ing is required to modify routing table and set static IP to the tun interface.
While that's true on pre-Android 4.0, if you look at the URL I added it is not true in Android 4.0.
An API has been made available so the VPN clients can be added without rooting.

So my question stands, how about an OpenVPN client that uses the API and thus does not need root?

AllenG
OpenVpn Newbie
Posts: 1
Joined: Sun Feb 12, 2012 10:59 am
Location: Albany, NY
Contact:

Re: Official Android App

Post by AllenG » Sun Feb 12, 2012 11:04 am

I haven't tried running OpenVPN on Android but I can't wait to try it for myself. I want to keep myself updated on this one. Thanks guys! :)

tlopatic
OpenVpn Newbie
Posts: 1
Joined: Fri Dec 16, 2011 12:46 am

Re: Official Android App

Post by tlopatic » Sun Mar 11, 2012 8:36 pm

Hey guys,

Just a quick FYI and product plug: It doesn't take Ice Cream Sandwich anymore for OpenVPN without root.[1] A few days back we released FEAT VPN, which is a version of OpenVPN for Android 2.1 through 3.2 that does not require root:

http://www.featvpn.com

We put a local L2TP server on the phone and connect Android's built-in L2TP client to the local on-device L2TP server. Thus we are able to get our hands on IP packets from the phone and to simulate a TUN device for our OpenVPN port. It comes with a few limitations: As we run without root, we cannot set routes, for example. So not split tunnels. All your traffic always goes through the VPN tunnel. Also we inherit a few limitations from the built-in L2TP client. We only support TUN devices, for example, and no TAP devices.

But in general it works quite well on the vast majority of Android devices for typical use cases. Take a look, if you like.

Thomas

[1] Yeah, I know... Great timing! Now that ICS is out, it doesn't take ICS anymore. Hehe. Google caught us completely off guard with their support for VPN apps in ICS. I mean, they previously hadn't cared about VPN apps for years: http://code.google.com/p/android/issues/detail?id=3635

User avatar
krzee
Forum Team
Posts: 728
Joined: Fri Aug 29, 2008 5:42 pm

Re: Official Android App

Post by krzee » Mon Apr 23, 2012 7:31 am

ICS devices can use openvpn without root now
this package is very new, if you use it please report back how you like it! :D
http://swupdate.openvpn.net/beta-downlo ... PN-RC1.apk

User avatar
krzee
Forum Team
Posts: 728
Joined: Fri Aug 29, 2008 5:42 pm

Re: Official Android App

Post by krzee » Mon Apr 23, 2012 7:32 am

tlopatic: clever hack man! makes me think of tunemu... well played!

atmel8051
OpenVpn Newbie
Posts: 3
Joined: Wed Apr 25, 2012 11:13 am

Re: Official Android App

Post by atmel8051 » Wed Apr 25, 2012 11:23 am

I installed this app and when i try import vpn.ovpn i get this error:
Error parsing OpenVPN profile: vpn.ovpn : option 'remote' must have at least 3 arguments.

I have in vpn.ovpn on the first line: remote x.x.x.x
When i add on end of line port, i get this error:
Error parsing OpenVPN profile: vpn.ovpn : option 'remote' must have at least 4 arguments.

atmel8051
OpenVpn Newbie
Posts: 3
Joined: Wed Apr 25, 2012 11:13 am

Re: Official Android App

Post by atmel8051 » Wed Apr 25, 2012 11:27 am

krzee wrote:ICS devices can use openvpn without root now
this package is very new, if you use it please report back how you like it! :D
http://swupdate.openvpn.net/beta-downlo ... PN-RC1.apk
I installed this app and when i try import vpn.ovpn i get this error:
Error parsing OpenVPN profile: vpn.ovpn : option 'remote' must have at least 3 arguments.

I have in vpn.ovpn on the first line: remote x.x.x.x
When i add on end of line port, i get this error:
Error parsing OpenVPN profile: vpn.ovpn : option 'remote' must have at least 4 arguments.

mnekouasl
OpenVpn Newbie
Posts: 2
Joined: Thu Apr 26, 2012 8:58 pm

Re: Official Android App

Post by mnekouasl » Thu Apr 26, 2012 9:02 pm

Hello new to openvpn and this forum. I was wondering if anyone can point me to the source for the android client: http://swupdate.openvpn.net/beta-downlo ... PN-RC1.apk

frankuit
OpenVPN User
Posts: 34
Joined: Thu Apr 12, 2012 12:12 pm

Re: Official Android App

Post by frankuit » Fri Apr 27, 2012 7:21 am

atmel8051 wrote: I have in vpn.ovpn on the first line: remote x.x.x.x
When i add on end of line port, i get this error:
Error parsing OpenVPN profile: vpn.ovpn : option 'remote' must have at least 4 arguments.
I had that to,

Just add udp or tcp behind the remote option in your config file and it works
Kind regards,
Frank Uittenbosch

atmel8051
OpenVpn Newbie
Posts: 3
Joined: Wed Apr 25, 2012 11:13 am

Re: Official Android App

Post by atmel8051 » Fri Apr 27, 2012 8:15 am

frankuit wrote:
atmel8051 wrote: I have in vpn.ovpn on the first line: remote x.x.x.x
When i add on end of line port, i get this error:
Error parsing OpenVPN profile: vpn.ovpn : option 'remote' must have at least 4 arguments.
I had that to,

Just add udp or tcp behind the remote option in your config file and it works
Thanks, it works :)

User avatar
krzee
Forum Team
Posts: 728
Joined: Fri Aug 29, 2008 5:42 pm

Re: Official Android App

Post by krzee » Fri Apr 27, 2012 11:50 am

mnekouasl wrote:Hello new to openvpn and this forum. I was wondering if anyone can point me to the source for the android client: http://swupdate.openvpn.net/beta-downlo ... PN-RC1.apk
no, it has not been released (yet?)

KeithHowe
OpenVpn Newbie
Posts: 1
Joined: Fri Apr 27, 2012 2:32 pm

Re: Official Android App

Post by KeithHowe » Fri Apr 27, 2012 2:43 pm

atmel8051 wrote:
frankuit wrote:
atmel8051 wrote: I have in vpn.ovpn on the first line: remote x.x.x.x
When i add on end of line port, i get this error:
Error parsing OpenVPN profile: vpn.ovpn : option 'remote' must have at least 4 arguments.
I had that to,

Just add udp or tcp behind the remote option in your config file and it works
Thanks, it works :)
I can now load the .ovpn file, thanks.
But when I click connect, it says
OpenVPN core error: X509::parse-pem:error in cert:: error 0906D06C:PEM routines:PM_read_bio:no start line

I have all my ovpn, ca, cert and key in the same folder on my phone.

I've also verified that this ca, cert, key works on my laptop.

Suggestions?

Thanks,
Keith

frankuit
OpenVPN User
Posts: 34
Joined: Thu Apr 12, 2012 12:12 pm

Re: Official Android App

Post by frankuit » Sun Apr 29, 2012 8:07 am

Hmm,

Strangely enough i have the same problem now.
Try changing the path to your certificate files in your conf file and see if that fixes the problem.
Kind regards,
Frank Uittenbosch

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

Re: Official Android App

Post by plaisthos » Mon May 14, 2012 1:18 pm

You could also try to use my opensource variant for ICS: https://play.google.com/store/apps/deta ... kt.openvpn and see if it works better :)

quicksand jesus
OpenVpn Newbie
Posts: 5
Joined: Thu May 17, 2012 2:30 pm

Re: Official Android App

Post by quicksand jesus » Wed May 23, 2012 7:14 pm

The app worked, but now it is expired. Is there a new version I can download?

Post Reply