Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
morak
Old
(Last edited by morak; 12th May 2011 at 09:28 AM.)
#1  
Junior Member - OP
Thanks Meter 9
Posts: 16
Join Date: Apr 2009
Default [INFO] OpenVPN

I just got OpenVPN working and thought I would share:

Rooted

Installed tun.ko
http://forum.xda-developers.com/show....php?t=1063656
Note: Skip this step if you are running Prime or any other ROM with the tun.ko module pre-installed.

Installed BusyBox using BusyBox Installer (Market). Installed to /system/xbin
Installed OpenVPN using OpenVPN Installer (Market) to /system/xbin
Installed OpenVPN Settings (Market)

Replaced OpenVPN binary with the one from:
http://code.google.com/p/android-ope...s/detail?id=26
UnBZ2'ed the file (I used 7-Zip on Windows for this)

adb remount
adb push openvpn-static-2.1.1 /system/xbin/openvpn
adb shell
chmod 555 /system/xbin/openvpn

Created /system/xbin/bb directory (requested in research I did, not sure if required)
mkdir /system/xbin/bb

Symlinked Busybox ifconfig and route /system/xbin/bb

ln -s /system/xbin/ifconfig /system/xbin/bb/ifconfig
ln -s /system/xbin/route /system/xbin/bb/route

Set up my usual OVPN config (configs must have absolute paths to certs!)
OpenVPN settings > Advanced > Load tun kernel module ON
OpenVPN settings > Advanced > TUN module settings
Load module using > insmod
Path to tun module > /system/lib/modules/tun.ko

I think this is everything I did, there was a bit of trial and error so I may have forgotten something.
Checked and the thing still boots afterward
The Following 9 Users Say Thank You to morak For This Useful Post: [ Click to Expand ]
 
x1crazy
Old
#2  
Member
Thanks Meter 0
Posts: 32
Join Date: Feb 2009
Thanks a lot , will report back when i try it.
 
justinship
Old
#3  
Junior Member
Thanks Meter 1
Posts: 12
Join Date: Apr 2009
I get


insmod: init_module '/system/lib/modules/tun.ko' failed (Exec format error)
 
morak
Old
#4  
Junior Member - OP
Thanks Meter 9
Posts: 16
Join Date: Apr 2009
Assuming you have installed BusyBox, check the md5sum of your tun.ko:

# cd /system/lib/modules
# md5sum tun.ko

Response should be (or at least this is what I get):

7e09817dc4661b732f1a77fff76a10e6 tun.ko

If you don't get that response, I suggest you re-download the tun module, decompress it again and re-push it to your Transformer.
 
justinship
Old
#5  
Junior Member
Thanks Meter 1
Posts: 12
Join Date: Apr 2009
Busybox is installed. Tried both installers and both versions.

Md5sum is right.

Any other ideas?
 
morak
Old
#6  
Junior Member - OP
Thanks Meter 9
Posts: 16
Join Date: Apr 2009
Are you running stock? If you are running a different kernel the module probably won't work.
 
redmongoose
Old
#7  
redmongoose's Avatar
Senior Member
Thanks Meter 11
Posts: 221
Join Date: Jan 2010
Thanks worked a treat
 
x1crazy
Old
#8  
Member
Thanks Meter 0
Posts: 32
Join Date: Feb 2009
thanks works perfect
 
amitks
Old
#9  
Member
Thanks Meter 3
Posts: 61
Join Date: Dec 2010
Location: San Francisco
I am getting my Transformer within a week. Can't wait to get this going on the device... Thanks a ton!
 
duckdown
Old
#10  
duckdown's Avatar
Member
Thanks Meter 0
Posts: 57
Join Date: Feb 2009
Location: peel region
It's running and connected but my IP is still showing up as my regular ISP 3G IP when I open a browser and go to www.ipchicken.com

Any idea why the traffic doesn't appear to be routing through it?

It shows as 100% connected and the key icon is white in the taskbar...

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...