<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	xmlns:itunes="https://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>Guides &#8211; StormPooperSmith</title>
	<atom:link href="https://stormpoopersmith.com/category/guides/feed/" rel="self" type="application/rss+xml" />
	<link>https://stormpoopersmith.com/</link>
	<description>Daniel Smith: Application and web developer, infrastructure support specialist, computer scientist and all-round geek.</description>
	<lastBuildDate>Tue, 20 Jun 2017 06:59:37 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.9.1</generator>
<site xmlns="com-wordpress:feed-additions:1">24778718</site>	<copyright>Copyright © StormPooperSmith 2013 </copyright>
	<managingEditor>admin@stormpoopersmith.com (Danny, Mark and Joe)</managingEditor>
	<webMaster>admin@stormpoopersmith.com (Danny, Mark and Joe)</webMaster>
	<category>Comedy</category>
	<ttl>1440</ttl>
	<image>
		<url>https://stormpoopersmith.com/wp-content/plugins/podpress/images/hewaslaugh/RSS.jpg</url>
		<title>StormPooperSmith</title>
		<link>https://stormpoopersmith.com/</link>
		<width>144</width>
		<height>144</height>
	</image>
	<itunes:new-feed-url>https://feeds.feedburner.com/HeWasLaugh</itunes:new-feed-url>
	<itunes:subtitle>Movies and video games discussions with Danny, Mark and Joe.</itunes:subtitle>
	<itunes:summary>Each episode, Danny, Mark and Joe (and sometimes guests) get together to discuss movies, games and anything else they want to discuss, covering the good, the bad, the ugly and the rest.

You can suggest topics for us to discuss and ask us questions at  - just use the contact form, or via one of the social networks listed there. You can also find the full archive and show notes.</itunes:summary>
	<itunes:keywords>he, was, laugh, movies, films, tv, series, season, stormpooper, stormpoopersmith, discussions, comedy</itunes:keywords>
	<itunes:category text="TV &#38; Film" />
	<itunes:category text="Games &#38; Hobbies">
		<itunes:category text="Video Games" />
	</itunes:category>
	<itunes:category text="Comedy" />
	<itunes:author>Danny, Mark and Joe</itunes:author>
	<itunes:owner>
		<itunes:name>Danny, Mark and Joe</itunes:name>
		<itunes:email>admin@stormpoopersmith.com</itunes:email>
	</itunes:owner>
	<itunes:block>no</itunes:block>
	<itunes:explicit>yes</itunes:explicit>
	<itunes:image href="https://stormpoopersmith.com/wp-content/plugins/podpress/images/hewaslaugh/iTunes.jpg" />
	<item>
		<title>Using applications behind a corporate proxy</title>
		<link>https://stormpoopersmith.com/2012/03/20/using-applications-behind-a-corporate-proxy/</link>
		<pubDate>Tue, 20 Mar 2012 14:46:56 +0000</pubDate>
		<dc:creator><![CDATA[StormPooperSmith]]></dc:creator>
				<category><![CDATA[Guides]]></category>

		<guid isPermaLink="false">https://stormpoopersmith.com/?p=373</guid>
		<description><![CDATA[While a lot of applications allow you to configure proxy settings, quite a few do not support NTLM authentication. Unfortunately, a lot of corporate proxies use NTLM to authenticate their users. To get around this, we can use a free utility called Cntlm to connect these applications to the corporate network. For this example, we [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><img class="alignright" title="Cntlm diagram" alt="" src="https://stormpoopersmith.com/wp-content/uploads/2012/03/image21.png" />While a lot of applications allow you to configure proxy settings, quite a few do not support NTLM authentication. Unfortunately, a lot of corporate proxies use NTLM to authenticate their users. To get around this, we can use a free utility called <a title="Cntlm Authentication Proxy" href="http://cntlm.sourceforge.net/" target="_blank">Cntlm</a> to connect these applications to the corporate network. For this example, we will be using <a title="Dropbox - Referral" href="http://db.tt/sKlpTwDc" target="_blank">Dropbox</a> (referral link) and <a title="Trillian IM client" href="http://www.trillian.im/" target="_blank">Trillian</a>, but once configured it should work with any application that allows you to set proxy settings manually. These instructions are for Windows, but Linux builds are available on their Sourceforge page and Mac users can use <a title="Authoxy for Mac" href="http://www.hrsoftworks.net/Products.php#authoxy" target="_blank">Authoxy</a>.</p>
<p><em>NOTE: </em>If the port number used by the application is blocked on the proxy, Cntlm won&#8217;t be able to get around this. You may also not be able to do this if your account is locked down to prevent installations – see the end of this post for one way around this.<br />
<span id="more-373"></span></p>
<h2>What You&#8217;ll Need</h2>
<ul>
<li><a style="font-weight: normal;" title="Cntlm Authentication Proxy" href="http://cntlm.sourceforge.net/" target="_blank">Cntlm</a>, a utility which stands between your applications and the corporate proxy, adding NTLM authentication on-the-fly.</li>
<li>Windows XP or newer: Linux builds of Cntlm are available on their Sourceforge page and Mac users can use <a title="Authoxy for Mac" href="http://www.hrsoftworks.net/Products.php#authoxy" target="_blank">Authoxy</a>, but I will not be showing you how to configure these.</li>
<li>At least one application to test the configuration. I&#8217;m going to&nbsp;use&nbsp;<a title="Dropbox - Referral" href="http://db.tt/sKlpTwDc" target="_blank">Dropbox</a> and <a title="Trillian IM client" href="http://www.trillian.im/" target="_blank">Trillian</a>, but you can also try it with whichever application you are attempting to run.</li>
</ul>
<h2>Step One: Installing Cntlm</h2>
<p>Download the <a title="Cntlm - Latest Version" href="http://sourceforge.net/projects/cntlm/files/latest/download?source=files" target="_blank" rel="nofollow">latest version</a> of Cntlm (0.92.3 at the time of writing). Run through the installer clicking <strong>Next</strong>, making sure to accept the license agreement and to note down the installation folder. Once the installer has completed, navigate to the installation folder.</p>
<p align="center"><a class="thickbox" href="https://stormpoopersmith.com/wp-content/uploads/2012/03/image36.png" rel="nofollow"><img title="Setup 1" alt="" src="https://stormpoopersmith.com/wp-content/uploads/2012/03/image_thumb.png" /></a>&nbsp;<a class="thickbox" href="https://stormpoopersmith.com/wp-content/uploads/2012/03/image37.png" rel="nofollow"><img title="Setup 2" alt="" src="https://stormpoopersmith.com/wp-content/uploads/2012/03/image3_thumb.png" /></a>&nbsp;<a class="thickbox" href="https://stormpoopersmith.com/wp-content/uploads/2012/03/image61.png" rel="nofollow"><img title="Setup 3" alt="" src="https://stormpoopersmith.com/wp-content/uploads/2012/03/image6_thumb.png" /></a>&nbsp;<a class="thickbox" href="https://stormpoopersmith.com/wp-content/uploads/2012/03/image91.png" rel="nofollow"><img title="Setup 4" alt="" src="https://stormpoopersmith.com/wp-content/uploads/2012/03/image91_thumb.png" /></a>&nbsp;<a class="thickbox" href="https://stormpoopersmith.com/wp-content/uploads/2012/03/image121.png" rel="nofollow"><img title="Setup 6" alt="" src="https://stormpoopersmith.com/wp-content/uploads/2012/03/image121_thumb.png" /></a>&nbsp;<a class="thickbox" href="https://stormpoopersmith.com/wp-content/uploads/2012/03/image181.png" rel="nofollow"><img title="Setup 6" alt="" src="https://stormpoopersmith.com/wp-content/uploads/2012/03/image18_thumb.png" /></a></p>
<h2>Step Two: Configuring Cntlm</h2>
<p>Before doing anything else, make a backup of <strong>cntlm.ini</strong> – if anything goes wrong we can simply revert to this backup and start again.</p>
<h3>Configure the proxy address</h3>
<p>Now look for the following section:</p>
<pre><code class="language-ruby"># List of parent proxies to use. More proxies can be defined
# one per line in format &lt;proxy_ip&gt;:&lt;proxy_port&gt;
#
Proxy        10.0.0.41:8080
Proxy        10.0.0.42:8080</code></pre>
<p>Remove the second <strong>Proxy</strong> line, then replace the IP address and port with your proxy settings (you can usually find these by opening Internet Explorer, then clicking <strong>Tools </strong>–&gt; <strong>Internet Options</strong> –&gt;<strong> Connections</strong> –&gt; <strong>LAN Settings</strong>.</p>
<p align="center"><a class="thickbox" href="https://stormpoopersmith.com/wp-content/uploads/2012/03/image331.png" rel="nofollow"><img title="Internet Options" alt="" src="https://stormpoopersmith.com/wp-content/uploads/2012/03/image33_thumb.png" /></a>&nbsp;<a class="thickbox" href="https://stormpoopersmith.com/wp-content/uploads/2012/03/image271.png" rel="nofollow"><img title="LAN Settings" alt="" src="https://stormpoopersmith.com/wp-content/uploads/2012/03/image27_thumb.png" /></a></p>
<h3>Configure the username and domain</h3>
<p>Now we have the proxy address configured, we can configure the username and password. Look for the following section:</p>
<pre><code class="language-ruby">Username    testuser
Domain    corp-uk
Password    password
# NOTE: Use plaintext password only at your own risk
# Use hashes instead. You can use a "cntlm -M" and "cntlm -H"
# command sequence to get the right config for your environment.
# See cntlm man page
# Example secure config shown below.
# PassLM 1AD35398BE6565DDB5C4EF70C0593492
# PassNT 77B9081511704EE852F94227CF48A793
### Only for user 'testuser', domain 'corp-uk'
# PassNTLMv2 D5826E9C665C37C80B53397D5C07BBCB</code></pre>
<p>First, we replace the username and domain with your login credentials. In most companies, this will be the same as your login details for the computer. For example, to login, you may have to enter <strong>DJS\StormPooper</strong>. In this example, <strong>DJS </strong>is the domain and <strong>StormPooper</strong> is the username. If you do not enter your login details like this, then when you are next logging into a work computer, the domain name will be shown on the logon screen as <strong>Log on to</strong> (you may have to click <strong>Advanced</strong> to see this). Once you have done this, save your changes, but keep the file open.</p>
<p align="center"><a class="thickbox" href="https://stormpoopersmith.com/wp-content/uploads/2012/03/image40.png" rel="nofollow"><img title="Details Example 1" alt="" src="https://stormpoopersmith.com/wp-content/uploads/2012/03/image40_thumb.png" /></a>&nbsp;<a class="thickbox" href="https://stormpoopersmith.com/wp-content/uploads/2012/03/image48.png" rel="nofollow"><img title="Details Example 2" alt="" src="https://stormpoopersmith.com/wp-content/uploads/2012/03/image48_thumb.png" /></a></p>
<h3>Configure the password</h3>
<p>Now we need to store your password. As the comment in the configuration file suggests, storing your password as plain text (just typing it in) is a terrible idea, as anyone with access to the system can see your password. To store the password securely, we have to generate a hash of the password. Luckily, Cntlm includes tools to do this. Open a command line (<strong>Start –</strong>&gt; <strong>Run</strong> –&gt; <strong>cmd</strong>) and navigate to the installation directory (on my system, for example, I enter <code>cd "C:\Program Files (x86)\Cntlm"</code> since I’m running a 64-bit version of Windows).</p>
<p>Now we need to generate the hash. Enter this in the command line:</p>
<p><code>cntlm –c cntlm.ini –H</code></p>
<p align="center"><a class="thickbox" href="https://stormpoopersmith.com/wp-content/uploads/2012/03/cntlm11.jpg" rel="nofollow"><img title="Command Line 1" alt="" src="https://stormpoopersmith.com/wp-content/uploads/2012/03/cntlm1_thumb.jpg" /></a></p>
<p>You should see 3 hashes as per the screenshot above. Copy these and paste them into cntlm.ini, uncommenting the 3 Pass lines and making sure you comment out the Password field. The final results should look like this:</p>
<pre><code class="language-ruby">Username    StormPooper
Domain    DJS
# Password password
# NOTE: Use plaintext password only at your own risk
# Use hashes instead. You can use a "cntlm -M" and "cntlm -H"
# command sequence to get the right config for your environment.
# See cntlm man page
# Example secure config shown below.
PassLM 1AD35398BE6565DDB5C4EF70C0593492
PassNT 77B9081511704EE852F94227CF48A793
### Only for user 'StormPooper', domain 'DJS'
PassNTLMv2 D5826E9C665C37C80B53397D5C07BBCB</code></pre>
<p>Once you have entered your hashes, save your changes. Then in the command line, enter the following command to determine if the settings work:</p>
<p><code>cntlm –c cntlm.ini –I –M http://www.google.co.uk/</code></p>
<p align="center"><a class="thickbox" href="https://stormpoopersmith.com/wp-content/uploads/2012/03/cntlm21.jpg" rel="nofollow"><img title="Command Line 2" alt="" src="https://stormpoopersmith.com/wp-content/uploads/2012/03/cntlm2_thumb.jpg" /></a></p>
<p>If you see something similar to above, you have successfully configured Cntlm. If not, double-check your hashes are correct and your proxy settings.</p>
<h3>Starting the service</h3>
<p>Now that the configuration file is complete, we have to start Cntlm&#8217;s proxy service. Click on <strong>Start –</strong>&gt;<strong> All Programs</strong> –&gt; <strong>Cntlm </strong>–&gt;<strong> Start Cntlm Authentication Proxy</strong> to start the service.</p>
<p align="center"><a class="thickbox" href="https://stormpoopersmith.com/wp-content/uploads/2012/03/image56.png" rel="nofollow"><img title="Start Menu" alt="" src="https://stormpoopersmith.com/wp-content/uploads/2012/03/image56_thumb.png" /></a></p>
<p>If you ever need to change the configuration, click <strong>Stop Cntlm Authentication Proxy</strong> before making any changes, then restart the service to test your changes.</p>
<h2>Step Three: Using the proxy with applications</h2>
<p>Now to test your configuration. Note that each application is&nbsp;different with regards to &nbsp;proxy settings, but the settings you need to enter will be the same for all of them. Basically, we have to manually configure the proxy to use <strong>HTTP </strong>and point it to <strong>127.0.0.1</strong>, with the port number <strong>3128</strong> (you can change this port number in the configuration file if needed). If there is a place to, enter your username and password in the same way as before – see the two screenshots below for examples.</p>
<p align="center"><a class="thickbox" href="https://stormpoopersmith.com/wp-content/uploads/2012/03/image63.png" rel="nofollow"><img title="Dropbox Proxy Settings" alt="" src="https://stormpoopersmith.com/wp-content/uploads/2012/03/image63_thumb.png" /></a><a class="thickbox" href="https://stormpoopersmith.com/wp-content/uploads/2012/03/image67.png" rel="nofollow"><img title="Trillian Proxy Settings" alt="" src="https://stormpoopersmith.com/wp-content/uploads/2012/03/image67_thumb.png" /></a></p>
<p>Once you apply these settings, you should be able to connect using the applications in question.</p>
<h2><em>Conclusion and Advanced Configuration</em></h2>
<p>Now you should be able to run most applications that need to going through the proxy. If you have any difficulties, you should restore the backup you made and start again from step two. If you need to use advanced features such as SOCKS5, you can also configure these using the configuration file – more information about advanced configuration can be found on their <a title="Cntlm - Help Forum" href="http://sourceforge.net/projects/cntlm/forums/forum/702676" target="_blank" rel="nofollow">Help Forums</a>. If you are unable to install Cntlm, you can download the zip file version and create a service using the following command (note the spaces between = and &#8220;), though this will still need permissions to create a service:</p>
<p><code>sc.exe create cntlm binPath= "C:\Program Files (x86)\Cntlm\cygrunsrv.exe" DisplayName= "Cntlm Authentication Proxy"</code></p>
<p>If you click <strong>Start</strong> –&gt; <strong>Run</strong> –&gt; <strong>services.msc</strong> and double-click the service settings, they will be similar to below (note that Log on As is on the next tab).</p>
<p align="center"><a class="thickbox" href="https://stormpoopersmith.com/wp-content/uploads/2012/03/image76.png" rel="nofollow"><img title="Cntlm - Service settings" alt="" src="https://stormpoopersmith.com/wp-content/uploads/2012/03/image76_thumb.png" /></a></p>
<p>If the application you are attempting to run does not let you specify a proxy manually, the likelihood is that it is automatically reading Internet Explorer&#8217;s proxy configuration. To bypass this, you can point Internet Explorer to Cntlm in the LAN Settings. Note that on most corporate machines, proxy settings are automatically configured, so your changes may be erased – configuring each application manually avoids this issue.</p>
<p>If all of this manual configuration makes you want to stab your computer in the throat, you can buy <a title="Proxifier" href="http://www.proxifier.com/" target="_blank">Proxifier</a> – it comes with a 31 day trial, so see if this works for you. Alternatively, leave a comment below or use the contact form and I will happily try and work through any issues you may be having.</p>
]]></content:encoded>
			<post-id xmlns="com-wordpress:feed-additions:1">373</post-id>	</item>
	</channel>
</rss>
