Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to access the Internet from a Debian server using a Windows Proxy server which requires authentication. I have tried using this command in the /etc/bash/bashrc file, but it still doesn't seem to work, any ideas?

export HTTP_PROXY=http://user:pass@ipaddress:port
share|improve this question
Does the Windows proxy support HTTP authentication, or does it require NTLM? – May 24 '10 at 10:20
Apparently it's HTTP, would that make a big difference then? – Lee May 24 '10 at 10:25
No, NTLM is the more complicated authentication method so you should be good to go. – May 24 '10 at 10:33
Apparently the the Windows Proxy server is not seeing a request from this machine when trying 'sudo aptitude update', although it can see 'telnet ipaddress port'. Useful? – Lee May 24 '10 at 10:45
When you say access, do you mean using a web browser, or are you issuing a apt-get update, or what? – Avery Payne May 24 '10 at 17:28

If you're just trying to get apt-get update to work, try putting the following in /etc/apt/apt.conf.d/01proxy:

Acquire::http::Proxy "http://domain\username:password@proxy:8080";

That won't work for anything other than apt, but if you're just trying to do updates, that should work.

share|improve this answer

you could try after encapsulating the http://user:pass@ip:port within single quotes, as reasoned here.

share|improve this answer
Ok, updated as such: export HTTP_PROXY='user:pass@ipaddress:port'; Still no luck – Lee May 24 '10 at 10:34
Tough. Also, perhaps the Windows Proxy needs to be configured to add an exception for the debian server's ip-address. Some proxies will block any unregistered ip-addresses unless specifically configured otherwise. – Shrinivas May 24 '10 at 10:49
yeah, i've suggested this to them already, not heard back from them checking their logs as yet – Lee May 25 '10 at 10:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .