Tethering the iPhone in Linux

Since I want to be able to use my Linux laptop on the go without paying for a “tethering plan” or paying for a separate plan, I decided to try tethering my iPhone. Doing this with network-manager is simple.

Note: If you are comfortable with using iwconfig, you can use that instead of steps 1 and 2.
The steps:

  1. Switch your wlan card to roaming mode
  2. In the wifi menu on the menu bar, create a new wireless network and secure it if you wish.
  3. Connect the phone to the network.
  4. Note the phone’s IP address.
  5. Use ifconfig to give the computer a similar IP address
  6. Install and run 3Proxy on the phone (I recommend stopping 3Proxy when not in use to save battery life)
  7. Set Firefox to use the phone’s IP as a SOCKSv5 proxy.
  8. In about:config, set network.proxy.socks_remote_dns to true if you want DNS queries to go through 3Proxy
  9. Browse the web.

If you plan on doing this a lot, I recommend doing a few things:

  • Give the phone a static IP for your ad-hoc network
  • Make a separate Firefox profile for proxy use
  • At the beginning of each month, reset your usage statistics. This way, you will be able to monitor your bandwidth so you don’t go over your carrier’s cap.

If things don’t work, try these steps in order:

  1. Try pinging the phone. If you can’t, ensure the computer has an IP address, and try ifup –force wlan0 (or whatever your wlan interface is.)
  2. Make sure the phone’s SOCKS server is still running. Try running it from a terminal or ssh session to check for errors
  3. Make sure you set the option to forward DNS queries through SOCKS.

Sometimes, it just helps to start completely over on this one if all else fails.

If I can figure out how, I might write a script or something to do this, so please check my blog again soon.

Tags:

2 Responses to “Tethering the iPhone in Linux”

  1. Tethering the iPhone in Linux » iPhone Tricks Says:

    […] Matt Ventura’s blog added an interesting post on Tethering the iPhone in LinuxHere’s a small teaser … ethering plan” or paying for a separate plan, I decided to try tethering my iPhone…. […]

  2. teqgisritoha.online Says:

    teqgisritoha.online

    Matt Ventura's blog » Blog Archive » Tethering the iPhone in Linux

Leave a Reply