benjarobbi / get-a-robot-vpnc

Automatically exported from code.google.com/p/get-a-robot-vpnc
1 stars 0 forks source link

Tun.ko for DroidX 2.2 kernel 2.6.32.9-gfb07887w30471@il93lnxdroid08 #1 #116

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. trying to load old tun.ko compiled for droid x 2.1 on 2.2 froyo
2.
3.

What is the expected output? What do you see instead?
exec error

What version of the product are you using? On what operating system?

Please provide any additional information below.
Has anyone come across or compiled a tun.ko module for the Droid X 2.2 release?

Original issue reported on code.google.com by itprofes...@gmail.com on 31 Aug 2010 at 2:45

GoogleCodeExporter commented 9 years ago
Try mine @ http://www.saturnwiki.net/droid_tun_driver/2.6.32.9/tun.ko

Original comment by david.hu...@gmail.com on 10 Sep 2010 at 5:53

GoogleCodeExporter commented 9 years ago
Tried your tun.ko:

# insmod /sdcard/tun.ko
insmod: init_module '/sdcard/tun.ko' failed (Exec format error)

Original comment by ps2wa...@gmail.com on 18 Sep 2010 at 8:24

GoogleCodeExporter commented 9 years ago
I have the same problem trying to run openvpn on Droid 
2.2.20.A955.Verizon.en.US. It appears that the tun.ko module for kernel 
versions about 2.6.29 are somewhat finiky. I need one that will work with 
Kernel Version 2.6.32.9-g59f0395. I believe I have all the bugs worked out on 
ovpn connections minus this appropriate tun.ko module.  

Original comment by rampha...@gmail.com on 21 Sep 2010 at 7:57

GoogleCodeExporter commented 9 years ago
Could be a different format, I'm running this on an original Motorola Droid. If 
you folks could shoot me a copy of one one of the kernel modules that work on 
your phone (wifi driver or something) I could possibly be able to build one for 
you. If you are up for this e-mail it to me at 
david(dot)hutchins(at)gmail(dot)com

Original comment by david.hu...@gmail.com on 23 Sep 2010 at 2:11

GoogleCodeExporter commented 9 years ago
The first one is for FRG22D on the original Moto Droid, For Droid X OTA Froyo 
try:

http://www.saturnwiki.net/droid_tun_driver/2.6.32.9/tun_alt.ko

Original comment by david.hu...@gmail.com on 23 Sep 2010 at 9:09

GoogleCodeExporter commented 9 years ago
of course rename this module to tun.ko on your phone.

Original comment by david.hu...@gmail.com on 23 Sep 2010 at 9:10

GoogleCodeExporter commented 9 years ago
FYI,  I am trying out tun.ko referenced in comment 1 ( 
http://www.saturnwiki.net/droid_tun_driver/2.6.32.9/tun.ko ) with OpenVPN 
Installer / OpenenVPN settings from the marketplace.  That's OpenVPN 2.1.1 with 
OpenVpn Settings V 0.4.6.

Platform: Droid 1 FRG22D 2.6.32.9-g874c292

tun.ko from above appears to load, however there are other issues.  Reference 
http://code.google.com/p/android-openvpn-settings/issues/detail?id=44

Original comment by greged...@gmail.com on 28 Sep 2010 at 2:50

GoogleCodeExporter commented 9 years ago
Thanks a million David!

http://www.saturnwiki.net/droid_tun_driver/2.6.32.9/tun_alt.ko

That totally worked. I now got VPN to connect, now I'm faced with a new problem 
(doesn't actually pass traffic :(  ). I'll continue troubleshooting to see what 
I can dig up.

Thanks again,

-Scott

Original comment by rampha...@gmail.com on 12 Oct 2010 at 10:21

GoogleCodeExporter commented 9 years ago
I'm trying to get this working on a Droid2. I used the tun_alt.ko just to see 
if it would work and it did allow me to bring up the tunnel using VPNC. But 
like ramphalsa, it does not appear to be passing traffic. Ramphalsa, did you 
figure this out yet?
Thanks

Original comment by richstev...@gmail.com on 15 Nov 2010 at 2:04

GoogleCodeExporter commented 9 years ago
I'm using your tun_alt.ko on my Droid 2 and I am having the same issue, I can't 
get traffic. Looks like an IP address from my server isn't getting to the 
phone. The configuration works fine on a Windows desktop, just not the phone.

Original comment by knightcr...@gmail.com on 30 Dec 2010 at 2:53

GoogleCodeExporter commented 9 years ago
I am not very familiar with linux VPN, so a lot of this discussion has been 
over my head. I installed VPN Connections, and downloaded the tun.ko file above 
and placed it inside /system/lib/modules. When I attempt to connect to VPN 
connections I get a FC.
I see a lot of the pieces around other forums, but nothing really listing the 
steps for people who aren't VPN or linux experts.
Do I need to change permissions on tun.ko file ?
I also saw some info about openVPN, but I am not sure about that either.
PLEASE help ??

Original comment by jesse9go...@gmail.com on 18 Jan 2011 at 1:19

GoogleCodeExporter commented 9 years ago
Hi guys, sorry I took a little hiatus there. After I got it working, I 
completely forgot to update this thread (apologies to the support community)!

I've been using OPENVPN successfully on my droid2 for months now. The issue 
with the device not passing traffic turned out to be a problem with the OpenVPN 
Settings app (available on droid market). Once installed, I copied over needed 
certs and VPN config files and got the tunnel to connect, but noticed it wasnt 
passing traffic. 

The reason it wasn't passing traffic is because the path to ifconfig (need to 
set the tun adapter IP) and addroute (needed to create routes for the tunnel 
traffic) were hardcoded to incorrect paths in the app. You can create a 
symbolic link to get around this, although I believe (sorry for my failing 
memory, this was months ago) that I just copied ifconfig and addroute to the 
directory openvpn was looking for.

Hope that helps guys, thanks again to Rich S. for reaching out, otherwise, I 
would have never posted my fix.

Original comment by rampha...@gmail.com on 8 Feb 2011 at 5:12

GoogleCodeExporter commented 9 years ago
Hi Ramphalsa, thanks for letting us know. I gave up on it after I couldn't get 
it to work, but your explanation does make sense.

Could you tell us where to put the symlinks at? I can't tell where openvpn 
settings is looking for ifconfig/addroute at. I know the binaries live in 
/system/bin.

Also, I don't have 'addroute' but I do have 'route'... I assume that is what 
you meant.

Thanks for the reply, and I hope to hear back from you soon with this last 
tidbit of info!

Original comment by knightcr...@gmail.com on 8 Feb 2011 at 4:01

GoogleCodeExporter commented 9 years ago
Hi Knight,

I unfortunately don't remember the paths. I do remember how I found them 
though. If you have terminal emulation on your droid (or you can connect it via 
USB cable and use the shell command line), you can run the openvpn by command 
and look at the verbose output on the command line (if any). I believe this is 
where I saw it calling /xbin/bb/ifconfig (or something to that effect) and it 
was failing because "ifconfig was not found."

Original comment by rampha...@gmail.com on 8 Feb 2011 at 4:41

GoogleCodeExporter commented 9 years ago
I found it, without having to hook it up that way. I googled some more things 
and found a thread with relevant information about it here: 
http://code.google.com/p/android-openvpn-installer/issues/detail?id=2

Looks like it looks for the Busybox versions of route and ifconfig in the 
/system/xbin/bb directory no matter what, so, you have to create that 
directory, and create symlinks to /system/xbin/ifconfig and /system/xbin/route 
in that directory.

I did the above steps, using the kernel module linked in this thread, and now 
it works!!!

Original comment by knightcr...@gmail.com on 8 Feb 2011 at 4:56

GoogleCodeExporter commented 9 years ago
I just upgraded to a Droid2, and found that the last module I compiled would no 
longer work. So I had to recompile for this kernel, new driver is at 
http://www.saturnwiki.net/droid_tun_driver/2.6.32.9/tun_droid2.ko

Original comment by david.hu...@gmail.com on 10 Feb 2011 at 8:06

GoogleCodeExporter commented 9 years ago
I can't get http://www.saturnwiki.net/droid_tun_driver/2.6.32.9/tun.ko or 
http://www.saturnwiki.net/droid_tun_driver/2.6.32.9/tun_alt.ko to insmod on my 
Verizon Droid with Android 2.2.  I get an exec format error.  uname says I have 
2.6.32-9.  

Original comment by Chris.Ne...@gmail.com on 31 Mar 2011 at 4:40

GoogleCodeExporter commented 9 years ago
Try http://www.saturnwiki.net/droid_tun_driver/2.6.32.9/tun_droid2.ko

Original comment by david.hu...@gmail.com on 27 Apr 2011 at 7:05

GoogleCodeExporter commented 9 years ago
This attach file can not work on 2.3.3. Can you please compile a new one that 
work on 2.3.3? Thanks

Original comment by wxjwang...@gmail.com on 13 May 2011 at 1:18

GoogleCodeExporter commented 9 years ago
Verizon might be causing problems on their side.  Interweb search for:

verizon wireless 3g NAT

or

verizon wireless 3g private ip address

Original comment by hecondes...@gmail.com on 16 May 2011 at 6:52

GoogleCodeExporter commented 9 years ago
Hi, please i need the pl2303.ko for android kernel 2.6.32.9, because when i do 
insmod, it show me "....should be 2.6.32.9 ARM7". Please help mee (I have usb 
host, and the device recognice a new fast usb)...

Thanks..

Original comment by lon...@gmail.com on 14 Nov 2011 at 8:02