<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - shaunchapman</title>
<link>http://snipplr.com/users/shaunchapman/tags/proxy</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 16 Feb 2012 08:03:52 GMT</pubDate>
<item>
<title>(JavaScript) How To Connect To A SOCKS Proxy From An Unjailbroken iPhone/iPod Touch</title>
<link>http://snipplr.com/view/16563/how-to-connect-to-a-socks-proxy-from-an-unjailbroken-iphoneipod-touch/</link>
<description><![CDATA[ <p>Let's say, perhaps, that you are already forwarding your web traffic through an SSH/SOCKS tunnel at work (for privacy reasons that have absolutely no relation to accessing blocked sites LOL!) and you would like to use that same tunnel on your iPhone/iPod Touch.  This is actually pretty easy to accomplish.

First, you need to make sure the SOCKS tunnel on your work computer allows LAN connections so your iPhone/iPod Touch can connect to it.  To do this, you simply need to add `-g` to your existing SSH command (something like `ssh -N -g -D 1080 user@domain.com`).

Most people think you can't connect to a SOCKS proxy from an iPhone/iPod Touch without jailbreaking it but the truth is you can.  You simply have to create a Proxy Auto-Config (PAC) file, insert the function below in it (replace the *x*'s with your IP and the *y*'s with the port you used after the `-D` in your SSH command), and save it to a web accessible place with a *.pac* extension.  If you're reading this chances are you know how to serve a file over HTTP on your work LAN, so I won't delve into that.

Finally, on your iPhone/iPod Touch, go to *Settings > Wifi* and click the blue arrow to the right of your work network, scroll to the bottom, click *Auto* and type in the address to your PAC file (*e.g. http://192.168.xx.xx/mysupersecretproxy.pac*).

Congrats!  Now you can surf the web securely from your iPhone/iPod touch ;)</p> ]]></description>
<pubDate>Wed, 01 Jul 2009 13:51:50 GMT</pubDate>
<guid>http://snipplr.com/view/16563/how-to-connect-to-a-socks-proxy-from-an-unjailbroken-iphoneipod-touch/</guid>
</item>
</channel>
</rss>
