How To Install and Configure Cntlm to Access ISA Server on CentOS 6.5

This blog post describes how to install and configure Cntlm in CentOS 6.5 64-bit connecting to Microsoft ISA server to enable web browsing capability. Decide to write this simple blog post to my previous blog post Install and Configure NTLMAPS to Access ISA Server.

Download Cntlm
Run the command below to download cntlm-0.92.3-1.x86_64.rpm RPM file: –

# wget -c -O cntlm-0.92.3-1.x86_64.rpm http://sourceforge.net/projects/cntlm/files/cntlm/cntlm%200.92.3/cntlm-0.92.3-1.x86_64.rpm/download

Install Cntlm
Run the command below to install Cntlm: –

# rpm -ivh cntlm-0.92.3-1.x86_64.rpm

Configure Cntlm
Run the command below to edit the Cntlm configuration file after Cntlm installed: –

# vi /etc/cntlm.conf

Now modify the below and save the configuration file after modifying it (below is an example only): –

Username your.nt.username
Domain your.domain
Proxy your.isa.server.name:your.isa.server.port
Listen 3128

Next run the command below to generate the password hash: –

# cntlm -H -c /etc/cntlm.conf

Once the password has is created, copy the PassNTLMv2 line and paste it after “Domain” line like below: –

Username your.nt.username
Domain your.domain
PassNTLMv2 your.password.hash
Proxy your.isa.server.name:your.isa.server.port
Listen 3128

Start Cntlm
Run the command below to start NTLMAPS: –

# service cntlmd start

System Wide Configuration
You can setup the proxy environment in /etc/profile as global variable as below (tested with curl, elinks, lynx, wget & yum): –

export http_proxy=http://127.0.0.1:3128

GUI Web Browser Configuration
You can use the following information to configure in your GUI web browser: –

Proxy IP address: 127.0.0.1
Proxy IP address: 3128