Friday, July 8, 2011

iPhone Proxy Setup

Enable and Setup proxy in iPhone

1) Turn off Auto-Lock Go to ‘Settings’ -> ‘General’ -> ‘Auto-Lock’ and select ‘Never.’ You can turn it back on after you’re done with this, but for now disable it.

2) Enter APN, username and password Go to ‘Settings’ -> ‘General’ -> ‘Network’ -> ‘Edge.’ For the APN field enter Make sure the username and password fields are empty.

3) Create proxy.pac Open your favorite text editor, and paste in the following code into a new document (it is case sensitive):

function FindProxyForURL(url, host)
if (isInNet(myIpAddress(), "", ""))
return "PROXY";
return "DIRECT";

Save the file to your Desktop as proxy.pac.

The text file should be in UTF-8 Text Encoding Format.

Upload proxy.pac to the iPhone Now we need to copy proxy.pac to our iPhone’s /private/var/root/ directory using iBrickr or iFuntastic .

Update preferences.plist located at /private/var/root/Library/Preferences/SystemConfiguration/preferences.plist on your iPhone.
look for the area of the file where it has the lines:


Note that the text inside the string tags should be ip1 (as opposed to en0, ip2 or anything else). Now add the following chunk of xml (in green) to the file in the appropriate place.


<key>Setup</key> </dict>

By adding this code to the file, you’re instructing your iPhone to use a proxy

1 comment:

  1. Very interesting blog. A lot of blogs I see these days don't really provide anything that attract others, but I'm most definitely interested in this one. Just thought that I would post and let you know.