Geek Posted November 29, 2011 Posted November 29, 2011 <div class="KonaBody"><p><img src="http://osxdaily.com/wp-content/uploads/2011/11/use-socks-proxy-mac.jpg" alt="Setup and use a SOCKS Proxy in Mac OS X" title="use-socks-proxy-mac" width="620" height="286" class="aligncenter size-full wp-image-24367" /></p> <p>A wide variety of websites and online services are region restricted to the USA: Hulu, Netflix, Pandora, annual credit reports, some banks, the list is significant. Region restrictions are generally something you don’t notice until you need to access a website from outside the USA, and then they’re a huge pain. We’ll show you <strong>how to get around region restrictions securely by using a SOCKS proxy and SSH tunnel</strong>.</p> <p>Before getting started, you’ll need:</p> <ul> <li>A US-based web hosting or shell provider that allows SSH access, including a username and the remote machines IP</li> <li>Basic understanding and comfort with the <a href="http://osxdaily.com/category/command-line/">command line</a></li> </ul> <p>This walkthrough is aimed at Mac OS X, but you should be able to configure things much the same with iOS, Android, and Windows too. </p> <h2 style="font-size:1.2em;">Set up an SSH Tunnel and SOCKS Proxy in Mac OS X</h2> <p>Assuming you have a US host squared away, let’s begin:</p> <ul> <li>Go to the Applications folder, then to Utilities, then launch the Terminal and use the following syntax to set up the SOCKS proxy:</li> <p><code>ssh -D port_number user@remote_host_ip</code></p> <li>For example, if your username is AJ and the remote host IP is 75.75.75.75, and you want to setup a proxy on port 2012, the syntax would be:</li> <p><code>ssh -D 2012 AJ@75.75.75.75</code></p> <li>Login as usual and maintain the shell connection for as long as you intend to use the proxy, if you’re concerned about remote host timeouts just ping localhost or another ip</li> <li>Now go to the Apple menu and open “System Preferences”</li> <li>Click on “Network” and then click on “Advanced” in the lower right corner</li> <li>Click on the “Proxies” tab and click the checkbox next to “SOCKS Proxy” from the protocol menu</li> <li>Fill in the SOCKS Proxy server as 127.0.0.1 and provide the port from earlier, in this case 2012</li> <li>Click “OK”</li> </ul> <p>Now launch a web browser and double-check the external <a href="http://osxdaily.com/2010/11/21/find-ip-address-mac/">IP address</a> to confirm with a website like whatismyip.org or by running the following at the command line:</p> <p><code>curl whatismyip.org</code></p> <p>Your IP should now register as the remote US-based host you tunneling through, and you are free to view US region restricted content. </p> <p><strong>Side note</strong>: in some cases, specifically with websites that redirect based on region, you just need to find the proper URL and you don’t need to tunnel at all. A very useful example is <a href="http://osxdaily.com/2011/11/22/stop-google-com-redirecting/">stopping Google.com redirecting to another region</a> by using their NCR site, but there are other search engines and websites that have similar alternate URLs.</p> </div> <p><a href="http://feedads.g.doubleclick.net/~a/hH8VBy-Y6XkKjnRa960LFDbse5Q/0/da"><img src="http://feedads.g.doubleclick.net/~a/hH8VBy-Y6XkKjnRa960LFDbse5Q/0/di" border="0" ismap="true"></img></a><br/> <a href="http://feedads.g.doubleclick.net/~a/hH8VBy-Y6XkKjnRa960LFDbse5Q/1/da"><img src="http://feedads.g.doubleclick.net/~a/hH8VBy-Y6XkKjnRa960LFDbse5Q/1/di" border="0" ismap="true"></img></a></p><div class="feedflare"> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=AU2P3H_jEns:LemuN51i35s:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=AU2P3H_jEns:LemuN51i35s:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=AU2P3H_jEns:LemuN51i35s:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=AU2P3H_jEns:LemuN51i35s:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=AU2P3H_jEns:LemuN51i35s:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=AU2P3H_jEns:LemuN51i35s:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=AU2P3H_jEns:LemuN51i35s:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=qj6IDK7rITs" border="0"></img></a> </div><img src="http://feeds.feedburner.com/~r/osxdaily/~4/AU2P3H_jEns" height="1" width="1"/> View the full article
Recommended Posts