Android OpenVPN setup + StrongVPN
Here are my example how to get OpenVPN working on Android based device
OpenVPN working only on rooted devices and Android 2.1+
1) First of all we need install BusyBox from Android Market, OpenVPN will not work without it.
Once installed from Android Market you need run BusyBox installation and continue

2) I had BusyBox installed so just upgraded to 1.18.4 build
Important:
- BusyBox should say “Your phone is rooted”
- need install BusyBox to /system/xbin/ as in my tutorial, it will NOT work properly when installed elsewhere

3) Upgrade will take some time and finally DONE

4) Now we need install OpenVPN Installer and OpenVPN Settings from Android Market
again need run OpenVPN Installer application to continue

5) I recommend install OpenVPN to /system/xbin as in my example

6) Create a folder called openvpn on the sdcard.
Resulting Android path will be /sdcard/openvpn/
(NOTE! Android is case-sensitive. Do NOT use CAPS or lower case)

7) Start OpenVPN Settings and enable OpenVPN

All done! You should now be able to connect to the VPN

Common problems
- You need properly configured TUN driver, OpenVPN will connect to the VPN but you will not be able to actually use. Driver file tun.ko will vary depending on your phone and kernel. The correct tun.ko can only be provided by the person/group who provided you your Android kernel
- You can load tun.ko manually from settings
- If OpenVPN not connecting try check box “Load tun kernel module” this will load TUN driver before OpenVPN

Got as far as step 5, would not install on my rooted Coby Kyros in the xbin directory, but it did in the bin directory. So far so good, sort of. Used IO file manager to create the openvpn directory on the sdcard. At this point how do I get the files into that directory, and where do they come from? You just show the files there.
Thanks.
need files from VPN provider. I used files from StrongVPN service
I’m the VPN provider. I’m connecting (or at least attempting to connect) to my DD-WRT loaded VPN router (PPTP).
this example for OpenVPN connection directly to server
Thanks, its usefully
I don’t understand the SD card part, after I install the openvpn installer and install it to system/xbin then I create the directory on SD card called openvpn but nothing is in that folder, where are the config files and such needed.
You need to copy a config files from your OpenVPN client on Windows (for example) to this directory. From this folder:(assuming default install) C:\Program Files (x86)\OpenVPN\config
okay. I am new to android and openvpn so i have a dumb question. I tried downloading busybox and it failed. I am assuming it’s because it didn’t go to the proper directory. “/system/xbin/”.
How do I get it to do that?
Step 6: Where do i need to go to create the create the sd/card file at?
Hello. Good instructions. I have a question though. After you setup OpenVPN, is your traffic forced into the tunnel? I noticed that in my case, it is not. When I browse, it does not go through VPN, but through the local connection.
Unfortunately, the Fix HTC Routes option does not help either. Any thoughts about how to solve this issue?
I’m having this same problem. Is it a wrong tun.ko module? Any ideas?
need log from connection please
In my case the program does not work.
Opnevpn connection is established but any routes are added into routing table. So
I am not able to go trhough the tunnel…
had the same problem. take a look here http://code.google.com/p/android-openvpn-installer/issues/detail?id=2 , post 34 worked for me.
Now i have other problem – ip-address assigned, route table is fine, but no pings or data going through the tunnel (.
please provide log from OpenVPN connection
Where are the logs located?
Open your config file and add “log /sdcard/openvpn/openvpn.log” line, where /sdcard/openvpn is location of your configs. After restarting an OpenVPN application you can find all info regarding connection process in openvpn.log file.
try “fix DNS”
I am stuck at instruction#6, I do not have OI file manager but do have file manager. When I open file manager, to system, to xbin; I do not see any file as openvpn.I need assistance to configure properly. please help.
I m getting successfully connected but not able to browse any solution
Thanks for the tutorial.. I have stock 2.2 rom from manufacturer. I’m not able to find a working tun.ko driver for my device. Custom roms are nt yet out.. Is there any other solution?
Nice guide, thanks. I had been stuck with openvpn on android for ages. I knew that my problem was related to the tun driver but your instructions were the first that I have found that mention the ability of openvpn settings to load the tun driver from the advanced menu. Everywhere else I have looked online they all say “go off and find a tun driver” or something of that nature.
Just like to add that if you using openvpn web interface to login via PC, just login to that and download “Yourself (autologin profile)” to /sdcard/openvpn/ , this will give you an auto login profile for your VPN. Very fast connection
If worried about security you can use the non auto profile or even the server locked profile if you need to use different login details for any reason?
For the record, I use a SGS2 9100 and this guide worked beautifully
g’day,
I managed to do download, and install the two programs. I placed my files in “openvpn” on the sd card. I can see all of my possible servers, then I try to connect and then am asked for my user id and password which I give, but it remains stuck on “connecting” and never actually connects.
I’m not sure what to do next. Yes, I am using the correct id and pass. I’m not familiar with the technical jargon, so I need responses for a dummy.
cheers
Your guide is very helpful and it is easy because there are screenshots, thank you to make it but I have a problem when I try to start OpenVPN, I have the message “Linux ifconfig failed, could not execute external program”.
I have a Samsung Galaxy S2+Litening_Rom_v6-1.
GbMax78
Yeah. same case with me, I do not have this OI file manager. It also says there “No Configurations Found” under OpenVPN configurations. What could I possibly do to make use of this OpenVPN?
nice instructions, and very helpfull. I done the vpn setting, just because of this info. I already connected to my network.
but I still can’t connected to my web server. I think its my hosts file, in system/etc. I already changed it to my web addres, but not working yet. I guess its not easy as in computer.
is anybody know how to setting the hosts file?
thank you for help
nice post.
everything works as expected, but modprobe tun driver was kind of tricky for me.
I solved it by using ‘insmod’ instead of ‘modprobe’
I’ve been able to find a tun.ko driver for my kernel (http://www.schaeuffelhut.de/wordpress/?p=237 if anyone looking a driver for stock android 2.3.6).
OpenVPN is looking for it in the regular place /dev/tun or /dev/net/tun
The ‘Load TUN kernel module’ option as I understand is made to solve that problem.
But it doesn’t seem to be able to find it on the sdcard: setting the option with modprobe and ‘/sdcard/tun.ko’, openVPN still can load the driver.
If you tell it to use ‘insmod’ to find /sdcard/tun.ko it just works!
How nice, I can now access the entire web from behing the GFW of CN
Anyone understand the inner working of modprobe vs insmod ?
modprobe will load installed kernel modules from /lib/modules directory and find all module dependencies!
insmod load any indicidual module from .ko file you point it at, whether in /lib/modules or not. It also does no dependency adding, so it will fail if dependencies are not already inserted.
Important to point out…
There is an installer app that will search for your appropriate tun.ko (https://play.google.com/store/apps/details?id=com.aed.tun.installer&hl=en).
It found the one for my phone and installed it in under a minute.
But, I’m still getting an error:
“FATAL: Cannot allocate TUN/TAP dev dynamically.”
The installer app placed the tun.ko file at /sdcard, so I tried setting “Path to tun module” there, but no joy. Switching to insmod didn’t work either.
Would it work if I simply move the file to the default /dev/tun directory?
Did the app told you that “TUN module is already loaded”? It actually downloads that file temporarily to your sdcard but it fails to delete that file even if the downloaded module is not working for your phone. That module might be not working that’s why it is still giving you that “FATAL: Cannot allocate TUN/TAP dev dynamically.” error.
Where can I download that tun installer? I tried website http://droidvpn.com/tun-repository.php but it still links to the market. The problem is I cannot download at the market
I had to change in advanced settings the path to /sdcard-ext/openvpn on my Motorola Droid3. My configuration is found and loaded, but the app cannot connect because passwort is not found. How the hell can I enter my password protected Certificate? My certificate which is also in /sdcard-ext is valid, but needs to request the password. Where do I enter the password, no popup is displayed
ok found it! sorry
i am new to this stuff. i have Openvpn on my computer, and cant seem to find the config files in my programfiles help??, also, if it helps, it is in programfiles x84/openvpn technologies/openvpn client/4 folders, which contain no file with config files,,,
how about program files(x86)\openvpn\config
or Program Files (x86)\OpenVPN Technologies\OpenVPN Client\etc\profile
I dont have a busy box pro.. Mine is busy box frrr. Help
Busy Box is free, direct link https://play.google.com/store/apps/details?id=stericson.busybox
Bisa jadi bahan referensi qwa nih … mantaf
android market apk free download
HTC VIVID
Make sure all files are in /etc/system/openvpn.
I ended up with two openvpn folders. One on external, one on /etc .
Used esfileexplorer to copy to system.
Must have root in order to accomplish.
When is S? III vs HTC 1? X will happen????
i want to ask,what will i do if error is /sdcard/open vpn not found?
whenever iam trying to connect its just asking for username and password , what i have to fill within it ?
Is your VPN provider use username/password authentication for OpenVPN? then you should provide this details
or its strongvpn?
wonderful ,,thanks dude ,,awesome work by you
hey i got problem with the config files…in the windows config folder there are only vpnbook.crt and vpnbook.ovpn files….not the .key file
this looks like you have keys included in vpnbook.ovpn, edit this file and should be lines like
—–BEGIN RSA PRIVATE KEY—–
—–END RSA PRIVATE KEY—–
thats your key, same can be ca. crt and ta.key
where can i get the “RSA PRIVATE KEY” ???
I guess its your .key file
It’s not working!!! SHiT!!!