<?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>divisionbyzero &#187; proxy</title>
	<atom:link href="http://divisionbyzero.net/blog/tag/proxy/feed/" rel="self" type="application/rss+xml" />
	<link>http://divisionbyzero.net/blog</link>
	<description>question . authority</description>
	<lastBuildDate>Tue, 06 Jul 2010 16:43:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Proxy Evasion with SSH</title>
		<link>http://divisionbyzero.net/blog/2007/10/04/proxy-evasion-with-ssh/</link>
		<comments>http://divisionbyzero.net/blog/2007/10/04/proxy-evasion-with-ssh/#comments</comments>
		<pubDate>Thu, 04 Oct 2007 21:41:42 +0000</pubDate>
		<dc:creator>brad</dc:creator>
				<category><![CDATA[Article]]></category>
		<category><![CDATA[evasion]]></category>
		<category><![CDATA[policy]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://divisionbyzero.net/blog/2007/10/04/proxy-evasion-with-ssh/</guid>
		<description><![CDATA[In our first installment, we looked at some solutions to provide a hospitable environment for proxy evasion. Today, we&#8217;ll dig deep into how to do this with my favorite protocol of all time, SSH. OpenSSH is a glorious implementation of a critical network protocol. Most networks have disabled and banned the use of telnet, rsh, [...]]]></description>
			<content:encoded><![CDATA[<p>In our <a href="http://divisionbyzero.net/blog/2006/12/09/proxy-evasion-the-environment/">first installment</a>,  we looked at some solutions to provide a hospitable environment for proxy evasion.  Today, we&#8217;ll dig deep into how to do this with my favorite protocol of all time, <a href="http://en.wikipedia.org/wiki/SSH">SSH</a>.</p>
<p><a href="http://openssh.org/">OpenSSH</a> is a glorious implementation of a critical network protocol.  Most networks have disabled and banned the use of telnet, rsh, and ftp in favor of the more &#8220;secure&#8221; SSH protocol.  OpenSSH runs on every platform I&#8217;ve encountered (using CygWin on Windows).  SSH provides an encrypted channel for data transfer.  Usually that&#8217;s Keyboard Interactive Sessions or Files (using SCP), however SSH is capable of setting up multiple channels and acting as a SOCKS4 or SOCKS5 Proxy.</p>
<p><span id="more-28"></span></p>
<p>From the manual:</p>
<blockquote>
<pre>
-D [bind_address:]port

Specifies a local ``dynamic'' application-level port forwarding.
This works by allocating a socket to listen to port on the local
side, optionally bound to the specified bind_address.  Whenever a
connection is made to this port, the connection is forwarded over
the secure channel, and the application protocol is then used to
determine where to connect to from the remote machine.  Currently
the SOCKS4 and SOCKS5 protocols are supported, and ssh will act
as a SOCKS server.  Only root can forward privileged ports.  Dy-
namic port forwardings can also be specified in the configuration
file.</pre>
</blockquote>
<p>That&#8217;s a lot of technical mumbo jumbo, so what does it mean?!  Well it means that if you have ssh and an ssh server outside of your work network that you can connect to, you can SOCKS5 Proxy all your Interesting Traffic elsewhere by issuing this command:</p>
<pre>ssh -D3128 server</pre>
<p>Then pointing your applications to SOCKS5 Proxy localhost port 3128 will encrypt all the traffic between you and the server that you&#8217;re connecting to.  <strong>This only provides privacy from the LOCAL or CORPORATE network, and does not encrypt your traffic on it&#8217;s way to it&#8217;s external destinations!!!!</strong></p>
<p>In the next installment, we&#8217;ll cover PuTTY.exe and how to evade proxies on Windows platforms.</p>
]]></content:encoded>
			<wfw:commentRss>http://divisionbyzero.net/blog/2007/10/04/proxy-evasion-with-ssh/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Proxy Evasion, The Environment</title>
		<link>http://divisionbyzero.net/blog/2006/12/09/proxy-evasion-the-environment/</link>
		<comments>http://divisionbyzero.net/blog/2006/12/09/proxy-evasion-the-environment/#comments</comments>
		<pubDate>Sat, 09 Dec 2006 15:00:51 +0000</pubDate>
		<dc:creator>brad</dc:creator>
				<category><![CDATA[Article]]></category>
		<category><![CDATA[evasion]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://divisionbyzero.net/blog/2006/12/09/proxy-evasion-the-environment/</guid>
		<description><![CDATA[There are a ridiculous number of organizations using transparent proxying as a means to limit access to external resources. The idea is that by proxying all web traffic, they can keep employees from visiting porn sites. I&#8217;m not necessarily convinced that this does them much good. My general experience has been that the type of [...]]]></description>
			<content:encoded><![CDATA[<p>There are a ridiculous number of organizations using transparent proxying as a means to limit access to external resources.  The idea is that by proxying all web traffic, they can keep employees from visiting porn sites.  I&#8217;m not necessarily convinced that this does them much good.  My general experience has been that the type of people looking at porn during the day will not become more productive as a result of losing the freedom to look at porn at work.  They&#8217;ll still be useless employees that you have to performance review instead of firing for inappropriate use of technology.</p>
<p>Additionally, these proxies do very little to increase the security of the network.  I&#8217;m fairly certain that by the time the Proxy Vendor is alerted to malware distributing websites, an anti-virus company has already issued an update.  This is redundant.  Normally, I&#8217;d fully support this redundant &#8211; ok, I&#8217;ll drop the buzzword &#8211; Defense in Depth solution.</p>
<p>However, piggy-backing on the heels of ay real security value, which is best described as the graph of 1/x, are made up categories of websites to deter your users from doing things that your CEO believes are inappropriate.  Interestingly enough, if the CEO is involved in Fantasy Football, you&#8217;ll be hard pressed to find an IT Infrastructure that denotes that classification of sites as inappropriate.  I digress.</p>
<p><span id="more-27"></span></p>
<p>I hate these policies.  The whole concept of the internet is free access to information.  As my job is Information Security, I frequently surf into the areas of the internet that <a href="http://websense.com/global/en/">WebSense</a> might classify as &#8220;Inappropiate Content&#8221;, &#8220;Hacker Sites&#8221;, or &#8220;Proxy Sites&#8221;.  It&#8217;s the nature of my business.  Luckily for me, I&#8217;ve been granted an exception to the policy that allows me to view such terrible web content.</p>
<p>However, my users are frequently inconvenienced by searches for &#8220;adult oriented material&#8221; as some of our reproductivity scientists might need access to sites that contain terms like &#8220;sex&#8221;, with interesting prefixes like &#8220;oral&#8221; and &#8220;vaginal&#8221;.  <strong><em>*Gasp*</em></strong></p>
<p>So, tired of executives so out of touch with their users that they don&#8217;t recognize them, much less know what they do, I begin my multipart series on Proxy Evasion with the Environmental Concerns.</p>
<h3>CygWin</h3>
<p>If you&#8217;re running Windows, I highly recommend that you install <a href="http://www.cygwin.com/">CygWin</a>.  <a href="http://en.wikipedia.org/wiki/POSIX">It provides a POSIX Compliant Environment</a> for Windows.  I&#8217;d be lost on Windows without it.</p>
<p>Using CygWin you can install a host of tools for network scouting, monitoring, manipulation, defense, and attack.  Some of my indispensables include:</p>
<ul>
<li><a href="http://insecure.org/nmap/">nmap</a> &#8211; find out about a host</li>
<li><a href="http://iptraf.seul.org/">iptraf</a> &#8211; find out about network traffic</li>
<li><a href="http://www.tcpdump.org/">tcpdump / libpcap</a> &#8211; excellent network sniffer</li>
<li><a href="http://www.winpcap.org/">winpcap</a> &#8211; I can&#8217;t remember if CygWin actually has libpcap support, if not, I remember having enormous success with WinPCAP</li>
</ul>
<p>None of those are necessary for Proxy Evasion, but they are nice tools to have laying around when you&#8217;re connected to a network.</p>
<h3>Mac OS X</h3>
<p>Don&#8217;t worry, I&#8217;m a Mac user too.  Mac OS X comes with a number of UNIX utilities already installed.  I highly reccommend installing the Developer&#8217;s Tools package to get GCC and then installing one of the ports systems available.  The two forerunners in the GNU/OpenSource porting for OS X are:</p>
<ul>
<li><a href="http://fink.sourceforge.net/">Fink</a> &#8211; Provides source &#038; binary downloads of packages with full dependency support.</li>
<li><a href="http://www.macports.org/">MacPorts</a> &#8211; Previously DarwinPorts, source only ports system.</li>
</ul>
<p>Though most free software will download and compile without hassle, it&#8217;s nice to have a package management suite that manages and downloads dependencies so you spend less time searching and installing and more time using your software.</p>
<h3>But.. But.. I don&#8217;t have Admin Rights!</h3>
<p>As a way to &#8220;increase security&#8221;, organizations will remove administrative privileges from average user&#8217;s computers.  <a href="http://divisionbyzero.net/blog/2006/07/18/eating-your-own-dog-food/">I feel this is complete hipocracy</a>, so I discourage it.  However, if you&#8217;re unfortunate to have these restraints enforced on your computer, there are ways to run your programs without installing them, and thus be compliant with the &#8220;I will not install my own software on company computers&#8221; rule you signed when you took the job.</p>
<p>They&#8217;re called &#8220;Portable Apps.&#8221;  They&#8217;re designed to be installed &#038; run off of <a href="http://en.wikipedia.org/wiki/USB_flash_drive">USB flash drives</a> and require no disk access on the computer you run it on.  This generally avoids all automated software policy enforcement, allowing you to run your programs without being hassled.</p>
<p>Here are the two biggest repositories for portable apps:</p>
<ul>
<li><a href="http://portableapps.com/">Portable Windows Apps</a></li>
<li><a href="http://www.freesmug.org/portableapps/">Portable Mac OS X Apps</a></li>
</ul>
<p>This biggest advantage to portable apps is the fact that they&#8217;re preferences are also stored on the drives.  This means even if you don&#8217;t have access to modify the network settings (ie, Proxy settings) on your applications because of an enforced policy, you can still modify the preferences on the portable apps.  This is terribly useful once we have tunnels setup to use for proxying.</p>
<p>I carry around a copy of Thunderbird, Firefox, Gaim/Adium, Abiword, and for Windows, <a href="http://www.putty.nl/">PuTTY</a>.</p>
<p>If you&#8217;re on Windows, please <a href="http://www.putty.nl/latest/x86/putty.exe">download PuTTY</a> now.  It&#8217;s a light weight ssh terminal that does not need to be installed.  It&#8217;s precompiled and can run with out writing preferences anywhere you&#8217;re not allowed.</p>
<p>By becoming aware of software solutions that allow you to do your work, you can setup a hospitable environment for productivity, free from the annoyances of &#8220;ADMINISTRATOR PRIVILEGES REQUIRED.&#8221;</p>
<p>In the next article, we&#8217;ll cover using SSH for Proxy Evasion.</p>
]]></content:encoded>
			<wfw:commentRss>http://divisionbyzero.net/blog/2006/12/09/proxy-evasion-the-environment/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
