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
link|improve this question
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
using apt-get update, there's no gui installed – Lee May 25 '10 at 10:45
feedback

3 Answers

Does the Windows proxy support HTTP authentication, or does it require NTLM?

link|improve this answer
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. – ta.speot.is May 24 '10 at 10:33
feedback

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

link|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
feedback

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.