@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:
- Connect with bluetooth PAN (ignore the auth error)
- 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.
- Tell any application to use the SOCKS proxy at localhost:8080 or try this