Rob Garth
Mildly Useful Stuff

Tethering an iPhone only takes ssh

September 19th, 2008 by robg

I know there a numerous apps in Cydia for running a socks proxy on the iPhone – but you don’t need them. In fact using them can be a bit painful because your either need to set a static IP address in the iphone for the ad-hoc network or regularly change your socks settings on you laptop.

All you need to create a socks proxy on the iPhone is openssh. Create a ad-hoc network on your laptop, join the iPhone to that network, now ssh to the iphone using the following command:

# ssh -D 1080 ip.address.of.iphone
You now have a socks proxy running on your local machine on port 1080. This has a few benefits.

  1. If you are on a mac, you can setup up one new location in network preferences which simply has a localhost socks proxy.
  2. It is more secure than an unauthenticated proxy server running on your iphone. You have a firewall right?

Posted in Uncategorized

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.