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.
- If you are on a mac, you can setup up one new location in network preferences which simply has a localhost socks proxy.
- It is more secure than an unauthenticated proxy server running on your iphone. You have a firewall right?
Posted in Uncategorized