cntlm | Authenticating HTTP proxy with TCP/IP | Proxy library

 by   PKRoma C Version: Current License: Non-SPDX

kandi X-RAY | cntlm Summary

kandi X-RAY | cntlm Summary

cntlm is a C library typically used in Networking, Proxy applications. cntlm has no bugs, it has no vulnerabilities and it has low support. However cntlm has a Non-SPDX License. You can download it from GitHub.

Authenticating HTTP(S) proxy with TCP/IP tunneling and acceleration—mirror of http://svn.awk.cz/cntlm
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              cntlm has a low active ecosystem.
              It has 16 star(s) with 7 fork(s). There are 2 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              cntlm has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of cntlm is current.

            kandi-Quality Quality

              cntlm has no bugs reported.

            kandi-Security Security

              cntlm has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              cntlm has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              cntlm releases are not available. You will need to build from source code and install.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of cntlm
            Get all kandi verified functions for this library.

            cntlm Key Features

            No Key Features are available at this moment for cntlm.

            cntlm Examples and Code Snippets

            No Code Snippets are available at this moment for cntlm.

            Community Discussions

            QUESTION

            Eclipse EGit TFS Git Connection - Authentication not supported
            Asked 2021-May-14 at 17:26

            Hi,

            We are facing this dreadful issue "authentication not supported" when using egit from eclipse. I have read many articles, questions but none of them seem to solve the issue at hand.

            We are using Microsoft Team Foundation Server 2015 which can provide a git repository as version control system. But authentication mechanism does not seem to work using eclipse's egit plugin. We checked using different eclipse versions from eclipse 2020-06, 2020-12, 2021-03 with different jdk setup 1.8, 11 and 15 but no success.

            The cloning, push/fetch works fine with git commandline (git bash - windows) even legacy eclipse kepler is working fine without issue, but not the latest ones. The issue seems to be related to NTLM authentication. In newer versions of eclipse, egit doesn't negotiate or send NTLM token even after the server respond with WWW-Authenticate: NTLM.

            Below are details for both newer and older eclipse versions, tunneled through TCP/IP Monitor for traffic capture. TFS git repository clone protocol is http even though the portal is on https.

            Eclipse 2021-03

            Request:

            ...

            ANSWER

            Answered 2021-May-12 at 07:31

            Eclipse EGit TFS Git Connection - Authentication not supported

            I agree with you. AFAIK, Eclipse’s EGit is built on JGit, and unfortunately, recent versions of JGit actively reject NTLM authentication, resulting in “Authentication not supported” when connecting to on-premises installations of TFS that require NTLM.

            You could get more explanation and the solution from the FAQ:

            • Use Cntlm, a locally-installed proxy that adds NTLM authentication on-the-fly

            • Use an older version of Eclipse/EGit/JGit

            • Enable basic authentication with SSL in IIS on your TFS server

            • Enable Kerberos authentication in IIS on your TFS server (the default for the next version of TFS after TFS 2015):

              1. In IIS manager, click on the TFS site on the left under Connections and open up the "Authentication" section under IIS. Set “ASP.NET Impersonation” to Enabled and “Windows Authentication” to Enabled.

              2. Under "Windows Authentication" right click and select "Providers." Add/enable the "Negotiate" and "NTLM" providers.

              3. Under "Windows Authentication" right click and select "Advanced Settings." Uncheck "Enable Kernel-mode" because it is incompatible with Kerberos.

            Besides, With TFS 2017 RTW and up you could create a Personal Access Token with scope at least Code (read and write), then you could use it instead of your password in the Eclipse EGit configuration.

            Source https://stackoverflow.com/questions/67492788

            QUESTION

            php curl behaves differently under browser & CLI due to proxy
            Asked 2020-Dec-16 at 03:45

            Initially I was having issues trying to figure out why php curl under browser behaves differently when I tried to execute the same script by CLI.

            By turning on the CURLOPT_VERBOSE with log output and compare the result of the CLI and browser, here are the differences I've seen:

            CURL Under CLI

            ...

            ANSWER

            Answered 2020-Dec-16 at 03:45

            After digging around, it turns out all I had to do was to by pass the someurl.com in the /etc/cntlm.conf by including the url in the NoProxy config.

            Source https://stackoverflow.com/questions/65246042

            QUESTION

            How to fix proxy 407 error for botFramework?
            Asked 2020-Sep-08 at 08:13

            I am working with microsoft bot emulator and everytime I make a request to an external link my office proxy blocks it and application returns 407 error. To work around this I tried following hacks.

            Hack #1:

            Used fiddler 4 with auto authenticate rule enabled. But I found it doesn't work for ntlm proxy. I also found that the request which are completing with 200 status code has a proxy-authorization header with some encoded content. but I don't know how to set this header for all the requests.

            Hack #2: Installed and ran a cntlm proxy, still same error.

            I am using Micosoft bot framework 4 with dotnet core and bot emulator 4.10, Os: windows 7

            Please help let me know if I can somehow make it work around ntlm proxy.

            ...

            ANSWER

            Answered 2020-Sep-08 at 08:13

            Looks like the office network is very restricted when it comes to network access.

            May be you should better talk to your IT department if you can't get a PC that is located in a different subnet that is less restrictive. Or if you are lucky the change the configuration for your PC so that you can access the required servers without proxy.

            Source https://stackoverflow.com/questions/63762138

            QUESTION

            Visual Studio Code python pip proxy and pylint
            Asked 2020-May-14 at 22:28

            I'm trying to use visual studio code to write some python as I can't handle the memory requirements of pycharm. I'm also working around a corporate proxy, so I've installed cntlm locally to get around this so all requests need to go to 127.0.0.1

            I started visual studio code using;

            ...

            ANSWER

            Answered 2020-May-12 at 08:36

            Don't try to solve that in VS Code, but on OS level. You can create a global config file for PIP, where you set the proxy for it to use. By that it doesn't matter if you use VS Code or a terminal to run PIP. In a terminal, run:

            Source https://stackoverflow.com/questions/61746866

            QUESTION

            CNTLM proxy and .pac file
            Asked 2020-May-14 at 00:14

            Is there a way to use CNTLM proxy with autoconfiguration .pac file? I'd like CNTLM to automatically decide, which urls should be resolved through proxy and which directly (basing on a remote corporate .pac file).

            ...

            ANSWER

            Answered 2020-May-14 at 00:14

            CNTLM can't process PAC files. You could try to configure CNTLM so that it contains the same set of proxies as your PAC file, but some PAC files are too complex to represent with CNTLM's config settings, and you also risk your CNTLM config file getting out-of-sync with updates that your network admins make to your PAC file.

            An alternative is to use Alpaca, which executes the PAC file in a JavaScript VM, and performs NTLM authentication with the resulting proxy.

            Source https://stackoverflow.com/questions/51986756

            QUESTION

            Azure DevOps pipelines agent do not work behind CNTLM proxy?
            Asked 2019-Dec-12 at 10:27

            My agents are running behind a local CNTLM proxy running on port 3128. When this task is executed I always get the following error message:

            [error]Error: tunneling socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:3128

            Does this task not support a proxy setup for the agent?

            The version of the task is: 1.156.1

            ...

            ANSWER

            Answered 2019-Dec-12 at 10:27

            Here is the summary of changes to solve it:

            Background: One linux VM running 4 agents (as service). CNTLM proxy is running on the VM on port 3128. IP of the VM is 172.17.0.1.

            pipelines.yml resources: containers: - container: maven3 image: maven:3-jdk-8 # tmp volume mount can be removed as soon as https://developercommunity.visualstudio.com/content/problem/367290/maven-task-fails-because-maveninfo-cannot-be-publi.html is fixed options: -v /local/home/rbadmin_app2/.m2/repository:/home/rbadmin_VSTSContainer/.m2/repository -v /tmp:/tmp -e HTTP_PROXY="http://172.17.0.1:3128" -e HTTPS_PROXY="http://172.17.0.1:3128"

            Configuration on Server that is running our 4 agents: CNTLM: listen on "docker IP":3128 Docker IP can found by command: ip address It will be the inet of docker0:

            On (host running agents): 172.17.0.1:3128 /etc/sysctl.conf: Add below setting: net.ipv4.conf.all.forwarding = 1 Configuration on VSTS: Set the docker-ip based proxy in file .proxy of the VSTS root directory Steps (example on host running agents as service): if not exist create file /.proxy Content: 172.17.0.1:3128

            Source https://stackoverflow.com/questions/59190548

            QUESTION

            Running Django app in docker-compose: connection to postgres db refuses the first time but works afterwards
            Asked 2019-Nov-13 at 10:26

            I have this weird problem that can be reproduced with the simple tutorial from Docker.

            If I follow the tutorial exactly, everything would work fine, i.e. after docker-compose up command, the web container would run and connect nicely to the db container.

            However, if I choose to create the same Django project on the host, change its settings for the postgres db, and copy it over to the web image in its Dockerfile, instead of mounting the host directory to the container and doing those things there as shown in the tutorial (using the command docker-compose run web django-admin.py startproject composeexample . and then change the settings file generated and located in the mounted directory on the host), the first time I run docker-compose up, the web container would have problems connecting to the db, with the error as below

            web_1 | psycopg2.OperationalError: could not connect to server: Connection refused web_1 | Is the server running on host "db" (172.18.0.2) and accepting web_1 | TCP/IP connections on port 5432?

            However, if I stop the compose with docker-compose down and then run it again with docker-compose up, the web container would connect to the db successfully with no problems.

            'Connection refused' seems to be not an uncommon problem here but I have checked and verified that all the settings are correct and the usual causes like wrong port number, port not exposed or setting host as 'local' instead of 'db', etc. are not the problems in this case.

            Note: FWIW, I use CNTLM as the system proxy in the host and have to set the environment variables for the web image, and it works fine for other scenarios.

            EDIT: Please find additional info as below.

            In the host directory I have the following files and directories

            • composeexample (generated by another container following the same tutorial and copied over to here)
            • manage.py (generated by another container and copied over to here)
            • requirements.txt (exactly as the one in the tutorial)
            • Dockerfile (slightly modified from the one in the tutorial)
            • docker-compose.yml (slightly modified from the one in the tutorial)

            composeexample/settings.py:

            ...

            ANSWER

            Answered 2019-Nov-13 at 10:26

            QUESTION

            cntlm service doesn't run
            Asked 2019-Oct-02 at 09:47

            I am trying to start Cntlm Authentication Proxy service on Windows 10 but I'm getting the 1067 error:

            The Cntlm Authentication proxy service on local computer started and then stopped. Some Services stop automatically if they are not in use by another services or programs.

            Does someone know why this happens?

            ...

            ANSWER

            Answered 2018-Jul-12 at 08:10

            The port could be in use by another program or service. Try to run cntlm -v in a Windows command prompt with admin privileges. This should tell you about any collisions.

            CNTLM is definitely working fine on Windows 10.

            Source https://stackoverflow.com/questions/48949317

            QUESTION

            How can I verify that CNTLM works correctly?
            Asked 2019-Jul-15 at 11:22

            I had installed and configured CNTLM on my Windows 7 machine.

            CNTLM is running and I can see it in Process. I have problems with a development tool that points to http://localhost:3128, I have doubts that CNTML doesn't work correctly.

            Question:

            How can I get a url form command line passing by CNTLM proxy?

            Version:

            ...

            ANSWER

            Answered 2019-Jul-15 at 11:22

            You can open CMD (Windows Prompt), navigate to the Cntlm folder and type:

            Source https://stackoverflow.com/questions/54424263

            QUESTION

            Docker build error: "could not connect to server" (behind proxy)
            Asked 2019-May-07 at 05:39

            Context: OS: Windows 10 Pro; Docker ver: 18.09.0 (build 4d60db4); Behind corporate proxy, using CNTLM to solve this issue. (currently pulling / running image works fine)

            Problem: I was trying to build the following Dockerfile:

            ...

            ANSWER

            Answered 2019-May-07 at 05:39

            I finally managed to solve this problem, and the culprit was my setting in the CNTLM. For a background story, please check this post.

            The root cause of this problem is that the docker container could not access the internet from inside the VM due to wrong IP setting inside the CNTLM.ini.

            Normally CNTLM listens to 127.0.0.1:3128 by default to forward the proxy. I followed the default, and thus set the proxy setting on Docker (for the daemon - through the GUI, and for the container - through config.json) is also set into that address and port. It turns out that this "localhost" does not apply to the VM where docker sits, since the VM has its own localhost. Long story short, the solution is to change that address into dockerNAT IP address (10.0.75.1:3128) in all of the following locations:

            • CNTLM.ini (on the Listen line. Actually if we use CNTLM for other purposes as well, it is possible to supply more than one Listen line)
            • Docker daemon's proxy (through the Docker setting GUI)
            • Docker container config.json (usually in C:\Users\\.docker), by adding the following lines:

            Source https://stackoverflow.com/questions/53510864

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install cntlm

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/PKRoma/cntlm.git

          • CLI

            gh repo clone PKRoma/cntlm

          • sshUrl

            git@github.com:PKRoma/cntlm.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Proxy Libraries

            frp

            by fatedier

            shadowsocks-windows

            by shadowsocks

            v2ray-core

            by v2ray

            caddy

            by caddyserver

            XX-Net

            by XX-net

            Try Top Libraries by PKRoma

            ProcessHacker

            by PKRomaC

            magenta

            by PKRomaC++

            MarkdownSharp

            by PKRomaC#

            xrdp

            by PKRomaC

            MirandaNG

            by PKRomaC