Coder Social home page Coder Social logo

ntlm_proxy's Introduction

Proxy Setup for BKU and at Home

When using CNTLM, Squid and VPN you are in to a lot of fun. It might work without some user interference, but when you are about to change networks, e.g. starting up laptop at home, connecting to the wireless and connecting to VPN, it was impossible for me to get a working setup without manual intervention. Because manual work always means error (and that I experienced a log on my own ;-) ), I created a solution that solves the mentiond problems without manual rework.

General idea

CNTLM ist the endpoint for all local applications. It is running on port 3128 locally. It has two proxys under the hood - first one is the NTLM Proxy, second one is a local squid. The local squid listens on port 3129 and its only job is to connect to the internet in a non NTLM setup. When configured correctly the proxy work flawlessly together, but network changes do not change anything on the proxies. This solution here listens for network change events and restarts the cntlm proxy.

Files

cntlm.ini

There are only two interesting settings in cntlm.ini. See Proxy entries, change Username/Domain and generate correct PassNTLMv2 hash.

squid.conf

Only one interesting setting in squid.conf. See http_port, that is set to 3129 instead of 3128. If you like, change nameservers.

Windows Installation

See Windows instructions.

Mac Installation

See Mac instructions.

Linux Installation

See Linux instructions (TODO).

Links

Inspiration

Sources

Possible improvements

  • Windows: Exchange CNTLM with PX Proxy. The PX Proxy uses the logged in windows user, so no credentials that have to be taken care of..

License

Creative Commons Attribution 4.0, see License.

ntlm_proxy's People

Contributors

rudi78 avatar

Stargazers

 avatar  avatar  avatar

Forkers

krissp65

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.