Home About Archives Contact Guest Post Privacy Policy  
 

Palm Pre How To Guide

Palm Pre How To Guide - Enable Tethering Over Bluetooth!

Credit goes to fish199902 for this one.  Basically, you setup an SSH tunnel to the Pre, which supports running as a SOCKS proxy.  You then configure your browser to point to this proxy and BAM, you're tethering away.

First, you must have rooted your Pre and installed/enabled SSH.\

UPDATE 8/6/09:  Easier method with GUI: MyTether App

Original thread, download, and guide here: http://forums.precentral.net/...

This method uses a homebrew app called "MyTether" that essentially does all the hard work.  There's even an automated installation installer, so you don't have to worry about rooting your Pre.  However, it runs $10, but it's free if you install the program through a rooted shell.

UPDATE 7/7/09: Newer method directly below.  Allows USB tethering along with bluetooth.

Thanks zeropoint46 for this awesome post detailing an easier method to enable tethering.  This method will allow you to tether over bluetooth or USB.  If you want to tether over USB, make sure you have USBnet setup.

1. First, SSH to your Pre and su to root.  Then, remount the root file system as read/write.

mount -o remount,rw /
                            

2. Then, enter the /usr/bin directory, make a backup of PmConnectionManager, and stop the process

cd /usr/bin
cp PmConnectionManager PmConnectionManager.orig
stop PmConnectionManager

3. Using vi and only vi, edit the PmConnectionManager file.  Find the line that says "Disabling IP Forwarding^@0^@^@^@" and change the o to a 1.  In vi, type "/forward" to search for the string, hit the insert key to enter insert mode and edit the line, then hit esc and type ":wq" to save and exit.  If you're having trouble finding that string, it's located in line 308.

vi PmConnectionManager
                              

4. Save the file after you make the edit, then start the PmConnectionManager process back up.

start PmConnectionManager
                              

Now /proc/sys/net/ipv4/ip_forward should contain a "1" instead of "0".  Previously, the ip_forward setting would always read/reset itself to "0", making tethering very disruptive.  With this method, that value will stay at "1".

5. Setup a NAT rule in iptables by running

/usr/sbin/iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

6.  Finally, add the command in step 5 to a start-up script in /etc/event.d.   Using nano as the text editor, you would run

nano -w /etc/event.d/ipforward
                              

Then copy/paste the lines below into the file

start on stopped finish
stop on runlevel[!2]

console none

pre-start script
     /usr/sbin/iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
end script
                              

Save and exit the file and reboot your phone.  Then, connect using bluetooth or via USB utilizing USBnet. Make sure your wifi is turned off so your traffic will route through the Pre's EVDO connection.  Everything should be good to go at this point.  If you're having trouble, make sure you have no firewalls running.


Old method posted 6/15/09:

Connect to your Pre's NAP (network access point) via Bluetooth:

Connect to Pre NAP to Tether


Ignore this error message on your Pre:

Ignore Pre Tether Error Message

Using PuTTY, configure the following settings under Connection -> SSH -> Tunnels:

Source port: 8080

Destination: Dynamic and Auto radio buttons

Click Add and you'll see the port in the "Forwarded ports" box

Pre Tether Putty Setup

Then, initiate the SSH connection to your Pre.  Going through Bluetooth and using port 222, your connection window will look like this:

Pre Tether through SSH SOCKS proxy

Once you're at the login screen, configure your browser's SOCKS proxy with:

Address: localhost

Port: 8080

Pre Tether IE7 SOCKS Proxy Setup

Now you're good to go! Enjoy the tethering capabilities of your Palm Pre.  Here's proof:

Image


 

Copyright © 2010 IsYouGEEKedUp.com All Rights Reserved