So you have a Linux laptop and an iPhone and what to tether the two together to have Internet access on the go at 3g speeds. I hope this post will help you get online asap.
WARNING: DOING THIS BREAKS YOUR iPHONE WARRANTY AND AGREEMENT WITH YOUR CELL/MOBILE PROVIDER: DO THIS AT YOUR OWN RISK!
If that hasn’t scared you off then here we go:
HOWTO:
- Jail break your iPhone. (You’ll have to look else where on how to do this) and install OpenSSH on your newly jail broken iPhone via Cydia.
- On your laptop create a adhoc wireless network. (This can be a right pain with Network-Manager but is doable) make sure you have a static IP address (for example: 10.1.0.1 subnet 255.255.255.0).
- Connect to the adhoc network from you iPhone and give your iphone a static IP address. (for example: 10.1.0.2 subnet 255.255.255.0)
- On you linux laptop do this: ssh -D 1080 root@10.1.0.2 and enter your password default is alpine (I’d change this if i were you)
- Now configure firefox to use a socks proxy this is in preferences -> advanced -> network -> settings.
- Select Manual Proxy and leave all blank apart from socks. In here you need to enter 127.0.0.1 and port 1080 and accept these changes.
- Now in the URL bar type about:config and filter for network.proxy.socks_remote_dns and change the value to true and restart firefox
- You should now be able to browse!
Trouble Shooting:
If your getting dns errors/timeouts, take your iPhone and use safari to browse to any web page then in the ssh terminal you opened ping www.moo.com and leave that running. This kicks off the 3G connection and keeps it live.
Adhoc network setup can be a real pain. Stick with it and try changing the settings in for your new adhoc connection then rejoining it. also try joining the iPhone to the network at the same time as Network-Manager gives up if it can not find any partners!!!
Suggestions.
Install the user agent switcher plugin for firefox and fake your user agent to the Phone browser. This might make you more difficult to trace for breaking the terms and conditions from your mobile provider. These are the setting you need.
Description: iPhone
User Agent: Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en)
App Name: AppleWebKit/420+ (KHTML, like Gecko)
App Version: Version/3.0
Platform: Mobile/1A543 Safari/419.3






no comment untill now