Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Reverse Tethering - How to?
Date: Wed, 17 Sep 2014 13:36:07
Message-Id: 201409171435.57016.michaelkintzios@gmail.com
In Reply to: [gentoo-user] Re: Reverse Tethering - How to? by James
1 On Wednesday 17 Sep 2014 13:31:53 James wrote:
2 > Helmut Jarausch <jarausch <at> igpm.rwth-aachen.de> writes:
3 > > > > > > how do I need to configure my Gentoo box to allow for reverse
4 > > > > >
5 > > > > > tethering from my (rooted) Android phone?
6 >
7 > PPP over usb is the most probable route. PPP is basically
8 > TCP/IP (usually over a serial link/prototol_carrier).
9 > This might help: "How to set up Android ppp over usb with adb"
10 >
11 > http://www.xinotes.net/notes/note/1500/
12 >
13 > You still ahve to set up NAT ont he linux box, probable with
14 > iptalbes. MIcks post looks reasonable, but there may (will)
15 > be addtional issues; just flesh them out, one at a time.
16 >
17 > All of this over a serial (RS232_C) link between the phone
18 > and the PC is old stuff and may best to get working first,
19 > then migrate it over USB.
20 >
21 >
22 > Also find a good usb_sniffer so you can ensure the bits are bidirectional
23 > across the usb ports.
24 >
25 > Last. There is a "GentRoid" project and I'm quite certain that (gentoo)
26 > embeded dude, will be a fantastic resource, if all else fails.
27 >
28 > Also one of the main devs for Selinux (Russell Coker) is a great
29 > help as he has wrote of the early Selinux and put it on an Android phone.
30 > It takes him a while to respond, but that info might aid your google
31 > searches for solutions too. Use Russell as a last resort.
32 >
33 > PPP/USB is what you are talking about. USB chips confiturations
34 > inside a specific Android phone, might be limited (locked to keep
35 > cpu cycles down) so you might also have to find an app that allows
36 > you to "change settings" on the usb port on your Android phone. You
37 > may have to "root" your Android phone to get this working.....
38 >
39 >
40 > Last, you might have to "tweak" your gentoo linux kernel (usb, ppp,
41 > iptables) etc etc. It'd be great when you get it working to put
42 > something up on wiki.gentoo.org.
43 >
44 >
45 > good hunting!
46 > James
47 >
48 > PS: my challenge word, via gmane posting, today is "posers"
49 > I guess gmane knows today is an *ebuild hackfest day* for me....
50
51 PPP would be necessary if authentication, compression, et al. is required, but
52 I think that in this case none of this is necessary, at least as far as the
53 Linux PC is concerned. The incoming usb0 interface (or whatever the Android
54 is recognised as) will be seen as an ethernet interface by the PC and good ol'
55 NAT will forward it out via the PC's default NIC. I could be wrong, but
56 without access to Helmut's phone I can't speak with any certainty.
57
58 --
59 Regards,
60 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature