From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id B96AD13838B for ; Wed, 17 Sep 2014 13:36:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 20C0AE09CF; Wed, 17 Sep 2014 13:36:03 +0000 (UTC) Received: from mail-we0-f171.google.com (mail-we0-f171.google.com [74.125.82.171]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D93A1E09B0 for ; Wed, 17 Sep 2014 13:36:01 +0000 (UTC) Received: by mail-we0-f171.google.com with SMTP id p10so1454857wes.2 for ; Wed, 17 Sep 2014 06:36:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:reply-to:to:subject:date:user-agent:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; bh=C6IuxXes0+djpDADLNFjuZKiYpzxwf8lNtcXm0WaY/4=; b=tuknXNMJSllXh/WwmDSObf//T8nXMtOiUD1uSFZGk0pmUphZmGNdkMPe/fx+LfL+Rv 4nJXITZAEEcoNkgBg30R23OaWL4pNZishGvuyV+PazyEqabn7PFxnQJn9TCpQQmCBtTF RrWFwDmni5hu3y7r6ZKYi/kc82l8lfFfvLvs8hY3c86TaAJs4HySi0lGOPgrypEeeJ4u i3HuNGktmcsFbhiD7l2mB+FkDAKMM0xzvJ5EERAjWbGACVLwPdGh+Q3DbASMMsLYk1za dq1bHCE0QR0GSUeoDM16f1P0kPcKFmf/s1rIyTfU3wq1kwvnG2Lu0N7uRioZiO/QsnrY 0Y9A== X-Received: by 10.180.198.10 with SMTP id iy10mr5740169wic.10.1410960960504; Wed, 17 Sep 2014 06:36:00 -0700 (PDT) Received: from dell_xps.localnet (230.3.169.217.in-addr.arpa. [217.169.3.230]) by mx.google.com with ESMTPSA id lp1sm5652230wic.21.2014.09.17.06.35.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 17 Sep 2014 06:35:59 -0700 (PDT) From: Mick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: Reverse Tethering - How to? Date: Wed, 17 Sep 2014 14:35:38 +0100 User-Agent: KMail/1.13.7 (Linux/3.14.14-gentoo; KDE/4.12.5; x86_64; ; ) References: <1410945876.17613.2@numa-i> <1410947632.17613.4@numa-i> In-Reply-To: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2158945.NWXbxdDV32"; protocol="application/pgp-signature"; micalg=pgp-sha256 Content-Transfer-Encoding: 7bit Message-Id: <201409171435.57016.michaelkintzios@gmail.com> X-Archives-Salt: 67ccd813-f0ce-4a08-bfc5-fadf66ffc2c2 X-Archives-Hash: 5fdfce5cb62f29978c15136f7049bb46 --nextPart2158945.NWXbxdDV32 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Wednesday 17 Sep 2014 13:31:53 James wrote: > Helmut Jarausch igpm.rwth-aachen.de> writes: > > > > > > how do I need to configure my Gentoo box to allow for reverse > > > > >=20 > > > > > tethering from my (rooted) Android phone? >=20 > 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" >=20 > http://www.xinotes.net/notes/note/1500/ >=20 > 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. >=20 > 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. >=20 >=20 > Also find a good usb_sniffer so you can ensure the bits are bidirectional > across the usb ports. >=20 > Last. There is a "GentRoid" project and I'm quite certain that (gentoo) > embeded dude, will be a fantastic resource, if all else fails. >=20 > 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. >=20 > 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..... >=20 >=20 > 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. >=20 >=20 > good hunting! > James >=20 > 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=20 I think that in this case none of this is necessary, at least as far as the= =20 Linux PC is concerned. The incoming usb0 interface (or whatever the Androi= d=20 is recognised as) will be seen as an ethernet interface by the PC and good = ol'=20 NAT will forward it out via the PC's default NIC. I could be wrong, but=20 without access to Helmut's phone I can't speak with any certainty. =2D-=20 Regards, Mick --nextPart2158945.NWXbxdDV32 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAABCAAGBQJUGY48AAoJELAdA+zwE4YevOcH/iMxJX5w595QwRfkkn8zfncH 2XGh81mTT7IF5GJyP5bvxrVPCOffJFlQQ9y8ivSFLj9Qs3R45iGVDJMgVGtMnhiT Rc1x7UY0w8P3uLnq9iaPYSqQVss8YMrfosWBlgsBAsy3d7nxpMwNO2q3/T76kcGy PQC5skTtNJ2dprvL3J+lpsTalh5pSX767FxzQJsZCUVdzcgrADH+EyenUMa2TyiD C4GEQY1rPZXfepdiROBAB9jYopRFqThAv3Xj9MbKvTqXlMBid2tWl67TJxDxJxez qSdf/m3n7XNHFgh/gHT8prPRY1W5y10pFivUMS1n3781Ygp3xw4gxAd2xSgT/d0= =CMEb -----END PGP SIGNATURE----- --nextPart2158945.NWXbxdDV32--