<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>EloquentSpace &#124; Dan Kelly&#039;s Weblog &#187; safe browsing</title>
	<atom:link href="http://www.eloquentspace.net/blog/tag/safe-browsing/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.eloquentspace.net/blog</link>
	<description>I Hack and Tweak Everything</description>
	<lastBuildDate>Thu, 31 Dec 2009 03:31:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Getting to blocked sites at work with SSh</title>
		<link>http://www.eloquentspace.net/blog/getting-to-blocked-sites-at-work-with-ssh/</link>
		<comments>http://www.eloquentspace.net/blog/getting-to-blocked-sites-at-work-with-ssh/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 21:36:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[From the old Blog]]></category>
		<category><![CDATA[HowTo's]]></category>
		<category><![CDATA[encrypting traffic]]></category>
		<category><![CDATA[getting around firewall]]></category>
		<category><![CDATA[getting to blocked sites]]></category>
		<category><![CDATA[hiding internet browsing]]></category>
		<category><![CDATA[putty]]></category>
		<category><![CDATA[safe browsing]]></category>
		<category><![CDATA[tunelling with ssh]]></category>

		<guid isPermaLink="false">http://www.eloquentspace.net/blog/?p=339</guid>
		<description><![CDATA[This article describes in detail how to tunnel through firewalls using SSh, allowing you to visit blocked pages, used blocked services, and encrypt your connection to ensure privacy.]]></description>
			<content:encoded><![CDATA[<p><strong>So you&#8217;ve been at your new job for awhile and you&#8217;re getting tired of watching Youtube videos through Ztunnel.com and using Meebo to chat?</strong> Assuming you have a decent internet connection at home, you could be using your own, password protected proxy server, using AIM, or what the hell &#8211; you could just remote desktop to your home computer and abandon your work desktop altogether!</p>
<p><em>Disclaimer: Check with your local government about the legality of encryption in your country.  Exporting encryption algorithms from the United States to a foreign country is illegal, and using encryption at all is illegal in some countries. </em></p>
<p><strong>What you need</strong></p>
<ul>
<li>An always on high speed connection at home</li>
<li>OpenSSh (linux or windows version will work)</li>
<li>Putty (check the downloads section)</li>
<li>A port scanner program (google &#8216;free port scanner&#8217;)</li>
</ul>
<p><strong>Step 1<br />
</strong><br />
First off, find out what ports are open on your company&#8217;s firewall&#8230; port 21, 80 and 443 are all most likely open, unless your company uses a proxy server.  I won&#8217;t show you how to find the firewalls IP address, but it is in many cases the gateway address of your machine.  In a command prompt type &#8216;ipconfig /all&#8217;  take note of the gateway address.  Run the port scanner on your company&#8217;s firewall and write down any open ports.  A port number can be anywhere from 1-65535.</p>
<p><strong>Step 2</p>
<p></strong>When you go home from work install OpenSSh.  Make sure your computer has a static IP address, if not set one that is in the static range on your home network.</p>
<p>Edit the conf file for OpenSSh and change the port that it runs on to one of the ones that is open at your work.  (21 is good because it&#8217;s used for file transfers &#8211; easier to cover up your bandwidth usage).  You may be able to change the port by forwarding it to a different external port on your router as well.</p>
<p>Enable remote desktop on your local machine (if you want to be able to connect to it from work).  Right click on &#8216;my computer&#8217; &gt; Properties &gt; Remote Tab.  Check the box that says &#8216;Allow users to connect remotely to this computer&#8217;</p>
<p>Install a proxy server to surf the web at work.  I like Squid, but any proxy will work, follow the install instructions given and make sure to test that it&#8217;s working.</p>
<p>Forward the OpenSSh port you picked on your router so you can access it externally.  A good way to access it externally is to try to connect to your external internet IP with putty.  (Go to whatsmyip.com and enter it into putty, along with the port you forwarded.)</p>
<p>Setting up dynamic DNS on your home computer will be a huge time saver for you, this way when your IP address changes, it is transparent to you.  You will always be able to access your SSh server through a domain name.  I recommend dyndns.org.  Click &#8216;ADD&#8217; then go back to &#8216;Session&#8217; and save your session.</p>
<p><strong>Step 3</p>
<p></strong>At work, install putty or run it from a thumb drive.  Type in your external IP address from home (or your dyndns domain) as well as the port you picked.  Go down to SSh on the bottom and click &#8216;tunnels&#8217;.  In the Destination area, type in the local IP address of your proxy server as if you were at home i.e. 192.168.x.x or 10.0.x.x, as well as the port.  In the source port, type any four digit port number and write it down &#8211; you will be using this port on your local computer to connect to the proxy.</p>
<p>In internet explorer set the proxy server address to localhost or 127.0.0.1 along with the port you mapped in putty.</p>
<p>You can also map the remote desktop port 3389 from your home machine to a local port using the same method described above.</p>
<p><img src="http://www.freshme.at/uploads/image/putty-tunneling%282%29.gif" alt="" width="465" height="445" /></p>
<p><strong>Conclusion</strong><br />
This should work on most firewalls that don&#8217;t use protocol blocking (we&#8217;re working on that too&#8230;).  This method of tunneling is a little hard to understand at first, but just keep at it and you&#8217;ll get it &#8211; it&#8217;s well worth knowing. <img src='http://www.eloquentspace.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p><strong>***AMENDMENT***</strong><br />
You can just click the &#8216;proxy&#8217; option in putty and set up the information.  SSh IS a proxy server of sorts.  Use socks 5 for your programs (internet explorer, etc) and the port you chose to run it on!  No need for another proxy like squid!</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.eloquentspace.net%2Fblog%2Fgetting-to-blocked-sites-at-work-with-ssh%2F&amp;linkname=Getting%20to%20blocked%20sites%20at%20work%20with%20SSh"><img src="http://www.eloquentspace.net/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.eloquentspace.net/blog/getting-to-blocked-sites-at-work-with-ssh/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
