So you probably heard about Tetherbot for using USB and a socks proxy to “tether” your G1. Thats all well and good.. but if you have root, now there is a much better way.

Its pretty easy, especially with the binaries I’m providing below. (For those who want to do it themselves, that’s awesome and I’ll prolly give you way more help 🙂 but you’ll have to wait until I post the long version – maybe later tonight, maybe over the long weekend.)

Be aware, this will share any net connection available – 3g, edge, wifi.. (You can change the iptables rules to limit that accordingly, if you like.)

The next version will enable a dhcp server and autostart, which will let you use it without all the manual configurations below.

Short path:
– Copy those files to the device. iptables and pand can go anywhere (I recommend /system/xbin) and bnep.ko goes in /system/lib/modules.
– Make sure bluetooth is enabled (discoverable is optional – I’m going to assume you’ve alread paired everything. If not, do so now.)
– Log in as root and

insmod /system/lib/modules/bnep.ko
pand --listen --role NAP

– It will start listening and you can now go to your desktop and rescan. You should see “Network Access Point” or PAN or similar as a service now.
– If you configure that with your OS tools, you should get another network device. For now, just set it to static IP. My examples will assume that the PC gets and the G1 gets So set as the gateway and use whatever DNS entries you like (I use and .6 – nice fast caching UUnet nameservers. YMMV.)
– On the G1, configure the BNEP device:

ifconfig bnep0 netmask up

– Enable ip forwarding and NAT:

echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s -j MASQUERADE
iptables -t nat -A POSTROUTING -j ACCEPT

– ALL DONE! You can test from the PC by

ping -c5

to confirm connectivity to the G1, and

ping -c5

to test connectivity to the wide world.

<!– –>

Trackback URL for this post:

forex trading account

from forex trading account on Sat, 12/05/2009 – 18:23

Next task was to verify my theory that this should work well. I took the charger and a multimeter. I found out that the charger gave around 8V output when not loaded, the promised 3. 7V when loaded with the 355 mA current and around 700- 800 mA current…

Attachment Size
Attachment Size 202.05 KB