Friday, 24 August 2012

OPEN VPN FOR ANDROID

Do everything at your own risk. Rooting ur phone may void ur warranty

This topic contains all information and files needed except one. just use google for that or ask for help from senior members.


Open vpn for android.
Requirements
1. "Rooted" Android Phone.
2. Root explorer
3. Openvpn installer
4. Openvpn settings
5. Terminal Emulator
6. Busybox
7. VPN Config Files
8. tun.ko ----(this file is device and kernel specific. You cannot use a tun.ko that is NOT compiled for your device.) don’t ask this from me, just google for it for your mobile kernel.

Steps

1st) root your phone with the superuser.

2nd) install openvpn installer and the binaries..
to install:
-run openvpn installer using file explorer
step:
- click install >choose /system/xbin/ > choose /system/xbin/bb
-check this directory if installation successfull: /system/xbin/openvpn

3rd) instal busybox
-open the application and click install.
-wait and check directory: /system/xbin/busybox or /system/bin/busybox <-- it(busybox) should be there.

4th) install openvpn settings
-go to option > advance >
-check load tun kernel module
-set path to openvpn binary: /system/xbin/openvpn
-go to tun module setting > load module using > insmod
-set path to tun module: /system/lib/modules/tun.ko

5th) open terminal emulator
type this

$su
#mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system
#chmod 700 /system/xbin/openvpn
#mkdir /system/xbin/bb


-- If The busybox is in the / system / bin /busybox

#busybox ln -s /system/bin/busybox /system/xbin/bb/ifconfig
#busybox ln -s /system/bin/busybox /system/xbin/bb/route

-- If The busybox is in the / system / xbin /busybox
#busybox ln -s /system/xbin/busybox /system/xbin/bb/ifconfig
#busybox ln -s /system/xbin/busybox /system/xbin/bb/route

#reboot

**if an error occurred after issuing such command
please check if busybox is in this directory: /system/bin/busybox
and if openvpn is in this directory: /system/xbin/openvpn

6th) on your sdcard create a folder named "openvpn" w/o the quotes
-put there all your config files


7th) Now open openvpn and connect with the settings which are visible there.

0 comments:

Post a Comment