Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Alternative to cntlm to authenticate behind corporate proxy

I'm working in a company that's using a proxy to connect to the internet. Some of my applications, especially package-managers of any kind are unable to connect to the proxy and produce 407 (Proxy Authentication required).

As a first attempt I tried setting the proxy settings manually for each application. Example:

python -m pip install six --proxy http://user:pass@proxy:port

That did not help.

In a second attempt I set up cntlm as a local proxy to handle the authentication. That didn't help either.

Finally I found out, that we're using Kerberos for authorization. I know there's a patch for cntlm concerning kerberos authentication. But unfortunately this patch is not available for windows. (or I didn't find it)

Another workaround a collegue just informed me about is the Windows 10 linux-subsystem which allows the installation of the unix version of cntlm with the patch. That kinda enables the proxy authorization. But this does not help me, as my machine is running Windows 7.

My question is: Are there any alternatives to cntlm capable of handling Authorization process with Kerberos? (Or did I miss something that could solve my problem with cntlm?)

like image 755
walkslowly Avatar asked Dec 06 '17 12:12

walkslowly


1 Answers

I found https://github.com/genotrance/px

Easy to install:

px --proxy=proxy.server.com --save
px --install

It doesn't need any credentials. It uses the credential of user logged in through windows apis.

like image 168
dermoritz Avatar answered Sep 21 '22 19:09

dermoritz