Jump to content

Is Tethering Through A Mobile Phone Possible?


Andrei0427
 Share

Recommended Posts

Ive managed in the past to utilise the N900 in order to act as a USB wireless modem for my laptop when Im in dire need of battery life, I was thinking and wondering if this is possible with the Pineapple? Having this convenience will greatly improve concealing the device as SSHing to the pineapple can easily be done, and providing internet makes it all the better!

I have already attempted this but had no luck getting the usb0 interface up <I dont even know what its called xD> Although my N900 has the capability to set a default GW, and its own IP address to the usb0 interface, in addition to echoing '1' to ip_forward. Has anyone managed or has the knowledge to accomplish this task?

I know for certain that it's easier than having a 3G modem attached to it config. wise. All I need to know is how can I at least ping my phone through it's 172.16.42.42 IP from the pineapple, although further guidance is appreciated :).

Regards,

Andrei

Link to comment
Share on other sites

  • 1 month later...

I've been investigating this today... Certainly this tethering in general works in vanilla OpenWRT (which pineapple is based on). I'm coming across multiple road-blocks in finding the information readily (I'm a bit of a newb) but from what I understand, once the usb device is detected and using the appropriate driver, usb0 will become an available network interface.

What I can't seem to get working is loading the usb-net drivers - based on other forums I've read, the following lines should show in the dmesg/logread prior (but are missing for me):

usbcore: registered new interface driver cdc_ether
usbcore: registered new interface driver rndis_host

I've install the opkg packages for cdc and rndis, but these do not seem to load as drivers for me. I'm running Pineapple MK4 1.1.1 + opkgmanager. If I make any progress, I'll post it here...

ref: https://forum.openwrt.org/viewtopic.php?pid=146421

Edited by l0rdr4t
Link to comment
Share on other sites

Pretty sure I'm getting somewhere on here - appears the drivers that opkg/opkgmanager module download are for a later kernel... I found an old repo for the 2.6.39.4 kernel and installed three packages and restarted - I have a usb0 interface! Not completed tested yet but should have results soon. Excuse me for dumping the info here in sub-par condition (hope someone else can use it).

opkg packages installed:

Note that this is for *nix/MacOS-style tethering (not Windows) - and back to testing.

Link to comment
Share on other sites

Thanks for the information! I do not have that much knowledge regarding the OpenWRT platform and how it works as regards treating USB devices.

Just a question.. once you have the usb0 interface, did you give it an IP, defaultGW on both the phone and pineapple? And if so are they pingable with each other?

If you achieved this step I imagine a couple of iptables rules and it should work. Not forgetting ip_forwarding of course :)

Thanks again, would really like to see this idea work as it would eliminate the laptop in it's usage.

Link to comment
Share on other sites

Was having troubles assigning an IP address - don't have the logs here with me now, but it got as far as showing me the MAC address. I guess that tells me the driver might be OK... but I'm just not sure right now.

More info when I get it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...