Feb 2, 2013

reverse tethering android on linux mint "Nadia"

--why--
if you want to connect your android to internet even if you doesn't have Data Package.

 --info--
tested on linux mint 14 and maybe,  it will be work on other linux distribution.

*note : kalo kopi sudah di bikin maka mari di lanjutkan.. :D

-- persiapan--
plug you phone's usb and  enable usb tethering android in setting menu. This will assign an IP automatically when the device is added. bow check the IP address on both
PC/laptop
Android
-- on linux mint --
share your PC/laptop's internet connection, and make it as router with :
>$ sudo iptables -A POSTROUTING -t nat -j MASQUERADE
>$ sudo echo 1 > /proc/sys/net/ipv4/ip_forward

-- on android --
 run this command to pass the data internet via PC/laptop
># route add default gw 192.168.42.105 dev usb0
then set you DNS to google dns
># setprop net.dns1 8.8.8.8
-- testing --

open browser and enjoy the show...

*note : this methode can download/install app from android market. if you want to install app, use other market app ( black market )



0 comments:

Post a Comment

comment please ...