New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Nausicaa647
Old
(Last edited by Nausicaa647; 29th July 2010 at 09:13 PM.)
#1  
Junior Member - OP
Thanks Meter 0
Posts: 9
Join Date: Jul 2010
Default Tun.Ko for Captivate

Has anyone been able to successfully re-compile a tun.ko for the captivate kernel?
Office still has old IPSEC group ID based vpn
Thanks.

[mods please move to development]
 
agentdr8
Old
#2  
agentdr8's Avatar
Senior Member
Thanks Meter 136
Posts: 726
Join Date: Mar 2007
Location: Cowtown, CA
Trying my hand at building that module from the vanilla Eclair + Samsung code drop. Will let you know how it goes...
AT&T HTC One
ARHD'd

Asus Transformer Prime
AndroWook'd

"We want monies. You have monies. Give us monies.” -- Phandroid (poking fun at Gemalto lawsuit)
 
waynieack
Old
#3  
Junior Member
Thanks Meter 1
Posts: 3
Join Date: Apr 2009
I used this tun.ko, installed openvpn with the openvpn installer from the market, and installed the VPN_Connections_v099.apk from code.google.com/p/get-a-robot-vpnc to manage the connections. I am able to connect to my cisco vpn concentrator with my captivate. Hope this helps...
Attached Files
File Type: zip tun.zip - [Click for QR Code] (67.4 KB, 744 views)
The Following User Says Thank You to waynieack For This Useful Post: [ Click to Expand ]
 
chillexistence
Old
#4  
Junior Member
Thanks Meter 0
Posts: 6
Join Date: Jul 2010
where on the phone do we copy the tun.ko file?
 
waynieack
Old
(Last edited by waynieack; 26th August 2010 at 03:15 AM.)
#5  
Junior Member
Thanks Meter 1
Posts: 3
Join Date: Apr 2009
I put mine in /system/lib/modules/ and openvpn in /system/bin/. I also installed openvpn settings from the market and enabled the "load tun kernel module" option and changed the "load module using" to insmod. For some reason it would not connect without this, I guess because the tun module is not being loaded correctly. Also you can manually load the module by typing “insmod /system/lib/modules/tun.ko” and check to see if it’s loaded by typing “lsmod” and you should see “tun 11088 0 - Live 0xbf195000”
 
baddaybeav
Old
#6  
Junior Member
Thanks Meter 1
Posts: 23
Join Date: Jul 2008
This worked for me.
loaded it manually, not sure if it'll load automatically now or not, haven't tried it.
 
fixitsteve
Old
#7  
Junior Member
Thanks Meter 0
Posts: 21
Join Date: Jul 2010
Default Can't get this working...

Do you have to start OpenVPN and manually load the tun before launching VPN Connections? Of course after all of these settings...
 
fixitsteve
Old
#8  
Junior Member
Thanks Meter 0
Posts: 21
Join Date: Jul 2010
Default Still not working...

Okay, I can manually insert and load the tun.ko and installed the VPN Connections app to this version. Every time I try to connect, it INSTANTLY says 'failed to connect'. Any ideas? I have all the right things in all the right places...OpenVPN installed and configured (although I can't see how I need this with the tun.ko manually started and running). HELP! I really need VPN to work on this device or it is going back...
 
connexion2005
Old
#9  
Senior Member
Thanks Meter 631
Posts: 930
Join Date: Feb 2009
Location: Texas

 
DONATE TO ME
Great information in this thread. I have Busybox installed, Open VPN binaries installed and Open VPN settings installed as well as the Vpn_connection_99.apk file. One issue though!

HOW DO I MANUALLY DROP THE TUN.KO FILE INTO THE SYSTEM/LIB/MODULES FOLDER?

I tried to using Droidexplorer with no luck, so I copied it to the sd card and tried to copy paste it using Astro File Explorer with no luck either. How the hell do I get it into that folder? I'm rooted and running the JH7 captivate stock ROM.

I feel like once I get it in there, I can manually start the file and get this puppy up and going! I tried to put it into another folder and just point Open VPN settings to it there but it just won't work like that. It needs to be in the Modules folder!

Thanks in advance!
MobileTechVideos
The ORIGINAL (Hard Brick / JTAG Repair EXPERT)
I CAN RECOVER HARD BRICKED PHONES. PM me for any questions about JTAG...
Follow me on TWITTER and/or FACEBOOK...
 
connexion2005
Old
(Last edited by connexion2005; 5th October 2010 at 05:54 PM.)
#10  
Senior Member
Thanks Meter 631
Posts: 930
Join Date: Feb 2009
Location: Texas

 
DONATE TO ME
Ugh I've tried about everything and no luck with copying the tun.ko file into the system/lib/modules directory.

I've gained root access using adb shell and su commands and I don't receive any errors in the adb shell when I perform cp tun.ko system/lib/modules but it does not copy the file. I tried to chmod 777 the lib folder but was denied. I'm learning I may not have NAND unlocked for full root. I tried to manually start the module from my sd card but it won't work that way either.

Any suggestions?

EDIT: OK BIG IMPROVEMENT. I WAS ABLE TO WRITE THE TUN.KO FILE TO A DIFFERENT LOCATION IN XBIN AND POINT THE OPENVPN AT THIS. AFTER AN LSMOD CHECK I CONFIRMED IT'S RUNNING. CAN ANYONE HELP ME BUILD A VALID OPENVPN .OVPN FILE FOR CONNECTING TO MY VPN? IT'S A STANDARD CISCO ASA IPSEC VPN THAT HAS A GROUP NAME, GROUP KEY AND VPN ADDRESS.

Thanks!

Here is the link that got me able to install the module elsewhere for all you folks facing NAND issues and not able to install tun.ko in the system/lib/modules folder!

http://forum.xda-developers.com/show...openvpn+config
MobileTechVideos
The ORIGINAL (Hard Brick / JTAG Repair EXPERT)
I CAN RECOVER HARD BRICKED PHONES. PM me for any questions about JTAG...
Follow me on TWITTER and/or FACEBOOK...


XDA PORTAL POSTS

Forum Added for the Samsung Galaxy Mega

What do you do when the Galaxy Note line is simply not big enough? You get theSamsung Galaxy Mega. … more

Voice Control Your Phone with Tasker and AutoVoice – XDA Developer TV

XDA Developer TV Producer Kevin set up his phone to respond to … more

Guide to Take Better Control of Your Volume Levels

Would you like to know one of the things that really annoys me on a daily basis? Tough, … more

Get the Android 4.2.2 Status Bar on Your Gingerbread-Based Samsung

There are still quite a few of folks who run Gingerbread on their … more