Android reverse tether

From thelinuxwiki
Revision as of 19:02, 25 February 2013 by Nighthawk (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Steps performed on you linux gateway

Install ifplugd to up/down ethernet ports automatically with cable detection

emerge ifplugd

Start ifplugd

Configure static interface settings

# echo "config_usb0=( "192.168.172.1/24" )" >> /etc/conf.d/net

Install, configure and start dnsmasq, this will enable the phone to get IP, default gw and DNS


Steps performed on android device

  1. Enable wifi but DON'T attach to any hotspots
  2. Enable tethering
  3. from root terminal, run "netcfg usb0 dhcp"


resources

http://blog.mycila.com/2010/06/reverse-usb-tethering-with-android-22.html
http://wiki.gentoo.org/wiki/Android_USB_Tethering

http://forums.gentoo.org/viewtopic-t-843255-start-0.html