Configuring Ubuntu with MS ISA Server
9 February 2009
Configuring Ubuntu with MS ISA Server
Did you try one day to update your ubuntu using “Update Manager” or using “Synaptic Package Manager” and you encounter the following tedious message:
“407 Proxy Authentication Required “
or:
“Could not connect to [Server Name]:[Server_Port] [(Server IP address)] . – connect (111 Connection refused)”
or even like this one:
“W: Failed to fetch http://[URL] Could not connect to [Server Name]:[Server_Port] [(Server IP address)]. – connect (111 Connection refused) [IP]”
Do you know why ?!
This happened because you are trying to connect to a server behind your ISA server or firewall. Hmm! Yes, this is right, so what is the solution.
Show appreciation to “NTLMAPS” since it will solve your dilemma. Then, attempt the following few steps carefully please:
Download NTLMAPS from http://ntlmaps.sourceforge.net/ which it is aproxy software that allows you to authenticate via an MS Proxy Server using the proprietary NTLM protocol, and take care from its dependency and system requirements to download them too like python language interpreter version 1.5.2 or higher. See www.python.org .for more information.
Setup the package downloaded through command
$: sudo dpkg -i ntlmaps_[version_number]_all.deb
Then you will be prompted to input the following data :
-
Listen Port
5865
Parent Proxy
Your.proxy.com (e.g. enter the name or address of your proxy, do not enter the port as “your.proxy.com:number” as this will be taken care of in the next step)
Parent Proxy Port
port_number (usually 8080 OR 80)
NT Windows Domain
domain_name (your domain)
NT Windows User Name
user_name (the user name you will authenticate with)
NT Windows Password
password (the password you will use to authenticate with the ISA Proxy)
- Now let all connection mount to “NTLMAPS” by opening System → Prefernces → Network Proxy and select “Manual Proxy Configuration” then let your HTTP Proxy : 127.0.0.1 and Port : 5865.
- Afterwards, open System → Administration → Synaptic Package Manager → Settings → Preferences → Network and attempt the last step again for HTTP proxy, but don’t provide your user name or password; because you already told NTLMAPS about it in step 3.
- Now create a file called “proxy” under /etc/apt/apt.conf.d and paste the following code inside “Acquire::http:proxy “http://127.0.0.1:5865/“;”
- Well, we can now control the NTLMAPS to either start, stop or restart. Restart the NTLMAPS .Open the terminal and write: $ sudo /etc/init.d/ntlmaps restart To restart the NTLMAPS service For now, we just need to restartthe NTLMPS so that the changes we have done to take effects. For later use, if you need to start the NTLMPS service write: $ sudo /etc/init.d/ntlmaps start If you need to stop the NTLMPS service write:$ sudo /etc/init.d/ntlmaps stop
- If you need to reconfigure your NTLMAPS settings, like your windows NT user name or password, just open the terminal and write:$ sudo dpkg-reconfigure ntlmapsand re-enter any data that had been changed.Now, I can say “congratulations” to you.
You can now successfully install any updates for your ubuntu while youare working behind MS ISA server or firewall and your ubuntu will work like the charm
Entry Filed under: Linux. Tags: 111 Connection refused, 407 Proxy Authentication Required, buntu ISA server, buntu MS ISA server, Configuring Ubuntu with MS ISA server, Error 401 Access Denied/Unauthorized, MS Proxy Server using NTLM, NTLM, NTLM Authorization Proxy Server, NTLMAPS, ubuntu, ubuntu firewall, ubuntu NTLMAPS, ubuntu NTLMAPS ISA, ubuntu NTLMAPS ISA server, ubuntu NTLMAPS MS ISA server, Update Manager ubuntu ISA server.
1 Comment Add your own
Leave a Comment
Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Trackback this post | Subscribe to the comments via RSS Feed
1. MohanaKrishna | 9 June 2009 at 10:25 pm
My office uses ISA server.I was really struggling to update from update manager and your information really worked.Thank you .
bye