View Single Post
Member: zeropoint46
at: 03:46 PM 07/06/2009
hello all,

I'm new here but I love the site. I posted this on the "possible tether work-around" thread but I wanted to make sure everybody got a chance to see it, and that thread is pretty long now. I used to have my 800w hacked for tethering and when I found the options of tethering available to the pre (so far) they just didn't quite cut it. I didn't want to have to ssh to my phone and use a socks proxy or run an app to shut down pmconnectionmanager every time I wanted to connect, so I modified the connectionmanager program to stop change ip_forward to 0. Here are the steps:

Prerequisites:
rooted pre
ssh access (dropbear or openssh)
ability to use VI or editor of your choice

optional prereq:
usbnet setup and dhcp setup

1) ssh to the phone, sudo to root and go to /usr/bin

2) cp PmConnectionManager PmConnectionManager.orig just in case you mess something up

3) stop PmConnectionManager

4) vi PmConnectionManager and do a find for "forward" (with vi you use / then the string you are looking for)

5) the third "forward" you find should say "Disabling IP Forwarding^@0^@^@^@"

6) change the 0 to a 1, save and quit

7) start PmConnectionManager

I did this and kept checking my /proc/sys/net/ipv4/ip_forward file and it is now staying at 1. with this and the correct IPtable rules I can just connect my phone via usb or bluetooth and get right on the net without ssh or anything else. I rebooted the phone many times and it has stuck also the iptable rull I'm using looks something like this:

iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

I added that iptable rule to my dropbear upstart script so it gets added on startup. If you wanted to make a separate upstart you could, but I was too lazy. I'm using webOS 1.0.4 and it's working great. Let me know if you have any questions. thanks.
Reply