Page 1 of 2 12 LastLast
Results 1 to 10 of 20
Discuss [2.0] Compiling iPhone (arm) kernel extensions? at the Free Toolchain Software (Cydia App's) - Hackint0sh.org; Long story, short: I can't get a PPTP VPN tunnel established over cellular. Wifi just ...
  1. #1
    Rookie Array

    Join Date
    Apr 2008
    Posts
    18
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default [2.0] Compiling iPhone (arm) kernel extensions?

    Long story, short: I can't get a PPTP VPN tunnel established over cellular. Wifi just fine but apparently the wap.cingular APN that the iPhone uses just doesn't support this type of traffic. I tried setting it to isp.cingular but that doesn't work anymore.

    So... I've been messing about with 2.0 since jailbreaking it, installing gcc and other compiling related things. After a little bit of tweaking, I got OpenVPN to compile fine. OpenVPN uses a standard udp connection to tunnel as opposed to a whole different IP encapsulation that PPTP uses. The brick wall I've run into is that OpenVPN requires a tun or tap interface in which to establish the tunnel.

    This is provided on OS X by foo.tun/foo.tap kernel extensions which can be found at http://www-user.rhrk.uni-kl.de/~nissler/tuntap/. Compiling these is a bit tricker since it requires kernel headers and such. Does anyone have any experience in doing this? Is it even possible without the exact kernel source for the iPhone?

    The jailbreak peeps crippled code signatures, so I have to figure there is somebody out there with the capability and know-how to do it. Help!



  2. #2
    Rookie Array

    Join Date
    Dec 2007
    Location
    Lithuania
    Posts
    28
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    iPhone dev team is your best bet i guess. Try writing to them.
    Hate iPhone, hate Apple...

  3. #3
    Newbie Array

    Join Date
    Jul 2008
    Posts
    3
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Unhappy

    I am by means not an expert in vpn issues but I am extremely interested in an OpenVPN client for the iphone, too. Therefore, I made a little bit of research about it and it looks like it's highly complicated ...
    Try to google for iPhone and OpenVPN, you'll find a lot of disencouraging information... Might be the Dev team are the best to talk to, but I guess they are totally packed with their 3G unlock.

  4. #4
    Rookie Array

    Join Date
    Apr 2008
    Posts
    18
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Quote Originally Posted by Durruti View Post
    I am by means not an expert in vpn issues but I am extremely interested in an OpenVPN client for the iphone, too. Therefore, I made a little bit of research about it and it looks like it's highly complicated ...
    Try to google for iPhone and OpenVPN, you'll find a lot of disencouraging information... Might be the Dev team are the best to talk to, but I guess they are totally packed with their 3G unlock.
    Most of what I found while Googling is that people don't understand the difference between OpenVPN and PPTP/IPSec. :) In any case, I'm not going to hold my breath too much since I'm sure the DevTeam is way too involved in the more prestigious 3G unlock. But if somebody with the knowledge would comment on just how difficult it is to get those tun/tap kext's compiled, that'd be at least throwing us a bone. :)

  5. #5
    Board Hero Array

    Join Date
    Dec 2007
    Posts
    1,044
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    74

    Default

    Quote Originally Posted by MrPerfect View Post
    In any case, I'm not going to hold my breath too much since I'm sure the DevTeam is way too involved in the more prestigious 3G unlock.
    I think the Dev Team consists of various specialists: baseband specialists who do the unlocks, main firmware specialists who might be able to help you (and who may not have been too busy since Pwnage has been released). Worth a try.
    iPhone 3GS / 3.1.2 JB (PwnageTool) / 04.26.08 carrier-locked, Carrier Logo Fixer / Cydia / 1000 posts on Hackint0sh

    Installing Cydia programs on a phone that has no internet connection: read this.

    Editing binary .plist, .strings, .nib and .xib files:
    * on your computer: Windows tool / conversion website.
    * on your iPhone: convert those files in a terminal with plutil (installed with Erica Utilities) or edit them with iFile (Cydia links).


  6. #6
    Rookie Array

    Join Date
    Apr 2008
    Posts
    18
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default Progress!

    A very nice gentleman by the name of Michael IM'd me today and said he got tun/tap to compile. He provided me with the source and indeed, I was able to successfully compile. But it appears all is not that simple!

    On a kextload after fiddling with some of the dependency options, it says it loads successfully, but alas, the module is not actually loaded as kextstat tells me.

    I'll provide more details in a few hours, for now, I have a softball game to play!

  7. #7
    Rookie Array

    Join Date
    Apr 2008
    Posts
    18
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    So details...

    Well, here are the kext's I'm using. As far as trying to load them, I've tried a few things but 'kextload -v 6 -b tun' yields:

    kextload: adding repository /System/Library/Extensions
    kextload: adding repository /System/Library/Extensions from a cache
    kextload: added cached kernel extension /System/Library/Extensions/tap.kext
    kextload: added cached kernel extension /System/Library/Extensions/tun.kext
    kextload: added repository /System/Library/Extensions from cache
    kextload: request to clear relationships while disabled; pending
    kextload: clearing all version/dependency relationships among kernel extensions
    kextload: calculating version relationships
    kextload: looking up extension with identifier tun
    kextload: sending 1 personality to the kernel

    but it doesn't show up via kextstat. Digging deeper, I unloaded the PPTP.kext that was already loaded from using the standard VPN client. The unload indeed took as it disappeared from kextstat. However, the surprise is when I try to load the PPTP.kext with "kextload -v 6 -b pptp", it yielded the same:

    kextload: adding repository /System/Library/Extensions
    kextload: adding repository /System/Library/Extensions from a cache
    kextload: added cached kernel extension /System/Library/Extensions/tap.kext
    kextload: added cached kernel extension /System/Library/Extensions/tun.kext
    kextload: added repository /System/Library/Extensions from cache
    kextload: request to clear relationships while disabled; pending
    kextload: clearing all version/dependency relationships among kernel extensions
    kextload: calculating version relationships
    kextload: looking up extension with identifier pptp
    kextload: sending 1 personality to the kernel

    but it doesn't load either! So either kextload is busted or the kernel doesn't use the same method for loading kext's as OS X does. I'm using the kext utilities from Cydia. Any ideas?

    Thanks again to the gent that helped at least get the kexts compiled.

  8. #8
    Newbie Array

    Join Date
    Aug 2008
    Posts
    4
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Did you find out any more and could you post how to compile source, etc?

    I need tun.kext so i can tunnel the 3G connection to my laptop in a proper way over ssl without a proxy.

  9. #9
    Rookie Array

    Join Date
    Apr 2008
    Posts
    18
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    The source I used is at http://www.lqx.net/tuntap-iphone.source.tgz.

    I haven't found any other info or success stories on loading kernel extensions on the iPhone though.

  10. #10
    Newbie Array

    Join Date
    Aug 2008
    Posts
    4
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Hm, when i look at the tun makefile, it has includes in it that are not in place on my iphone. Can that be the cause of the problem
    Code:
    kextload: cannot resolve dependencies for kernel extension /System/Library/Extensions/tun.kext
    ?

    Also it is not loading when it says
    Code:
    kextload: sending 1 personality to the kernel
    , it should give a lot more lines after that and end with
    Code:
    kextload: /System/Library/Extensions/tun.kext loaded successfully
    Tomorrow i am going on holidays, if not solved by then, i'll continue on this when i get home after that. We should be able to solve this.
    Last edited by mathijs; 08-07-2008 at 03:57 PM.


 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. kernel_task in MacBook Air and kernel extensions
    By Luca66 in forum Genuine Mac Support
    Replies: 1
    Last Post: 02-06-2010, 11:52 PM
  2. Compiling CPAN Perl Modules for the iPhone
    By LiquidIce in forum Free Toolchain Software (Cydia App's)
    Replies: 1
    Last Post: 01-06-2009, 10:11 AM
  3. Compiling for iPhone
    By Korb in forum Free Toolchain Software (Cydia App's)
    Replies: 1
    Last Post: 09-04-2008, 10:12 AM
  4. Cross compiling gtk and Mono for the iPhone
    By Spety in forum Free Toolchain Software (Cydia App's)
    Replies: 0
    Last Post: 12-24-2007, 08:00 AM
  5. Help with compiling the Iphone Interface
    By JaY-B in forum General
    Replies: 0
    Last Post: 07-06-2007, 06:04 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 01:13 PM.
twitter, follow us!