Linux help

Ubuntu: Configure Linux to use NTLM authentication proxy (ISA/TMG Server) using CNTLM

I decided to get an Ubuntu installation going on my machine using VMWare player and it’s Unity feature. The only problem was: TMG. This was how I got around the issue of allowing my VM to access the internet: Cntlm proxy

(If you cannot install CNTLM using the apt-get command I’d suggest you download the software and SCP it to your VM.)

The other great thing about the cntlm software is that it can create NTLM hashes.

1. Install CNTLM

Update your sources:

apt-get update

Update your installation:

apt-get upgrade

Install application:

apt-get install cntlm

2. Configure CNTLM

Once installed edit the configuration file:

nano /etc/cntlm.conf

Set username, domain, remote proxy, and address with port which local proxy will listen to. Here will listen only in local interface:

Username        testuser

Generate password hash:

cntlm -H

You will see something like this:

PassLM          7F4BB72132BAA2A01FA94BD623A70D3B
PassNT          2C27BB146F74625D159413FC1F30745F
PassNTLMv2      D3972609581D8260868ED588303F0FF0    # Only for user 'testuser', domain 'contoso'

Copy these lines to /etc/cntlm.conf

3. Configure Debian to use the CNTLM proxy:

Execute this line to configure system to use the local proxy:

export http_proxy=

4. Configure CNTLM to listen external network:

If you need to use CNTLM as a proxy server, add this line to /etc/cntlm.conf (assuming is the local address):




Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s