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 wap.voicestream.com. 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(), "10.0.0.0", "255.0.0.0"))
return "PROXY 216.155.165.50:8080";
else
return "DIRECT";
}
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
Update preferences.plist located at
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.
By adding this code to the file, you’re instructing your iPhone to use a proxy
2) Enter APN, username and password Go to ‘Settings’ -> ‘General’ -> ‘Network’ -> ‘Edge.’ For the APN field enter wap.voicestream.com. 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(), "10.0.0.0", "255.0.0.0"))
return "PROXY 216.155.165.50:8080";
else
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:
<key>DeviceName</key>
<string>ip1<string></string>
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>Interface</key>
<dict>
<key>DeviceName</key>
<string>ip1</string>
<key>Hardware</key>
<string>com.apple.CommCenter</string>
<key>Type</key>
<string>com.apple.CommCenter</string>
</dict>
<key>Proxies</key>
<dict>
<key>ProxyAutoConfigEnable</key>
<integer>1</integer>
<key>ProxyAutoConfigURLString</key>
<string>file:///private/var/root/proxy.pac</string>
</dict>
<key>com.apple.CommCenter</key>
<dict>
<key>AllowNetworkAccess</key>
<integer>1</integer>
<key>Available</key>
<integer>1</integer>
<key>Setup</key> </dict>
By adding this code to the file, you’re instructing your iPhone to use a proxy
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.
ReplyDelete