Skip to contentSkip to conversation

openvpn, NTLM and McAfee Web Gateway

Openvpn-devel openvpn 3 participants 3 messages Oct 14, 2010 – Oct 18, 2010

lore
Share & tools
lore

openvpn

author
#0 lore raw

dear all,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. ovpn has problems to recognize the
authentication because 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==become:TlRMTVNTUAABAAAAB4IIogAAAAAAAAAAAAAAAAAAAAAFASgKAAAADw==A detail of the work is available at:http://www.morzello.com/?p=350 (in Italian).I was wondering if you could have a function that supports this type of proxy (such as McAfee Web Gateway).thank you very much.

#1 lore raw
Quoted 20 lines

dear all,

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. ovpn has problems to recognize the authentication because 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==

become:

TlRMTVNTUAABAAAAB4IIogAAAAAAAAAAAAAAAAAAAAAFASgKAAAADw==

Quoted 8 lines

A detail of the work is available at:

http://www.morzello.com/?p=350 (in Italian).

I was wondering if you could have a function that supports this type of proxy (such as McAfee Web Gateway).

thank you very much.

Hi,

I read your blog post, interesting stuff. The strings the client sends seem to be base64 encoded and the first part on both messages look like this (in nano/vi):

NTLMSSP

It's followed by this, which is apparently the message type hex string:

^@^A^@^@^@

After this they differ noticeably. I'd guess they are just sending different NTLM flags:

<http://davenport.sourceforge.net/ntlm.html#theNtlmMessageHeaderLayout>

Can somebody more fluent in NTLM protocol decipher these two messages?

Signature · 5 lines
Samuli Seppänen
Community Manager
OpenVPN Technologies, Inc

irc freenode net: mattock
#2 lore raw
In reply to openvpn
Quoted 11 lines · openvpn

dear all,

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. ovpn has problems to recognize the authentication because 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==

become:

Quoted 9 lines

TlRMTVNTUAABAAAAB4IIogAAAAAAAAAAAAAAAAAAAAAFASgKAAAADw==

A detail of the work is available at:

http://www.morzello.com/?p=350 (in Italian).

I was wondering if you could have a function that supports this type of proxy (such as McAfee Web Gateway).

I applied your "patch" and I still cannot get it to work for my httpd+mod_ntlm (NTLMv1 only) installation. The NTLM handshake that OpenVPN does is broken. Without the patch Wireshark tells me the first 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 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 the request. The same httpd+mod_ntlm installation works flawlessly using Internet Explorer 7: in that case the domain and user name are encoded just fine.

What am I doing wrong?

cheers,

JJK