N
N
NeoCode2016-06-08 21:02:19
linux
NeoCode, 2016-06-08 21:02:19

How to distribute internet from linux to android via usb cable?

We need a clever scheme.
There is a remote server with Internet access, it can only be connected via ssh. There is a machine with Linux, on which an ssh tunnel is organized to some local port, as a result, on this Linux you can sit on the Internet by setting up socks5-proxy (that is, localhost and the port number are written in the browser settings). And then you need the following: a smartphone with Android is connected to Linux via a usb cable, and it is necessary that the smartphone also has Internet. If possible, without rooting ... although if not, well, you'll have to root. Moreover, it would be nice if the Internet was not shared (i.e. not for all applications), but also through a socks5 proxy in order to sit through a configured browser and at the same time no other Android programs created traffic, and the Android IP address would not be available nowhere but this Linux machine.
Tell me how to do it with the least effort?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
J
jcmvbkbc, 2016-06-09
@jcmvbkbc

The standard way is to load the cdc_ether driver on the host and g_ether on the device, after which both should have a usb0 interface.

M
Michael, 2016-06-08
@Madfisht3

I doubt it will work at all. It's one thing to connect to the phone via the com port and surf the Internet through it, and it's quite another to connect to the car from the phone. You will need a special driver for android.

G
Gari1, 2018-04-09
@Gari1

Maybe here you will find the right answer to the question wpilot.blogspot.ru/2015/01/linux-mint-usb.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question