Connect Android to Linux PC internet via USB, reverse tethering

I found this:

http://forum.xda-developers.com/general/networking/guide-connect-android-to-linux-pc-t2825476

and this

http://www.taringa.net/post/linux/17746987/Compartir-Internet-desde-tu-PC-a-tu-Android-reverse-tetheri.html

If you guide by the pic of the last link you can see that it can be set up with network manager to the point of Metod - Shared after that point I guess that the rest of the set up can be like this

ifconfig usb0 192.168.137.1 netmask 255.255.255.0
echo 1 > /proc/sys/net/ipv4/ip_forward
/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
/sbin/iptables -A FORWARD -i usb0 -o eth0 -j ACCEPT

to leave the interface as windows does.

as explained in the first link, without having to change anything in the phone.

have anyone done reverse tethering without having to change anything in the phone like when tethering from windows, I am Using android 4.4.2

thanks

I’ve done this on my Tumbleweed laptop, using the Networkmanager GUI on KDE, just to see if it would work. Which it did.

Can you tell us the steps that you followed?

Thanks