Instantly share code, notes, and snippets.

Embed
What would you like to do?
Configure CNTLM Proxy on Centos/Ubuntu
1) Download cntlm rpm package from http://sourceforge.net/projects/cntlm/files/cntlm/
2) Login as root
3) Run command:
$ rpm -ivh cntlm-*.rpm
4a) Obtain password hash for the configuration file in step 4b (do not put plaintext password in configuration)
$ cntlm -H -d <domain> -u <username>
4b) Configure CNTLM:
$ vi /etc/cntlm.conf
5) Export proxy settings:
$ vi ~/.bashrc
export http_proxy=http://localhost:3128
export https_proxy=${http_proxy}
export ftp_proxy=${http_proxy}
6) Run command:
$ . ~/.bashrc
7) Enable CNTLM to start automatically:
$ chkconfig cntlmd on
$ service cntlmd start
1) Download cntlm deb package from http://sourceforge.net/projects/cntlm/files/cntlm/
2) Login as root
3) Run command:
$ dpkg -i cntlm*.deb
4a) Obtain password hash for the configuration file in step 4b (do not put plaintext password in configuration)
$ cntlm -H -d <domain> -u <username>
4b) Configure CNTLM:
$ gksudo gedit /etc/cntlm.conf
5) Restart cntlm:
$ sudo service cntlm restart
6) Export proxy settings:
$ gksudo gedit ~/.bashrc
export http_proxy=http://127.0.0.1:3128
export https_proxy=http://127.0.0.1:3128
export ftp_proxy=http://127.0.0.1:3128
7) Run command:
$ . ~/.bashrc
8) If it's not setup to start automatically (will say it exists if already there):
$ sudo update-rc.d cntlm defaults
@freking

This comment has been minimized.

freking commented Oct 13, 2016

This is great everything I need to know to install cntml on Centos in one location, to bad I only found this when I was completing the last step.

@seppu

This comment has been minimized.

seppu commented Jun 1, 2018

The https proxy setting should read export https_proxy=https://127.0.0.1:3128

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment