I have followed the following steps:
Updated my Environmental Variables with the following:
setx -m HTTP_PROXY "http://127.0.0.1:3128"
setx -m HTTPS_PROXY "http://127.0.0.1:3128"
setx -m PATH "%PATH%;C:\Python34\Scripts"
Generated the correct hashes for my username, domain and password and updated the cntlm.ini file with them.
After doing all of this, I run the following code and get a HTTP OK Code: 302.
cntlm -c cntlm.ini -I -M http://www.google.co.za
Then, when I attempt to download a Python module using pip, I get the following error:
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 407 Proxy Authentication Required ( Forefront TMG requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )',))': /simple/sphinx/
I've checked and re-checked my details entered into cntlm.ini, any ideas what this could be?
I have found that when adding hashes to your cntlm.ini file, you need to comment out the Password line. When I commented out the password line i.e:
# Password [my password]
Cntlm could again connect normally to the proxy.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With