Monthly Archives: June 2014

Life behind the corporate firewall

Many things seems to get upset once you shove them behind a corporate NTLM firewall. Our main workaround for this is to install the cntlm proxy on a local linux box, and use it as a proxy. This is great, and many applications will obey the http_proxy and https_proxy environment variables. However, git doesn’t, and it gets worse when you are given a git: url

To configure git to use a proxy, use:

git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080
git config --global https.proxy http://proxyuser:proxypwd@proxy.server.com:8080

To resolve the git: url, you can set git to automatically use https instead of git

git config --global url."https://".insteadOf git://

Thanks to StackOverflow and google generally.

Advertisements