The SOCKS proxy I created following proxy Using SSH tunnel works very well on both Linux and Windows. However, when I-try to configure my iPhone and IPad with iOS, I-find iOS does not the support SOCKS proxy in its settings inte Rface. I don ' t know why it's not added while socks proxy was indeed supported by the IOS operating system. This post introduces how to configure IOS for use of the SOCKS proxy created by the SSH tunnel.
Here, we assume so you had already set up one proxy (hence, you need one Linux or Unix host or others this can set Up SSH proxies listening to public IPs) that listens on a IP address which can be connected by the IOS device. One typical configuration may is that both the Linux host and the IOS device is connected to the same network such as as Wlan. Here, assume the address and the port of the SOCKS proxy over SSH tunnel are proxy_host:proxy_port
.
Prepare a PAC file on a host∞
You need a proxy auto-config (PAC) file to configure IOS to use the socks Proxy. The PAC file is a text file, which contains the content like this:
function FindProxyForURL (URL, host) {return "SOCKS Proxy_host:proxy_port";}
Here, you need to replace the with proxy_host:proxy_port
your proxy setting.
Assume this PAC, file is named, and is proxy.pac
stored at address http://www.my-server.com/proxy.pac
.
Configure the IOS device to use the socks proxy∞
Now, we can configure the IOS-socks proxy by pointing it to the PAC file.
In the IOS, go toSettings-Wi-Fiand click the blue right arrow on the right of your wireless network, chooseAutoIn theHTTP Proxysection, and fill the URL of the PAC file (http://www.my-server.com/proxy.pac
In our example).
By configured your IOS device to use the SOCKS proxy over SSH tunnel. Check Who am I and you should already has been behind the proxy.
How to Configure IOS for IPhone and IPad