Skip to main content

CNTLM in Office

If you are facing a proxy problem , CNTLM is a general option everybody considers. But the working of CNTLM is not always guaranteed. I myself get confused every time I need to use it.

What problem are we actually talking about?

While working in offices and restricted environments where firewalls and other invisible barriers stop your requests from going out, you sometimes need a way to temporarily jump over that barrier to get your job done . Example: You might face them while trying to install using pip in command line, trying to clone a personal git repository. 

What is CNTLM exactly?

I think this is best answered by the creator himself. Refer this. You can download it from here. For configuration, you an refer this. There are many uses of CNTLM but I am trying to solve my own problem here. So I will stick to breaking office barriers for now ;) .

Why do I need to use it :

1) Python package installations using PIP
2) Git operations : Cloning and pushing to server.

Here are a set of steps I came up with, which mostly works . You must follow them exactly in the same sequence mentioned here:

  • Launch Internet Explorer . 
  • Go to Tools > Internet Options > Connections > LAN Settings
  • Under Proxy Server, make sure 'Address' should be 'localhost' and proxy should be the one defined in cntlm config file (cntlm.ini)
         Check for the line in , "Listen 3128" to cross check .  (I'm using 3128). 
  • Save and close.
  • Launch a command prompt. 
  • Execute these 2 commands one by one 

git config --global http.proxy http://localhost:3128
git config --global https.proxy https://localhost:3128

  •  Type "net start cntlm". Wait for it to start. 

Operation Specific Instructions

  • If you want to use the PIP command, type
          pip install --proxy=localhost:3128 package-name

          Note: This is important>  --proxy=localhost:3128  

  • For git operations , you don't need above step. 

In order to stop cntlm (if you ever need to), this is the command:

"net stop cntlm"

Popular posts from this blog

Why should you visit Kashmir sooner?

"If there is paradise on Earth, this is it"
And paradise it was . Early winter is the perfect time to plan for a visit to Kashmir. We will suggest to keep your itinerary  short . And enjoy the best trip of your life. 

   My Visit Month : Mid November 2015

As we were flying close to Srinagar, about 20 minutes before landing , all of a sudden , every passenger in the aircraft was on his toes craning theirs necks over the tiny window to catch a glimpse of the above. A fleet of Snow Giants.

   Visit Meena Bazaar in Dal Lake
  You will find a floating village with houses , shops, and hotels on all kinds of boats.

    A night on a House Boat

Take a Shikara ride.Watch the super clear reflection of the mountain. Spot fishes and water birds.

Take a 2 day stay in Pahalgam. Visit Mini Switzerland first day on a horse ride.

Visit Sonemarg. Enjoy the snow.

On your way to Pahalgam, visit apple orchids . Taste all kind of apples. The golden ones are supposed to be the best.

The dark ominous mou…

Rajasthan: The Best backpacking destination in India

Rajasthan : The Abode of Rajas

Why Rajasthan indeed?

Suitable for all size of plans . Week long , month long , or a day long.Numerous popular cities to visit.Shopper's paradise.Best forts in India in one State.Diversity - Greenery, Desert, Lakes, Urbanization or Tranquility. You will get it all.Wildlife SanctuariesHeritage cities - Best for people who love cities with a history.Food - A host of popular dishes to cherish. Vegetarians rejoice.Transport - All options are available, abundant and safe. Trains. buses or airways.Budget friendly - One can choose a budget fitting as he likes. Everyone can enjoy irrespective of his pocket strength.
1.  Pune to Mumbai (Bandra Terminus) (via Bus)
Distance: 159 km
Duration: 3-4 hrs

2. Mumbai to Chittorgarh (via Train 22901 / UDZ SUPER FAST)
Distance: 831 km
Duration: One night stay in Chittorgarh

3. Chittorgarh to Udaipur (via Passenger Train) ,
Distance: 117 km
Duration:  Same day departure for Jodhpur

4. Udaipur to Jodhpur (via St…