Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fill in proxy information in cntlm config file?

Tags:

proxy

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

I have my proxy URL in the following format:

http://user:passwords@my_proxy_server.com:80 

And I have to provide this information to cntlm. Its config file cntlm.ini has following structure and parameters:

Username  Domain Password     Proxy    

I am not sure, how to break up my original proxy property to fill these four options?

like image 579
Dilawar Avatar asked Feb 07 '12 18:02

Dilawar


People also ask

What is cntlm proxy?

About Cntlm proxy Cntlm (user-friendly wiki / technical manual) is an NTLM / NTLM Session Response / NTLMv2 authenticating HTTP proxy intended to help you break free from the chains of Microsoft proprietary world. You can use a free OS and honor our noble idea, but you can't hide.

How do I know if cntlm is running?

Just go to that folder and open command prompt(keep pressing shift key and then right click gives you option to open command prompt at that folder.) and execute that exe(the one you see at start menu start cntlm server). Now you will see if service started successfully or not!


1 Answers

Update your user, domain, and proxy information in cntlm.ini, then test your proxy with this command (run in your Cntlm installation folder):

cntlm -c cntlm.ini -I -M http://google.ro 

It will ask for your password, and hopefully print your required authentication information, which must be saved in your cntlm.ini

Sample cntlm.ini:

Username            user Domain              domain  # provide actual value if autodetection fails # Workstation         pc-name  Proxy               my_proxy_server.com:80 NoProxy             127.0.0.*, 192.168.*  Listen              127.0.0.1:54321 Listen              192.168.1.42:8080 Gateway             no  SOCKS5Proxy         5000 # provide socks auth info if you want it # SOCKS5User          socks-user:socks-password  # printed authentication info from the previous step Auth            NTLMv2 PassNTLMv2      98D6986BCFA9886E41698C1686B58A09 

Note: on linux the config file is cntlm.conf

like image 72
alexandrul Avatar answered Sep 19 '22 13:09

alexandrul