cmdref.net - Cheat Sheet and Example

cmdref.net is command references/cheat sheets/examples for system engineers.

User Tools

Site Tools


Sidebar








Etc


Reference














.

middleware:proxy:cntlm.html



Proxy Server

Cntlm Authentication Proxy (cntlm)

Basic Knowlege

Cntlm is an NTLM / NTLM Session Response / NTLMv2 authenticating HTTP proxy intended to help you break free from the chains of Microsoft proprietary world.


How to use

Windows

Check

cntlm -c cntlm.ini -v -M http://www.google.com/


Method.1

cntlm.exe -f -c cntlm.ini -g -I -u test@domain 192.168.0.10:8080
cntlm.exe -f -c cntlm.ini -g -I -u test@domain 192.168.0.10:8080


Method.2

cntlm.ini
Username	user01
Domain		example.com
Password	pass

Proxy		192.168.0.10:8080
NoProxy         localhost, 127.0.0.*, 10.*, 192.168.*
Listen          3128

Gateway yes     # Enable to allow access from other computers
start.bat
cntlm.exe -f -c cntlm.ini -g -I -u test@domain 192.168.10.10:8080
pause


Check cntlm

Cygwin

# export http_proxy=http://localhost:3128
# wget -S --spider http://www.uniqlo.com/
# curl -I http://www.uniqlo.com/




Linux

Install

rpm
rpmbuild --rebuild cntlm-0.92-1.src.rpm
rpm -ivh /usr/src/redhat/RPMS/x86_64/cntlm-0.92-1.x86_64.rpm
Source
./configure
make
make install


Configuration

#cat /etc/cntlm.conf  |grep -Ev "^#|^$"
Username        test-user
Domain          test.local
Password        PASS
Proxy           192.168.100.XX:8080
NoProxy         localhost, 127.0.0.*, 10.*, 192.168.*
Listen          8080
Auth NTLMv2


How to use

./cntlm -c cntlm.ini -g -I -u test@domain proxy-server:8080

or

# /etc/init.d/cntlm start


Check cntlm

# export http_proxy=http://localhost:8080
# wget -S --spider http://www.yahoo.co.jp
# curl -I http://www.uniqlo.com/



middleware/proxy/cntlm.html.txt ยท Last modified: 2016/07/19 by admin

Page Tools