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
ifconfig bnep0 10.0.1.1 netmask 255.255.255.0 up
echo 1 > /proc/sys/net/ipv4/ip_forward iptables -t nat -A POSTROUTING -s 10.0.1.5 -j MASQUERADE iptables -t nat -A POSTROUTING -j ACCEPT
ping -c5 10.0.1.1
ping -c5 198.6.1.4
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 |
|---|---|
| tether-1.0.zip | 202.05 KB |
Comments