Tethering has come along way since the android proxy tethering app, we can now tether over encrypted wep and bluetooth with the new Tether Wifi For Root Users App 1.5.1
This program enables tethering (via wifi and bluetooth) for "rooted" handsets running android (such as the Android DevPhone 1). Clients (your laptop for example) can connect via wifi (ad-hoc mode) or bluetooth and get access to the internet using the 3G, 2G mobile connection or (in case you are using bluetooth) the wifi connection which is established by the handset.
Download
Make sure you have a rooted phone and download this with your browser and install, the configuration is pretty much self explanatory.
FAQ
Screenshots
Showing posts with label Tether your android G1 phone. Show all posts
Showing posts with label Tether your android G1 phone. Show all posts
Thursday, June 11, 2009
Tuesday, November 11, 2008
Howto: Tether your Android G1 phone with iptables (no proxy needed)
First grab the iptables binary for you G1:
Download Here
Then push the binary to your android G1 device:
Now lets mount /system read/write and copy iptables to /system/bin/iptables
Now Disable wifi menu->settings->Wireless Control's Then Uncheck wifi
Either use ./adb Shell or telnet or Terminal Emulator to issue these commands, it is preferrable to use a telnet shell or ./adb with the SDK because you can copy/paste faster:
We just used a static ip, so make sure to change your ip to a ip in your lan:
Now lets enable/configure ip forwarding
Download Here
Then push the binary to your android G1 device:
./adb push iptables /data/local/iptablesNow lets mount /system read/write and copy iptables to /system/bin/iptables
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
cat /data/local/iptables >/system/bin/iptables
chmod 4755 /system/bin/iptablesNow Disable wifi menu->settings->Wireless Control's Then Uncheck wifi
Either use ./adb Shell or telnet or Terminal Emulator to issue these commands, it is preferrable to use a telnet shell or ./adb with the SDK because you can copy/paste faster:
insmod /system/lib/modules/wlan.ko
wlan_loader -f /system/etc/wifi/Fw1251r1c.bin -e /proc/calibration -i /system/etc/wifi/tiwlan.ini
cd /data/local/tmp
wpa_supplicant -f -Dtiwlan0 -itiwlan0 -c/data/misc/wifi/wpa_supplicant.conf &
sleep 5
ifconfig tiwlan0 192.168.2.30 netmask 255.255.255.0
ifconfig tiwlan0 up
We just used a static ip, so make sure to change your ip to a ip in your lan:
Now lets enable/configure ip forwarding
iptables -I FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -I FORWARD -s 192.168.2.0/24 -j ACCEPT
iptables -P FORWARD DROP
iptables -t nat -I POSTROUTING -s 192.168.2.0/24 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
Subscribe to:
Posts (Atom)