How to Configure wget to play nice with ISA Server Proxy

Here is the brief how-to.

Download NTLMaps

Go to: http://ntlmaps.sourceforge.net/ and Scroll down to “Download.” Download the ntlmaps package and unpack it.
Configure NTLMaps server.cfg

Edit the server.cfg file, and add the following settings:

PARENT_PROXY:
PARENT_PROXY_PORT: NT_DOMAIN:
USER:
#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:
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

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 http://www.yahoo.com:

$ wget http://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!

This entry was posted in Linux, Software Development. Bookmark the permalink.

3 Responses to How to Configure wget to play nice with ISA Server Proxy

  1. william says:

    I just want to say thanks=)
    It worked like a charm!!

  2. lolskator says:

    Thanks, worked for me too. i’m on winxp.

  3. German says:

    Hi Joe, many thanks for your post. Unfortunately in my case…doesn’t works..
    Regards

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s