I've successfully setup a way to access the tor network via my iPhone. The only thing that's missing is .onion links. I assume that the DNS lookup fails because its not a real world valid domain extension. I was wondering how I could tell my iPhone otherwise.
Would I have to use a PAC function in the .pac file? If so, what one and where do I point it to?
Edit:
To connect my iPhone to the Tor network I installed tor on my Raspberry Pi, as well as apache. I allowed Tor to accept connections from any device on the network. Placed a .pac file in the root of my web server and its contents are as follows:
function FindProxyForURL(url, host){
return "SOCKS 10.0.1.14:9050";
}
The DNS settings on my iPhone are default:
DNS 10.0.1.1
Search Domains "blah.blah.internetserviceprovider.net"
To connect to Tor I specified the proxy as automatic and to the Raspberry Pi's IP, which in this case was 10.0.1.14.
So together the url was http://10.0.1.14/proxy.pac
This works perfectly to mask my IP and DNS, but .onion is not available