View Single Post
Old 06/15/2009, 02:12 AM   #22 (permalink)
fish199902
Member
 
Join Date: Aug 2007
Location: Denver, CO
Posts: 33
Thanks: 3
Thanked 20 Times in 5 Posts
Default

@jack87: I'm not exactly sure what you mean. Once you've rooted, the method I posted above doesn't edit any files. Optionally, you could save the commands to a file and run it as script, in which case, you would place it in /usr/bin/tether.sh (or similar).

grindz145 suggested modifying one of the built in applications to do this, but I haven't tried this yet.


Also, I have been experimenting with different methods of tethering. While the iptables solution above works, it still requires a script to be executed on the device, and conflicts with the Pre's built in WiFi daemon. Another solution: SSH supports running as a SOCKS proxy that can forward any (tcp) network traffic over its connection, this would allow network access (not just HTTP) without installing/running anything else on the Pre, and it works over Bluetooth PAN (despite sprint's 'auth error'). For this all that is necessary is to connect is to:
  1. Connect with bluetooth PAN (ignore the auth error)
  2. On the computer: Run 'ssh -D 8080 -p 222 preuser@10.1.1.10'. Alternatively (e.g. Windows), PuTTY can be configured to do this using dynamic forwarding.
  3. Tell any application to use the SOCKS proxy at localhost:8080 or try this
fish199902 is offline   Reply With Quote
Thanked By 5: