Iphone - Software-defined (system-wide) proxy settings?

I'm new to iPhone development, so I'm sorry if this is a stupid question. I am developing an application whose purpose is to route all iPhone activity through a proxy server of my company.

Is there a way to programmatically set the proxy settings for the entire system on the iPhone (which will also affect the 3G connection)?

I know that there is a way to manually set proxy settings for each Wi-Fi connection. Detecting new networks and installing proxies on them will be acceptable. However, I also need to install a proxy server in a 3G connection.

In addition, a bonus: is there a way to programmatically change the "Limitations" settings?

If anyone has any advice or I can point me in the right direction, I would appreciate it. Thanks.

EDIT: Please understand that this is for a legitimate purpose. Apple needs to approve app store add-ons, so I don't like to spread the virus. Please only constructive answers.

+6
iphone cocoa-touch cocoa proxy
source share
2 answers

If you are setting up your iPhone in a commercial environment, you should look at the Enterprise Deployment Guide . In particular, you should look at how to use the iPhone configuration utility to create a * .mobileconfig configuration file that can be distributed to all phones on your network. The * .mobileconfig plugin supports changing the following proxy configuration settings on the phone:

PropNetProxiesHTTPEnable (Integer, 1 = Proxy enabled) PropNetProxiesHTTPProxy (String, Proxy server address) PropNetProxiesHTTPPort (Integer, Proxy port number) HTTPProxyUsername (String, optional username) HTTPProxyPassword (String, optional password) PropNetProxiesProxyAutoConfigEnable (Integer, 1 = Auto proxy enabled) PropNetProxiesProxyAutoConfigURLString (String, URL that points to a PAC file where the configuration information is stored) 

The iPhone Settings Utility does not currently support adding or changing these settings, so you may need to get your hands dirty with the Editor List Editor. Also, it appears that the latest version of the Enterprise Deployment Guide does not specify the options that I included above, but you should find it in the previous version of the document .

+5
source share

Pretty sure this is outside the isolated Apple SDK. Perhaps, possibly with a jailbreak.

-one
source share

All Articles