kubuntu vs MS ISA Proxy ft apt-get
Recently I had to install an app on Kubuntu through apt but found that I was locked behind a MS ISA Proxy server at work. I read numerous articles and help responses in the forums that suggested adding a line to /etc/apt/apt.conf with the required proxy settings.
I added the regulatory Acquire::http::proxy http://username:password@server and nothing worked. It does not allow the use of the domain name\username combination. Neither does the export environment setting. This poses a bit of a problem if your proxy server is expecting both.
After a wee bit of research (about 20 mins as I get bored following the worldwide tangent and end up on IMDB for an hour before remembering what I was looking for in the first place) I stumbled upon this:
Ensure python is installed first, then
Download the latest version of NTLMAPS from
Yes, I know you can’t connect to the proxy server but if you change konqueror’s proxy settings:
scroll to PROXY
select Manually specify proxy setting - setup
and enter your proxy server settings you will be prompted to enter your username and password and this prompt WILL let you input it with the DOMAIN\USERNAME format.
Extract the contents of the downloaded file into a directory using your preferred extraction tool.
In a shell, or if you are already in one, CD into the directory and use VI or your favourite editor to modify server.cfg
LISTEN_PORT:5865 --swap for whatever local port you want
PARENT_PROXY_PORT:8080 --swap for your servers port
NT_DOMAIN:pdcl --swap for your domain name
USER:steve --swap for your username
PASSWORD:notgoingtotellyou --swap for your password
Save your changes and exit back to the prompt
Start the server with
pdcl-vaio3:/# python main.py
Open a new shell, keeping the previous one open, and export the following
pdcl-vaio3:/# export http_proxy=http://127.0.0.1:(local LISTEN_PORT that you set in server cfg)
pdcl-vaio3:/# export ftp_proxy=http://127.0.0.1:(local LISTEN_PORT that you set in server cfg)
Then start adept
pdcl-vaio3:/# Kdesu adept-manager
(kdesu if you are not running as root or don't have root access)
I’m fairly confident the same process will work in Ubuntu using synaptic, but either flavour can use apt-get etc in the shell.
* For browsing, open konqueror and change the settings under proxy server to local (127.0.0.1) and the port you set in server.cfg
There you go, Robert is your mother’s brother, updates through your company’s ISA proxy server.
*I recently tried this on openSuse but no matter what the setting, or combination of settings I couldn't get YaST to work on updates.
*It does, however, work on Fedora with yum, you just need to modify yum.conf and add the local proxy setting in there.