Microsoft ISA server and Linux
While trying to get buildroot to work (which relies heavily on wget), I discovered the secret to happiness to making my Linux development play nicely with Microsoft ISA server. Since it might be useful for others, other there, here is a super brief how-to.
Download NTLMaps
Go to: http://ntlmaps.sourceforge.net/ and download the NTLM Authorization Proxy Server. You will need to unpack the files and edit server.cfg.
Edit the server.cfg file, and add the following settings (substitute xxx.xxx.xxx.xxx for your Microsoft ISA server). You can get this information from browser settings on a properly configured windows box:
Start NTLMaps (as root)
Configure wget to use NTLMaps
Next, we need to tell the wget utility to use our proxy to the proxy. To do this, we can export some environment variables or create a .wgetrc file in your home directory. I will opt for the second:
Next, add the following to the newly created file:
Next, try to issue a wget of a known webpage, like www.yahoo.com:
Success!
Download NTLMaps
Go to: http://ntlmaps.sourceforge.net/ and download the NTLM Authorization Proxy Server. You will need to unpack the files and edit server.cfg.
Edit the server.cfg file, and add the following settings (substitute xxx.xxx.xxx.xxx for your Microsoft ISA server). You can get this information from browser settings on a properly configured windows box:
PARENT_PROXY: xxx.xxx.xxx.xxx
PARENT_PROXY_PORT:80
NT_DOMAIN: YOUR_NT_DOMAIN
USER: your windows="" username=""
#PASSWORD:your_nt_password
Start NTLMaps (as root)
[root@localhost ntlmaps-0.9.9]# ./main.py
NTLM authorization Proxy Server v0.9.9
Copyright (C) 2001-2004 by Dmitry Rozmanov and others.
------------------------
Your NT password to be used: (enter your windows password)
Now listening at localhost.localdomain on port 5865
Configure wget to use NTLMaps
Next, we need to tell the wget utility to use our proxy to the proxy. To do this, we can export some environment variables or create a .wgetrc file in your home directory. I will opt for the second:
$ vi ~/.wgetrc
Next, add the following to the newly created file:
http_proxy=http://localhost:5865/
ftp_proxy=http://localhost:5865/
use_proxy=on
wait=15
Next, try to issue a wget of a known webpage, like www.yahoo.com:
$ wget www.yahoo.com
-- 15:50:43—http://www.yahoo.com/index.html.1
Resolving localhost… 127.0.0.1
Connecting to localhost | 127.0.0.1|:5865… connected.
Proxy request sent, awaiting response… 200 OK
Length: unspecified [text/html]
[ ==== ] 106,746 76.40K/s
15:50:45 (76.34 KB/s) – ‘index.html.1’ saved [106746]
Success!
Powered by ScribeFire.
Labels: Tech
Post a Comment