[GUIDE] USB Reverse Tethering - New method - All PC operating systems

Search This thread

b4u2

Senior Member
Jan 21, 2009
876
135
46
Cedar Rapids
Last edited:

nice_guy75

Senior Member
Mar 29, 2012
292
73
I want to use my office net on my mobile as I don't get data network at my workplace, how can I reverse tether? I am actually connected to the net via proxy and I believe it is the only reason I am not able to surf, I successfully used my laptop net on my mobile via reverse tethering where I am directly connected to the net.

Please explain in detail considering me a newbie.
 

Mkkt Bkkt

Senior Member
Feb 13, 2015
441
195
35
OnePlus 9R

isisky

Senior Member
Nov 18, 2010
112
12
Rennes
Hello, thanks for the app, unfortunately I can't seem to get it working properly, the only application that work is magisk manger that can download modules properly, but chrome or play store is not connecting to internet, this is the log i get using the app:
2018-03-26 19:12:18.237 INFO Main: Starting relay server...
2018-03-26 19:12:18.237 INFO Main: Checking gnirehtet client...
2018-03-26 19:12:18.237 INFO Relay: Relay server started
2018-03-26 19:12:18.341 INFO Main: Starting client...
Broadcasting: Intent { act=com.genymobile.gnirehtet.START cmp=com.genymobile.gnirehtet/.GnirehtetControlReceiver }
Broadcast completed: result=0
2018-03-26 19:12:18.866 INFO TunnelServer: Client #0 connected
2018-03-26 19:12:18.989 INFO UdpConnection: 10.0.0.2:62291 -> 8.8.8.8:53 Open
2018-03-26 19:12:19.122 INFO TcpConnection: 10.0.0.2:46721 -> 192.30.253.112:443 Open
2018-03-26 19:12:19.812 INFO TcpConnection: 10.0.0.2:46721 -> 192.30.253.112:443 Close
2018-03-26 19:12:19.812 INFO TcpConnection: 10.0.0.2:46721 -> 192.30.253.112:443 Open
2018-03-26 19:12:19.812 WARN TcpConnection: 10.0.0.2:46721 -> 192.30.253.112:443 Unexpected first packet 2510809749; acking 0; flags=4
2018-03-26 19:12:19.812 INFO TcpConnection: 10.0.0.2:46721 -> 192.30.253.112:443 Close
2018-03-26 19:12:19.828 INFO UdpConnection: 10.0.0.2:63779 -> 8.8.8.8:53 Open
2018-03-26 19:12:19.959 INFO TcpConnection: 10.0.0.2:38691 -> 54.231.40.155:443 Open
2018-03-26 19:12:23.272 INFO TcpConnection: 10.0.0.2:38691 -> 54.231.40.155:443 Close
2018-03-26 19:12:55.499 INFO UdpConnection: 10.0.0.2:10378 -> 8.8.8.8:53 Open
2018-03-26 19:12:55.633 INFO TcpConnection: 10.0.0.2:46723 -> 192.30.253.112:443 Open
2018-03-26 19:12:56.278 INFO TcpConnection: 10.0.0.2:46723 -> 192.30.253.112:443 Close
2018-03-26 19:12:56.278 INFO TcpConnection: 10.0.0.2:46723 -> 192.30.253.112:443 Open
2018-03-26 19:12:56.278 WARN TcpConnection: 10.0.0.2:46723 -> 192.30.253.112:443 Unexpected first packet 737392486; acking 0; flags=4
2018-03-26 19:12:56.278 INFO TcpConnection: 10.0.0.2:46723 -> 192.30.253.112:443 Close
2018-03-26 19:12:56.294 INFO UdpConnection: 10.0.0.2:8706 -> 8.8.8.8:53 Open
2018-03-26 19:12:56.399 INFO TcpConnection: 10.0.0.2:38682 -> 52.216.96.59:443 Open
2018-03-26 19:13:01.756 INFO TcpConnection: 10.0.0.2:38682 -> 52.216.96.59:443 Close
2018-03-26 19:13:01.760 INFO TcpConnection: 10.0.0.2:38682 -> 52.216.96.59:443 Open
2018-03-26 19:13:01.760 WARN TcpConnection: 10.0.0.2:38682 -> 52.216.96.59:443 Unexpected first packet 2982479479; acking 0; flags=4
2018-03-26 19:13:01.760 INFO TcpConnection: 10.0.0.2:38682 -> 52.216.96.59:443 Close
2018-03-26 19:13:25.663 INFO UdpConnection: 10.0.0.2:5134 -> 8.8.8.8:53 Open
2018-03-26 19:13:25.678 INFO UdpConnection: 10.0.0.2:4253 -> 8.8.8.8:53 Open
2018-03-26 19:13:25.764 INFO TcpConnection: 10.0.0.2:41659 -> 151.101.0.133:443 Open
2018-03-26 19:13:25.792 INFO TcpConnection: 10.0.0.2:39690 -> 192.30.253.117:443 Open
2018-03-26 19:13:27.091 INFO TcpConnection: 10.0.0.2:41661 -> 151.101.0.133:443 Open
2018-03-26 19:13:27.535 INFO TcpConnection: 10.0.0.2:41663 -> 151.101.0.133:443 Open
2018-03-26 19:13:27.536 INFO TcpConnection: 10.0.0.2:41662 -> 151.101.0.133:443 Open
2018-03-26 19:13:27.537 INFO TcpConnection: 10.0.0.2:41664 -> 151.101.0.133:443 Open
2018-03-26 19:13:27.541 INFO TcpConnection: 10.0.0.2:41665 -> 151.101.0.133:443 Open
2018-03-26 19:13:27.541 INFO TcpConnection: 10.0.0.2:41666 -> 151.101.0.133:443 Open
2018-03-26 19:13:28.406 INFO TcpConnection: 10.0.0.2:39690 -> 192.30.253.117:443 Close
2018-03-26 19:13:35.860 INFO TcpConnection: 10.0.0.2:41659 -> 151.101.0.133:443 Close
2018-03-26 19:13:35.860 INFO TcpConnection: 10.0.0.2:41664 -> 151.101.0.133:443 Close
2018-03-26 19:13:49.567 INFO UdpConnection: 10.0.0.2:9063 -> 8.8.8.8:53 Open
2018-03-26 19:13:49.692 INFO TcpConnection: 10.0.0.2:46734 -> 192.30.253.112:443 Open
2018-03-26 19:13:50.371 INFO UdpConnection: 10.0.0.2:3646 -> 8.8.8.8:53 Open
2018-03-26 19:13:50.373 INFO TcpConnection: 10.0.0.2:41665 -> 151.101.0.133:443 Close
2018-03-26 19:13:50.499 INFO TcpConnection: 10.0.0.2:49747 -> 192.30.253.121:443 Open
2018-03-26 19:13:51.293 INFO TcpConnection: 10.0.0.2:41663 -> 151.101.0.133:443 Close
2018-03-26 19:15:18.388 INFO UdpConnection: 10.0.0.2:8706 -> 8.8.8.8:53 Close
2018-03-26 19:15:18.388 INFO UdpConnection: 10.0.0.2:10378 -> 8.8.8.8:53 Close
2018-03-26 19:15:18.388 INFO UdpConnection: 10.0.0.2:63779 -> 8.8.8.8:53 Close
2018-03-26 19:15:18.389 INFO UdpConnection: 10.0.0.2:62291 -> 8.8.8.8:53 Close
If anyone can help I would realy appreciate thanks !

EDIT: It seems that the problem is from the browser isn't using any dns, if type the ip adresse of a website directly it works, but if not i get a ERR_NAME_NOT_RESOLVED, any idea to make the dns work?
 
Last edited:

Babakkardan

Senior Member
Usb reverse tether between two android devices

I want to set up a usb reverse tether connection between two android devices. What setup do I need on the device which is providing the internet connection? Both devices have root access. Any guidance would be great, thank you.
 

zygd

Member
Apr 1, 2015
23
1
It really works. Is it possible to, using similar method, create from Android BOX with WiFi and Ethernet port an Access Point to share WiFi for other devices? Ethernet port is seeing as cellular network.
 

shouk_1987

Senior Member
Jul 2, 2012
1,023
299
Xiaomi 11 Lite 5g NE
thank you very much , got it working in like 30sec , one step , better than anything i saw :highfive: :good:

I add my voice to this one
It really worked and i am totally happy with it
It was a little pain at the start because adb was not seeing my device because my LG drivers were not installed
Also the APK was not pushed by adb and hence i installed it manually first
once I installed LG drivers, minimalist adb, the APK and usb debugging is enabled , the cmd script file run just fine
I am having reverse tethering at my work while my Data connection is Off
 

ansh170993

New member
Nov 27, 2018
1
0
Getting proxy error

Hello, I tried all the steps in the windows. The steps worked fine but I am still not able to use the internet on my device. I am getting "err_proxy_connection_failed" error when trying to open anything in my browser. Can anyone please help me here?
PS: I am using a corporate network.
 

Mahesar

Senior Member
Help!

It really works. Is it possible to, using similar method, create from Android BOX with WiFi and Ethernet port an Access Point to share WiFi for other devices? Ethernet port is seeing as cellular network.

It's perfect but today I got one more way but it is not critical to follow: this you shared that it is working at there but same thing not running fine at here.
 

liandex

New member
Dec 19, 2021
4
0

liandex

New member
Dec 19, 2021
4
0
Maybe too much to ask for, but, would it be possible for the phone to 'know' what kind of connection (ethernet or wifi) is shared?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 194
    Introduction
    This guide is intended to help you share Internet connection from your PC to your Android smartphone/tablet via USB cable. This technique is called USB reverse tethering. It is different from USB tethering in which you share Internet from your Android to your PC. There are many reasons why you need this technique working:
    - You don't have mobile/wifi network and your PC doesn't have any wifi adapter
    - You can't do tethering over wifi, for example, your company doesn't let you make any hotspot at work
    - You don't want to spend money for a mobile plan, and you want a more stable and faster Internet connection than wifi
    - You don't want your PC and your Android to become too hot because of wifi
    - You want your Android charged while in use
    ...

    You have searched and found some applications/tools/solutions, you followed exactly their instructions but finally you were frustrated because they didn't work, here I come for a new method. :D
    This method works following Internet connection sharing basics. If your Android device is able to do USB tethering, you will be able to do USB reserve tethering with this method!
    Advantages:
    - No additional software on your PC. Leave no trace on your PC. Imagine when you are at work and you have to install some crappy "toy" application on your PC to estiblish a tunnel connection for this task.
    - Works with Windows, Linux and Mac OS X
    - You know what you do. Who knows what the "easy-to-use" tools do when they fail to help you?
    Disadvantages:
    - You have to type some commands on your Android.
    If you are ready, let's start!

    Requirements:
    - Rooted Android device with "USB tethering" capability. Check in Android Settings - Wireless & networks - Tethering & portable hotspot. Many stock ROMs disable this capability. You must enable it somehow (root your Android and use an application to enable or replace the stock ROM). CyanogenMod ROMs always have this capability. The important thing to remember is when you connect your Android and enable "USB tethering", it appears as a USB network adapter, not a mass storage or media device.
    - PC with a working Internet connection.
    - USB cable to connect your Android to your PC.
    - Terminal Emulator on your Android. If you don't want to type commands on your touchscreen with Terminal Emulator, you can use your PC keyboard to enter commands with "adb shell". adb is a part of Android SDK which is available for download from Google. To use adb, you need to enable "USB debugging" on your Android.
    - Optional, BusyBox on your Android.

    Step 1: Connect your Android to PC by USB cable and enable "USB tethering". You are still allowed to enable this option even when your 3g/wifi on your Android is off.
    - If you are using Linux (Ubuntu), you don't need to install anything. NetworkManager applet will try to establish a connection on the new detected wired network device.
    - If you are using Windows, Windows will automatically search Windows Update and install driver for you. You can skip Windows Update search and install manually an already included driver from Microsoft. In Install Driver window, click Browse My Computer, then Let me pick..., select Network Adapters, uncheck Show Compatible Hardware, look at "Microsoft Corporation" at the left column, and choose Remote NDIS Compatible Device from the right column. You can install or update a driver from Device Manager in Windows.
    - If you are using Mac, install driver HoRNDIS. You will be notified about a new network interface. Click "Network Preferences" in the dialog to add it to known interfaces list. Then "Apply".
    - If you are using Linux without GUI or NetworkManager, run these commands as root (or use sudo):
    Code:
    ifconfig usb0 10.42.0.1 netmask 255.255.255.0
    (suppose that you don't have any other USB network adapter, otherwise, your Android may be usb1, usb2...)
    Code:
    echo 1 > /proc/sys/net/ipv4/ip_forward
    Command for sudo will be:
    Code:
    sudo 'echo 1 > /proc/sys/net/ipv4/ip_forward'
    Code:
    iptables -t nat -F
    iptables -t nat -A POSTROUTING -j MASQUERADE

    Step 2:
    - If you are using Linux, click on NetworkManager applet at the top right of your screen, select "Edit Connections...". In tab "Wired", choose the new established connection (be careful, not Ethernet LAN connection) and click "Edit..." In tab "IPv4 Settings", choose "Shared to other computers" as Method. Click "Save". NetworkManager will reestablish the connection and assign to your PC an IP address on this USB network connection, default: 10.42.0.1. Leave Internet connections (wired or wireless) untouched.
    - If you are using Windows, open "Network Connections" in Control Panel. It is somewhat different from setup in Linux. Right click on an Internet connection that you have. I assume that you are using a desktop which doesn't have any wifi adapter, so right click on LAN Ethernet connection with Internet, and select "Properties". In tab "Sharing" (or "Advanced" for Windows XP), click "Allow other network users to connect through...", then select the USB connection in dropdown list below. Click OK. Windows will automatically setup your USB network connection and assign to it an IP address, default for Windows 7: 192.168.137.1, default for Windows XP: 192.168.0.1. You can see your Internet connection is now "Shared" and your USB connection is now "Unidentified network".
    - If you are using Mac, open System Preferences - Network. If you installed HoRNDIS, you will see a new network interface corresponding to your USB connection. With "Using DHCP" as Configure Ipv4, it may be already connected. Go back to System Preferences, click "Sharing". Select "Internet Sharing". Choose the Internet connection (Ethernet or Airport...) in "Share your connection from", and choose USB connection interface in "To computers using". Mac will assign to your USB connection interface an IP address, default: 192.168.2.1.
    - If you are using Linux without GUI or NetworkManager, you have done all PC setup in step 1.

    Your PC setup is now done!

    Step 3:
    Open Terminal Emulator on your Android. Type:
    Code:
    su
    The command prompt must change from $ to #. If it does not, check to ensure that your device is rooted properly.
    [UPDATED]Type the following command in Terminal Emulator, the same for all PC operating systems:
    Code:
    netcfg rndis0 dhcp
    The name for usb interface inside Android may vary. It is usually rndis0 or usb0. Type
    Code:
    busybox ifconfig
    to identify the name.
    Use OLD instructions below when automatical dhcp method does not work.

    [OLD]Type these following commands in Terminal Emulator:
    For Linux PC:
    Code:
    ifconfig rndis0 10.42.0.2 netmask 255.255.255.0
    route add default gw 10.42.0.1 dev rndis0
    If route fails, try:
    Code:
    busybox route add default gw 10.42.0.1 dev rndis0
    For Windows PC, use the same above commands, replace 10.42.0.2 by 192.168.137.2 (192.168.0.2 for Windows XP), replace 10.42.0.1 by 192.168.137.1 (192.168.0.1 for Windows XP)
    For Mac PC, replace 10.42.0.2 by 192.168.2.2, replace 10.42.0.1 by 192.168.2.1

    Now you can close Terminal Emulator and start the browser for Internet.

    Some applications (download in Google Play, GMail, Facebook...) don't recognize Internet connection. You can try this way (WARNING: NOT TESTED):
    - Enable temporarily 3G connection on your Android
    - Type:
    Code:
    ifconfig rmnet0 0.0.0.0
    The name for 3G interface inside Android may vary: ppp0, rmnet0... Type
    Code:
    busybox ifconfig
    to identify the name.
    before ifconfig rmnet0 ... above.
    This will make applications see your Internet connection via USB as 3G!

    USB tethering settings on Android will be reverted automatically when you unplug USB cable. To revert back settings on PC, uncheck "Allow other network users to connect through..." on Windows, "Internet sharing" on Mac, change from "Shared to other computers" back to "Automatically (DHCP)", or simply delete USB connection from NetworkManager on Linux.
    10
    Script update

    [05/09/2015 : script update] : if looking for a cleaner script it is the one I'm using today, with dhcp options in the header to disable the non required dhcp server of dnsmasq, this the script posted in this ticket: https://code.google.com/p/android/issues/detail?id=99034 or this mirror http://pastebin.com/snS9erAP also included in this post now


    The method to reverse tether shown by the original poster only works for Android 4.4.4, if you need one working method for Android 4.4.4, 5.0.1 and higher you need to run you own dnsmasq instance, to do so follow the instructions below

    I have explained the method in different previous posts in this thread but in this post I recapitulates all you have to do (close to nothing to do once all is set)

    Since my latest posts in this thread, I have updated the script to export the variables into environment variable in case you need to change dns, ip or anything, or download it if you are not familiar in doing UNIX line ending scripts (attached a zip with all the scripts I'm using to this post)

    Code:
    IP=192.168.137.101                      # ip of the rndis interface (if using Windows Internet Connection Sharing usually set to an ip in the 192.168.137.x range, or your home network range if using a Network Bridge like 192.168.1.x)
    NETMASK=24                                      # netmask of the rndis interface (if you don't know this setting set it to 24, 255.255.255.255 = 32 | 255.255.255.0 = 24 | 255.255.0.0 = 16 | 255.0.0.0 = 8)
    GATEWAY=192.168.137.1           # gateway of the rndis interface (main route, if using Windows Internet Connection Sharing usually set to 192.168.137.1, or your home internet box if using a Network Bridge like 192.168.1.1)
    DNS1=8.8.8.8                            # domain name resolution (google public dns1 = 8.8.8.8, but should be faster to your home internet box like 192.168.1.1)
    DNS2=8.8.4.4                            # domain name resolution (google public dns2 = 8.8.4.4)
    
    USE_DHCP=0                                      # loads the DHCP server option of dnsmasq (not required, defaults to 0)
    DHCP_FROM=192.168.137.10        # ignored if USE_DHCP=0
    DHCP_TO=192.168.137.90          # ignored if USE_DHCP=0
    
    # ! NO NEED TO EDIT AFTER THIS LINE ! Tested working on Android 4.4.4 and 5.x
    echo -- rndis0: setting usb mode to rndis --
    setprop sys.usb.config 'rndis'
    echo -- rndis0: adding ip rule --
    ip rule add from all lookup main
    echo -- rndis0: flushing interface --
    ip addr flush dev rndis0
    echo -- rndis0: setting ip --
    ip addr add $IP/$NETMASK dev rndis0
    echo -- rndis0: starting the interface --
    ip link set rndis0 up
    echo -- rndis0: setting route --
    #ip route add default via ${GATEWAY} dev rndis0
    busybox route add -net 0.0.0.0 netmask 0.0.0.0 gw $GATEWAY dev rndis0
    #echo -- rndis0: (optional) setting iptables --
    #iptables -t nat -I POSTROUTING 1 -o rndis0 -j MASQUERADE
    #echo -- rndis0: (optional) setting ip_forward --
    #echo 1 > /proc/sys/net/ipv4/ip_forward
    echo -- rndis0: setting properties --
    setprop net.dns1 $DNS1
    setprop net.dns2 $DNS2
    setprop net.rndis0.dns1 $DNS1
    setprop net.rndis0.dns2 $DNS2
    setprop net.rndis0.gw $GATEWAY
    setprop net.rndis0.gateway $GATEWAY
    killall dnsmasq &> /dev/null
    if [ $USE_DHCP = 1 ]; then
            echo -- rndis0: starting dnsmasq with dhcp --
            dnsmasq --no-poll --pid-file --interface=rndis0 --interface=wlan0 --interface=rmnet0 --bogus-priv --filterwin2k --no-resolv --server=${DNS1} --server=${DNS2} --cache-size=1000 --dhcp-range=${DHCP_FROM},${DHCP_TO} --dhcp-lease-max=253 --dhcp-authoritative --dhcp-leasefile=/cache/usb_tether_dnsmasq.leases < /dev/null
    else
            echo -- rndis0: starting dnsmasq without dhcp --
            dnsmasq --no-poll --pid-file --interface=rndis0 --interface=wlan0 --interface=rmnet0 --bogus-priv --filterwin2k --no-resolv --server=${DNS1} --server=${DNS2} < /dev/null
    fi

    How to use these scripts
    1) Unpack and copy all the .sh script to the Smartphone shared folder in Windows, for example with a Nexus 5, place files in This PC\Nexus 5 base folder where others folders are showing like DCIM etc.., they will point to /sdcard/ in your phone
    2) In a Terminal of your phone, type: su (to get root privilege) and make sure your phone's internet access are disabled, Wifi off, Phone internet off. (the Terminal I'm using in screenshot is Terminal Emulator by Jack Paleviche, very good one)
    3) In the Terminal type: su -c 'sh /sdcard/rn.sh' (In the background this will enable the rndis interface in Windows, set the ip of rndis0 in the phone to 192.168.137.101, gateway to 192.168.137.1, set google's public dns to the properties and to dnsmasq, NO ERRORS SHOULD BE SHOWN, ONLY ECHO COMMANDS AS SHOWN IN SCREENSHOT, if you see errors you need to reset the changes with su -c 'sh /sdcard/rnoff.sh' and restarts from step 3 until you fix, or ask here if you are lost how to fix)
    4) In Windows uncheck/recheck Internet Connection Sharing on the Internet card (this reenable Internet Connection Sharing sometimes buggy after unpluggin phone and restarting the computer, this should also automatically assign the ip 192.168.137.1 and netmask 255.255.255.0 to the RNDIS interface in Windows, if in your case it is not showing as 137.1 but another IP you will need to update the gateway of the script to point to this IP, or you can also set this ip manually to a new one you will remember 192.168.137.2 and update the gateway in the scripts to point to this new ip 137.2, but the ultimate best approach is to fix why Windows does not automatically attrib 137.1 to it because you will need to disable/enable again the ICS frequently so it is better to have it pointing to its default address by default in case one day it does no more assign your custom IP.

    From here you should get Internet Access in Google Chrome and Speedtest.net App
    But to get access in 100% of the App you need to run the Wifi interface set to the IP of the RNDIS interface

    5) In the Phone enable manually Wifi, connect your home wifi access point in STATIC IP mode, for example here I do IP: 192.168.137.102, GATEWAY: 192.168.137.1 DNS1:8.8.8.8 DNS2:8.8.4.4
    6) On Android 4.4.4 you should be all set, on Android 5.0 sometimes the route is not set properly, in this case you can use my wifi scripts
    7) su -c 'sh /sdcard/wloff.sh' once to reset the wlan0 interface and shortly after su -c 'sh /sdcard/wl.sh' to set again wifi on again with the same settings (if you get an error after setting the route, just execute wloff.sh/wl.sh again this will pass)

    Some useful commands
    netcfg (see network cards running state, the ip and netmask of each one)
    busybox route -n (see network card routes/gateways)
    vi (file edition)
    su (alone in the terminal editor to get root privilege directly in the terminal)
    su -c 'sh /path/toscript.sh' (run a script as root)
    mount -o remount, RW /system (allows writing in system files for example for adding your custom aliases to the /etc/mkshrc file, it reverts to read only after a reboot)

    Some custom aliases example (to add in /etc/mkshrc to type things fastly once you are all set, "rn" will start reverse tether, "rnoff" will stop, etc...)
    alias rn='sh /sdcard/rn.sh'
    alias rnoff='sh /sdcard/rnoff.sh'
    alias wl='sh /sdcard/wl.sh'
    alias wloff='sh /sdcard/wloff.sh'
    alias rm='sh /sdcard/rm.sh'
    alias rmoff='sh /sdcard/rmoff.sh'
    alias ro='busybox route -n'
    alias pi='ping google.com'
    alias piip='ping 8.8.8.8'
    alias pirn='ping -I rndis0 google.com'
    alias wr='mount -o remount, RW /system'
    alias n='netcfg'

    Screenshot of all the procedure under Android 5.0, RNDIS + WIFI
    8
    For anyone struggling to do this, here's a one-click tool to do this:
    https://github.com/Genymobile/gnirehtet/blob/master/README.md#run-simple

    Just install ADB on computer, enable ADB on Android device, and just run the executable/binary from CMD/terminal.
    As simple as that..!!

    No root required!
    3
    Awesome tutorial! I moved to a new office at work and lost my 4G signal, they don't have new WiFi AP's up yet, and Edge sucks. I figured out the first half but couldn't figure out how to take a DHCP address on the USB connection on my phone. That worked perfectly and if you leave WiFi or mobile data on then ifconfig it to 0.0.0.0 Gmail et. al. work fine as well. Combined with my Open VPN bridged tunnel to my home network this is a great system for getting a connection away from wireless signals.
    3
    If it can be interesting to someone I wrote a short free guide for non-rooted devices that works with android 5+ and a linux pc. Visit salutepc.it --> tips or click here (for more details but only in italian language (for now) see here). EDIT: I wrote another guide for USB Reverse Tethering No Root No ADB Android (all versions) & Linux that should work for all versions of Android (tested on Android 4.2+). It only needs the (built-in) USB tethering function of Android and "OpenVPN for Android" app.

    I have adapted the "quick mode guide" for Windows users here --> USB Reverse Tethering No Root No ADB Android (all versions) & Windows 10.

    Update: video on https://youtu.be/tr1hm01a-Ik