Page 1 of 1

SOLVED: OpenVPN & Android Jelly Bean

Posted: Thu Mar 28, 2013 5:06 am
by Antonis78
Hello, everybody. I tried to connect my Nexus 4 to my hda through openvpn and I must admit, I am a bit lost. I tried to follow the wiki but the instructions are a bit outdated. I cannot find which app should I download from Google, so I downloaded the OpenVpn For Android. Next I followed the wiki instructions, uploaded the p12 file to my device and installed the certificate.

Now, here is the tricky part, I open the OpenVPN For Android app and I get a message for creating a new profile. The options I get there are not the same with the wiki and I do not know what exactly to select for it to work.

Does anyone know how to connect with application? If I cannot figure it out I will try the IPSec app but I really want to try this before I purchase another app. Furthermore, I do not know if having both OpenVpn and IPSec in my hda will create any problems.

I can provide screenshots if anyone want to try to help me with this.

Thanks

Re: OpenVPN & Android Jelly Bean

Posted: Thu Mar 28, 2013 7:00 am
by bsk
I do not like how the wiki page for Android is written, they make it too hard. Those links for the Cert files on that page? On your Android phone, download those files to a folder that they will not get deleted (I made a specific OpenCerts/ directory on my SD Card, you will also need to wget these files or transfer them with adp, clicking on them in the android browser tries to install them to the OS). After doing that, you setup your profile just like you would on Windows or anything else.

Server Address: youruser.yourhda.com (replace "youruser" with your Amahi.org username)
Port: 1194
Under Type select: User/PW + Certificates

Then you will see a selection for each of those cert files you just downloaded, put each one in its place (ca-cert.crt goes in CA Certificate, etc).

If you have any trouble doing this do not hesitate to ask, also if you are unsure if your OpenVPN port is open on your network head on over to https://www.amahi.org/users and click on Check it now! next to the OpenVPN Tester.

Re: OpenVPN & Android Jelly Bean

Posted: Thu Mar 28, 2013 7:15 am
by Antonis78
Thank you so much for the answer, it worked!!!!!!!!!!!!

:D :D :D :D :D :D :D

Re: OpenVPN & Android Jelly Bean

Posted: Thu Mar 28, 2013 7:34 am
by bsk
No problem at all. I thank you for pointing out the issues with that wiki page and I will rewrite it in the near future.

Remember do not hesitate to ask if you have any questions.

Re: SOLVED: OpenVPN & Android Jelly Bean

Posted: Mon May 20, 2013 1:50 pm
by mfs34
bsk - THANK YOU! The guides on the wiki are very confusing and I spent several hours trying to run through them with no success. I found this message board post and I had things working in two seconds.

However I feel that some of my previous configurations may have borked my install. Im running cyanogenmod 10.1 on a Samsung Galaxy S3, and from my view.... The built-into-android VPN only allows for PPTP, l2tp(psk/rsa), and IPSec. I know that Cyanogen mod 10.1 comes with OpenVPN but I suppose you hvae to use their own app, which is the only way I was able to proceed.

Now, I'm able to hit my internal web apps from my Android phone, but accessing the internet for my Android apps like gmail/pandora/Spotify will not work. I've seen on a few other forums that having internal conetivity, without the ability to ping the internet, is a somewhat common initial configuration problem. If you have any help on this subject bsk, it would be greatly appreciated!

P.S- The sooner those old VPN pages get a 'deprecated' flag slapped on them the better. Like i said, I configured my 'myvpn.conf' file per the linux guide... not sure if this is appropriate to have in my ~/ home folder:

:~$ cat myvpn.conf
remote XXXXXX.yourhda.com 1194
client
dev tun
proto udp
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca-cert.crt
cert AmahiHDAClient.crt
key AmahiHDAClient.key
comp-lzo
verb 3
auth-user-pass