Get CPAN working from behind a firewall

Microsoft Proxy server... Sigh, it's non standard authentication is still causing problems. To get CPAN working behind Proxy Server, I did the following:

  1. Download and install ActiveState Perl
  2. Download and install ActiveState Python
  3. Download and install cygwin
  4. Download and install NTLM Authorisation Proxy Server
  5. Configure NTLM Authorisation Proxy Server with your NT login info
  6. 	edit server.cfg
    	PARENT_PROXY:[server]
    	PARENT_PROXY_PORT:[port]
    	NT_DOMAIN:[nt-domain]
    	USER:[userid]
    	PASSWORD:[password]
    	Edit runserver.bat
    	"c:\python23\python.exe" main.py
    
  7. Run NMLM Authorisation Proxy Server - runserver.bat (leave CMD window open)
  8. Run c:\perl\bin\CPAN.bat which will force you to configure, accept all the defaults and then when it comes to http_proxy and ftp_proxy, enter MachineName:Port from the NTLM Proxy) (e.g. mine is GallagherC:5865)

This technique will work with lynx web browser too if you configure the NTLM Proxy in c:\cygwin\etc\lynx.cfg



This article © 2006 Colm Gallagher, Coralquest Limited.

Reproduction in whole or part on an internet site is allowed as long as a link back to this page
is provided in a prominent position on the same page as which the article appears.
Reproduction in print or any other media requires the express written approval of the author.