Configure Socks proxy for iOS with a PAC file
Launch the Apache server on your Mac or somewhere on the network (raw gist will work ). Create a simple PAC file.
proxy.pac
function FindProxyForURL(url, host) {
return "SOCKS <Address of Charles-The-Proxy>:<SOCKS port>";
}
Then specify iPhones proxy settings under the network connection on HTTP Proxy-> Auto-> http://<addressOfWebServer>/proxy.pac
Final note
Remember to cancel the proxy settings when done.
source
share