-
-
Save pamtrak06/517fcfb97a22550383b119d814032d91 to your computer and use it in GitHub Desktop.
Configure CNTLM Proxy on Centos/Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ~/.bash_aliases | |
export http_proxy=http://localhost:3128 | |
export https_proxy=${http_proxy} | |
export ftp_proxy=${http_proxy} | |
6) Run command: | |
$ . ~/.bash_aliases | |
7) Enable CNTLM to start automatically: | |
$ chkconfig cntlmd on | |
$ service cntlmd start | |
$ service cntlmd status | |
$ journalctl -xe -u cntlmd | |
8) Fix Failed connect to localhost:3128; Connection refused | |
$ mkdir /var/run/cntlm | |
$ chgrp cntlm /var/run/cntlm/ | |
$ chmod g+w /var/run/cntlm/ | |
$ systemctl restart cntlm.service | |
$ systemctl status cntlm.service | |
Test : curl https://www.google.fr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ~/.bash_aliases | |
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: | |
$ . ~/.bash_aliases | |
8) If it's not setup to start automatically (will say it exists if already there): | |
$ sudo update-rc.d cntlm defaults |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment