NTLMv1, NTLMv2 HTTP proxy support?
Hi Community,
OpenVPN supports HTTP proxies that require NTLM authentication, supporting NTLMv1 and NTLMv2 protocols.
This is old code, which was written in the dark ages, is not currently unit/client tested, and uses DES which got deprecated in OpenSSL 3.0.0...
That said, if people still *use* it, we are likely to keep it - otherwise it might just become lost :-)
So - if you use HTTP proxy in OpenVPN, and that proxy authenticates against a Windows AD domain, and you use NTLMv1 or NTLMv2 authentication, please speak up and tell us about your use case!
gert
Signature · 6 lines
"If was one thing all people took for granted, was conviction that if you
feed honest figures into a computer, honest figures come out. Never doubted
it myself till I met a computer with a sense of humor."
Robert A. Heinlein, The Moon is a Harsh Mistress
Gert Doering - Munich, Germany [email protected]...A message that is not in the archive (sent off-list or not yet received): [email protected]...
Hi Jason,
Quoted 8 lines · Jason Haar
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256How about ditching the NTLM and adding HTTPS proxy support instead? ;-) Does the privacy aspect of talking to proxies "properly" of course (Basic is fine over HTTPS)
(and accidentally makes openvpn-over-TCP look like real TLS traffic too...)
this was also discussed at the OpenVPN Hackathon last weekend; I have code laying around for it
https://github.com/jjkeijser/connect-proxy/
which allows you to run a separate HTTPS proxy and then connect OpenVPN to it using 127.0.0.1:<some port>
This needs to be integrated into OpenVPN in some form - I think we decided to use the (delayed-then-forgotten) transport obfuscation plugin for this. We talked about it a few years ago, but it was never fully implemented.
@Gert, list: who was working on this and who still has the code for the transport obfuscation plugin ? would be a good clean-up project to move all proxy (socks, http AND https) code into this plugin.
cheers,
JJK
Quoted 16 lines · On 2021-11-07 at 13:55, [email protected]... wrote:
Quoted 15 lines
Hi Community,
OpenVPN supports HTTP proxies that require NTLM authentication, supporting NTLMv1 and NTLMv2 protocols.
This is old code, which was written in the dark ages, is not currently unit/client tested, and uses DES which got deprecated in OpenSSL 3.0.0...
That said, if people still *use* it, we are likely to keep it - otherwise it might just become lost :-)
So - if you use HTTP proxy in OpenVPN, and that proxy authenticates against a Windows AD domain, and you use NTLMv1 or NTLMv2 authentication, please speak up and tell us about your use case!
Hi Gert,
Quoted 8 lines · Gert Doering
Hi Community,
OpenVPN supports HTTP proxies that require NTLM authentication, supporting NTLMv1 and NTLMv2 protocols.
This is old code, which was written in the dark ages, is not currently unit/client tested, and uses DES which got deprecated in OpenSSL 3.0.0...
Quoted 8 lines
That said, if people still *use* it, we are likely to keep it - otherwise it might just become lost :-)
So - if you use HTTP proxy in OpenVPN, and that proxy authenticates against a Windows AD domain, and you use NTLMv1 or NTLMv2 authentication, please speak up and tell us about your use case!
it took me a while, but I finallly have a working setup with a Samba 4.15 and a CentOS 7 webserver with mod_auth_ntlm_winbind ; especially the latter part is tricky/important, as that code is not supported on newer platforms, it seems.
The good news is: openvpn 2.5.1 still works , both with NTLMv1 and NTLMv2; I added two debug statements to ntlm.c and can clearly see:
NTLMv1:
2021-12-15 09:36:16 Info: generate NTLM response 2021-12-15 09:36:16 NTLM response: add security buffer
NTLMv2:
2021-12-15 09:35:44 Info: generate NTLMv2 response 2021-12-15 09:35:44 NTLMv2 response: add security buffer
Having said that, I think we can safely drop (at least) NTLMv1 support, as it is pretty hard to set up a system to support that - easiest way is to grab a legacy Windows server system (e.g. Windows Server 2003) but nobody should run that anyways. Or put another way "if your local proxy is running unsupported legacy code in an unsecure setup,
then you will have to resort to openvpn 2.4.x "
or similar.
BTW, do you know who worked on the obfuscation/transport API stuff? Was that David S?
cheers,
JJK / Jan Just Keijser