Date: Tue, 19 Oct 2010 16:03:49 +0200 Message-Id: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="_=__=_XaM3_.1287497029.2A.824435.42.21023.52.42.007.454446682" From: "openvpn" Subject: Re: [Openvpn-devel] openvpn, NTLM and McAfee Web Gateway List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: openvpn-devel@lists.sourceforge.net --_=__=_XaM3_.1287497029.2A.824435.42.21023.52.42.007.454446682 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Da: "Jan Just Keijser" janjust@...1147... A: "openvpn" openvpn@...1416... Cc: openvpn-devel@lists.sourceforge.net Data: Mon, 18 Oct 2010 12:58:35 +0200 Oggetto: Re: [Openvpn-devel] openvpn, NTLM and McAfee Web Gateway > openvpn wrote: > > dear all, > > > > a few days ago I deployed an ovpn solution in a medium sized company.=20 > > One of the two ends of the vpn network is passing through a proxy with= =20 > > NTLM authentication. ovpn has problems to recognize the authentication= =20 > > because immediately after sending the message type 1, the proxy sends=20 > > no response, so I had to modify the source code by replacing the=20 > > current message with a similar but different one. > > > > in particular this one: > > > > TlRMTVNTUAABAAAAAgIAAA=3D=3D > > > > > > become: > > > > TlRMTVNTUAABAAAAB4IIogAAAAAAAAAAAAAAAAAAAAAFASgKAAAADw=3D=3D > > > > > > A detail of the work is available at: > > > > http://www.morzello.com/?p=3D350 (in Italian). > > > > I was wondering if you could have a function that supports this type=20 > > of proxy (such as McAfee Web Gateway). > > > I applied your "patch" and I still cannot get it to work for my=20 > httpd+mod_ntlm (NTLMv1 only) installation. The NTLM handshake that=20 > OpenVPN does is broken. Without the patch Wireshark tells me the first=20 > NTLMSPP message is invalid > http://www.nikhef.nl/~janjust/openvpn/openvpn-ntlm-error1.png > If I change the phase_1 NTLM message to the above I get one step further= =20 > but then it breaks at the next packet: > http://www.nikhef.nl/~janjust/openvpn/openvpn-ntlm-error2.png > It seems the Windows domain and username are not stored properly inside=20 > the request. The same httpd+mod_ntlm installation works flawlessly using= =20 > Internet Explorer 7: in that case the domain and user name are encoded=20 > just fine. >=20 > What am I doing wrong? >=20 > cheers, >=20 > JJK >=20 =C2=A0 Sorry Jan, mine was a dirty job in order to quick solve my problem. I think= the correct way to solve the issue is to deeper study the NTLM and NTLMv2 = standard.=C2=A0 the error 1 is the same i've got before patching the code b= ut i didn't spent much time to analyze the issue. I can try to solve the pr= oblem if someone can test the results (with community agreement). =C2=A0 have a nice day, vittorio --_=__=_XaM3_.1287497029.2A.824435.42.21023.52.42.007.454446682 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable


Da: "Jan Just Keijser" janjust@...1421...= .
A: "openvpn" openvpn@...1416...
Cc: openvpn-devel@lists.sourceforge.net<= /span>
Data: Mon, 18 Oct 2010 12:58:35 +0200
Oggetto: Re: [Openvpn-devel] openvpn, NT= LM and McAfee Web Gateway

> openvpn wrote:
> > dear all,
> ><= /div>
> > a few days ago I deployed an ovpn solution in a medium = sized company.
> > One of the two ends of the vpn network = is passing through a proxy with
> > NTLM authentication. o= vpn has problems to recognize the authentication
> > becau= se immediately after sending the message type 1, the proxy sends
> > no response, so I had to modify the source code by replacing the=
> > current message with a similar but different one.
> >
> > in particular this one:
>= >
> > TlRMTVNTUAABAAAAAgIAAA=3D=3D
> ><= /div>
> >
> > become:
> >
> > TlRMTVNTUAABAAAAB4IIogAAAAAAAAAAAAAAAAAAAAAFASgKAAAADw=3D=3D
> >
> >
> > A detail of the = work is available at:
> >
> > http://www.mo= rzello.com/?p=3D350 (in Italian).
> >
> > I= was wondering if you could have a function that supports this type
<= div>> > of proxy (such as McAfee Web Gateway).
> >
> I applied your "patch" and I still cannot get it to work for m= y
> httpd+mod_ntlm (NTLMv1 only) installation. The NTLM hands= hake that
> OpenVPN does is broken. Without the patch Wiresha= rk tells me the first
> NTLMSPP message is invalid
= > http://www.nikhef.nl/~janjust/openvpn/openvpn-ntlm-error1.png
<= div>> If I change the phase_1 NTLM message to the above I get one step f= urther
> but then it breaks at the next packet:
>= ; http://www.nikhef.nl/~janjust/openvpn/openvpn-ntlm-error2.png
> It seems the Windows domain and username are not stored properly insi= de
> the request. The same httpd+mod_ntlm installation works = flawlessly using
> Internet Explorer 7: in that case the doma= in and user name are encoded
> just fine.
>
> What am I doing wrong?
>
> cheers,
>
> JJK
>
 
Sorry Jan, mine was a dirty job in order to quick solve my problem. I thi= nk the correct way to solve the issue is to deeper study the NTLM and NTLMv= 2 standard.  the error 1 is the same i've got before patching the code= but i didn't spent much time to analyze the issue. I can try to solve the = problem if someone can test the results (with community agreement).
 
have a nice day, vittorio

--_=__=_XaM3_.1287497029.2A.824435.42.21023.52.42.007.454446682--