public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mick <michaelkintzios@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: Reverse Tethering - How to?
Date: Wed, 17 Sep 2014 14:35:38 +0100	[thread overview]
Message-ID: <201409171435.57016.michaelkintzios@gmail.com> (raw)
In-Reply-To: <loom.20140917T141611-670@post.gmane.org>

[-- Attachment #1: Type: Text/Plain, Size: 2558 bytes --]

On Wednesday 17 Sep 2014 13:31:53 James wrote:
> Helmut Jarausch <jarausch <at> igpm.rwth-aachen.de> writes:
> > > > > > how do I need to configure my Gentoo box to allow for reverse
> > > > > 
> > > > > tethering from my (rooted) Android phone?
> 
> PPP over usb is the most probable route. PPP is basically
> TCP/IP (usually over a serial link/prototol_carrier).
> This might help: "How to set up Android ppp over usb with adb"
> 
> http://www.xinotes.net/notes/note/1500/
> 
> You still ahve to set up NAT ont he linux box, probable with
> iptalbes. MIcks post looks reasonable, but there may (will)
> be addtional issues; just flesh them out, one at a time.
> 
> All of this over a serial (RS232_C) link between the phone
> and the PC is old stuff and may best to get working first,
> then migrate it over USB.
> 
> 
> Also find a good usb_sniffer so you can ensure the bits are bidirectional
> across the usb ports.
> 
> Last. There is a "GentRoid" project and I'm quite certain that (gentoo)
> embeded dude, will be a fantastic resource, if all else fails.
> 
> Also one of the main devs for Selinux (Russell Coker) is a great
> help as he has wrote of the early Selinux  and put it on an Android phone.
> It takes him a while to respond, but that info might aid your google
> searches for solutions too. Use Russell as a last resort.
> 
> PPP/USB is what you are talking about. USB chips confiturations
> inside a specific Android phone, might be limited (locked to keep
> cpu cycles down) so you might also have to find an app that allows
> you to "change settings" on the usb port on your Android phone. You
> may have to "root" your Android phone to get this working.....
> 
> 
> Last, you might have to "tweak" your gentoo linux kernel (usb, ppp,
> iptables) etc etc. It'd be great when you get it working to put
> something up on wiki.gentoo.org.
> 
> 
> good hunting!
> James
> 
> PS: my challenge word, via gmane posting, today is "posers"
> I guess gmane knows today is an *ebuild hackfest day*  for me....

PPP would be necessary if authentication, compression, et al. is required, but 
I think that in this case none of this is necessary, at least as far as the 
Linux PC is concerned.  The incoming usb0 interface (or whatever the Android 
is recognised as) will be seen as an ethernet interface by the PC and good ol' 
NAT will forward it out via the PC's default NIC.  I could be wrong, but 
without access to Helmut's phone I can't speak with any certainty.

-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

  reply	other threads:[~2014-09-17 13:36 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-17  9:24 [gentoo-user] Reverse Tethering - How to? Helmut Jarausch
2014-09-17  9:43 ` J. Roeleveld
2014-09-17  9:46   ` Helmut Jarausch
2014-09-17  9:50     ` J. Roeleveld
2014-09-17  9:53       ` Helmut Jarausch
2014-09-17 10:14         ` J. Roeleveld
2014-09-17 11:34           ` Mick
2014-09-17 11:05         ` Stroller
2014-09-17 11:31           ` J. Roeleveld
2014-09-18 11:41             ` Stroller
2014-09-18 12:57               ` J. Roeleveld
2014-09-18 13:59                 ` Stroller
2014-09-18 14:00                 ` Peter Humphrey
2014-09-17 12:31         ` [gentoo-user] " James
2014-09-17 13:35           ` Mick [this message]
2014-09-26 10:24         ` [gentoo-user] " Guillaume Poulin
2014-09-25 21:40 ` thegeezer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201409171435.57016.michaelkintzios@gmail.com \
    --to=michaelkintzios@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox