<?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>Scubarda.net &#187; ntlmaps Proxy Server</title>
	<atom:link href="http://www.scubarda.net/wordpress/tag/ntlmaps/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scubarda.net/wordpress</link>
	<description></description>
	<lastBuildDate>Mon, 28 Feb 2011 12:03:46 +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>Ntlmaps: usare un proxy Microsoft con Linux</title>
		<link>http://www.scubarda.net/wordpress/2008/11/11/ntlmaps-usare-un-proxy-ntlm-microsoft-con-linux/</link>
		<comments>http://www.scubarda.net/wordpress/2008/11/11/ntlmaps-usare-un-proxy-ntlm-microsoft-con-linux/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 11:35:50 +0000</pubDate>
		<dc:creator>merlos</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ntlmaps Proxy Server]]></category>

		<guid isPermaLink="false">http://www.scubarda.net/wordpress/?p=171</guid>
		<description><![CDATA[Purtroppo le vicende lavorative mi costringono ad usare un proxy Micro$oft ISA Server per accedere ad Internet, il che implica l&#8217;autenticazione via NTLM (protocollo proprietario Microsoft) con DOMINIO\USER &#38; PASSWORD Ho trovato dei grossi problemi nella configurazione di questi parametri su Ubuntu (Impostazioni -&#62; Proxy di rete) e più in generale su Gnome (versione 2.24); <a href='http://www.scubarda.net/wordpress/2008/11/11/ntlmaps-usare-un-proxy-ntlm-microsoft-con-linux/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Purtroppo le vicende lavorative mi costringono ad usare un proxy Micro$oft ISA Server per accedere ad Internet, il che implica l&#8217;autenticazione via NTLM (protocollo proprietario Microsoft) con <strong>DOMINIO\USER</strong> &amp; <strong>PASSWORD</strong></p>
<p>Ho trovato dei grossi problemi nella configurazione di questi parametri su Ubuntu (Impostazioni -&gt; Proxy di rete) e più in generale su Gnome (versione 2.24); infatti sembra proprio che l&#8217;autenticazione NTLM non va a buon fine (o almeno funziona parzialmente solo con alcuni programmi, ad es. Firefox) e dunque il sistema è a tutti gli effetti non connesso (no aggiornamenti automatici etc etc)</p>
<p>La soluzione semplice e iperfunzionale si chima <a title="NTLMaps home page" href="http://ntlmaps.sourceforge.net/" target="_blank">ntlmaps</a>, un proxy NTLM che consente l&#8217;autenticazione su Proxy Microsoft (ISA) interamente scritto in Python. Riporto alcune delle caratteristiche principali direttamente dalla home page del progetto</p>
<blockquote><p>* supports NTLM authentication via parent proxy server (Error 407 Proxy Authentication Required)<br />
* supports NTLM authentication at web servers (Error 401 Access Denied/Unauthorized)<br />
* supports translation of NTLM scheme to standard &#8220;Basic&#8221; authentication scheme<br />
* supports the HTTPS &#8216;CONNECT&#8217; method for transparent tunnelling through parent proxy server<br />
* has ability to change arbitrary values in client&#8217;s request headers<br />
* supports unlimited number of client connections<br />
* supports connections from external hosts<br />
* supports HTTP 1.1 persistent connections<br />
* stores user&#8217;s credentials in config file or requests password from a console during the start time<br />
* supports intelligent failure detection and failover between multiple upstream proxies</p></blockquote>
<p>L&#8217;installazione su Ubuntu è immediata, infatti ntlmaps è presente nel <a title="Ntlmaps - Ubuntu package home" href="http://packages.ubuntu.com/intrepid/ntlmaps" target="_blank">repository Universe</a> e può essere installato con Synaptic o da riga di comando con il seguente (con Universe abilitato)</p>
<blockquote><p>sudo apt-get install ntlmaps</p></blockquote>
<p>La configurazione è altrettanto semplice, infatti basta editare il file <strong>/etc/ntlmaps/server.cfg</strong> e settare i seguenti parametri per una configurazione base</p>
<blockquote><p>PARENT_PROXY: &lt;ip del proxy Microsoft&gt;<br />
PARENT_PROXY_PORT: &lt;porta del Proxy Microsoft&gt;<br />
NT_DOMAIN: &lt;Dominio utente&gt;<br />
USER: &lt;Username di cominio&gt;<br />
PASSWORD: &lt;Password di dominio&gt;</p></blockquote>
<p>Nella configurazione di default il Proxy locale ascolta sulla porta 5865, ma  può essere modificata cambiando nel file il parametro LISTEN_PORT.<br />
Dopo ogni modifica è necessario riavviare il server ntlmaps con il comando</p>
<blockquote><p>sudo /etc/init.d/ntlmaps restart</p></blockquote>
<p>A questo punto non resta che settare come Proxy Locale l&#8217;indirizzo <strong>127.0.0.1 porta 5865</strong> ed il gioco è fatto!</p>
<div id="attachment_179" class="wp-caption aligncenter" style="width: 510px"><a href="http://www.scubarda.net/wordpress/wp-content/uploads/schermata-preferenze-del-proxy-di-rete.png"><img class="size-full wp-image-179" title="NTLMAPS - Proxy di Rete" src="http://www.scubarda.net/wordpress/wp-content/uploads/schermata-preferenze-del-proxy-di-rete.png" alt="configurazione di NTMLAPS come proxy di rete" width="500" height="411" /></a><p class="wp-caption-text">configurazione di NTMLAPS come proxy di rete</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.scubarda.net/wordpress/2008/11/11/ntlmaps-usare-un-proxy-ntlm-microsoft-con-linux/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

