-
|
On my RHEL system I have set up the proxy via (where 123.456.78.90:3129 stands for the outgoing NTLM proxy IP) but when I use this proxy on the same machine through a different command line with the curl command fails and I see on the px command line: Does this mean my RHEL machine can't get to the NTLM proxy? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
|
If the connection is being dropped, it means the proxy rejected the connection. Either the IP is wrong or the port, or something else. Are you able to get through the proxy using curl?
|
Beta Was this translation helpful? Give feedback.
-
|
Hey, Thanks your suggestion. I'm going down the curl path, but I don't expect you @genotrance to continue "holding my hand". The issue is getting off-topic for px, I guess... That said, Here the details: When I use (I had to remove curl: (56) Received HTTP code 407 from proxy after CONNECT I understand this means that the issue is not caused by wrong credentials but by some auth-method mismatch. Very strange, because on the same machine cntlm can do it! |
Beta Was this translation helpful? Give feedback.
-
|
Probably because cntlm only supports ntlm so there’s no detection needed. Try curl with —proxy-ntlm instead of —proxy-anyauth. If that works then try px with —auth=NTLM. If this works then it’s concerning since v0.7.0 is dealing with ntlm problems as well, see curl/curl#8778 (comment). If your proxy does not like detection then I wonder how browsers deal with it. |
Beta Was this translation helpful? Give feedback.
-
|
Great tip! However, when I try the same in and do (Sorry, all lines are cut at 80 characters due to terminal issues.) |
Beta Was this translation helpful? Give feedback.
-
|
There should be a log file in the px directory that contains the full output. What's the output for curl -v? Will be interesting to see what headers it is sending and receiving back. More painful but the alternative would be to know what header the upstream proxy returned for Proxy-Authenticate. It is being sanitized for privacy reasons here: Doesn't help since I don't see what the actual response was:
If you can remove that if statement and always print output: |
Beta Was this translation helpful? Give feedback.
-
|
@genotrance, I am now on holidays. I'll have a look at the issue in 4 weeks time. Sorry for this. I will certainly touch base with you then. Thanks again for all the patient hand-holding. I'm sure we will make it work! |
Beta Was this translation helpful? Give feedback.
-
|
Writing up the finally result of the other answer trail here, so that the most important part is visible here in the accepted answer: On RHEL 7 I had to use:
With these settings it works now! Thanks @genotrance for all tips & suggestions! |
Beta Was this translation helpful? Give feedback.
Writing up the finally result of the other answer trail here, so that the most important part is visible here in the accepted answer:
On RHEL 7 I had to use:
—auth=NTLMoptionkeyrings.altpackage to store the password.With these settings it works now!
Thanks @genotrance for all tips & suggestions!