Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I need a Debian box (without X) to use a Windows proxy server with authentication.

Normally I can do this with the env variable:

http_proxy=http://USERNAME:PASSWORD@PROXYIP:PROXYPORT

Unfortunately, the Windows domain is complicating things.

In a nutshell, how do I configure Debian to use a proxy where authentication requires a Windows domain and username like domain\myname?

share|improve this question
    
Have you thought about supplying the username as username@fqdn? –  mastashake57 Feb 29 '12 at 1:40
    
Have you tried a double backslash? –  Harry Johnston Feb 29 '12 at 1:42
    
Yes, my first thought was to double backslash, but no luck. Single quotes also didn't do the trick. –  Dan K. Feb 29 '12 at 2:00
add comment

2 Answers

I think that your "Windows Proxy" is a proxy that requires NTLM authentication (username, password, Windows domain). The typical example is Microsoft ISA server, the standard proxy server for large corporate environments running a Windows environment.

If you must go through an NTLM proxy, use CNTLM (sourceforge) between you and the company's proxy. It stores your NTLM credentials and uses them to talk to the company's proxy, presenting you with a local proxy (i.e. localhost:3128) you can connect to with no authentication required.

Your configuration would then look like:

  • CNTLM set up to point to your company's proxy, proxy.big-company.com:8080, with your credentials user = jsmith, pass = god123, domain = BIGCOMPANY, and local proxy port localhost:3128
  • your HTTP_PROXY environment variable set to localhost:3128

More about it in my answer to this question on Server Fault.

share|improve this answer
    
Thanks, I'll try CNTLM. –  Dan K. Mar 1 '12 at 4:43
add comment

RFC1738 defines the syntax of a URL, and it allows for characters to be encoded using hexadecimal representation. So if a double-backslash doesn't work you should try

http_proxy=http://DOMAIN%5CUSERNAME:PASSWORD@PROXYIP:PROXYPORT

or

http_proxy=http://USERNAME%40DOMAIN:PASSWORD@PROXYIP:PROXYPORT

(noting that %5C is the encoding for a backslash and %40 is the encoding for the at sign.)

share|improve this answer
    
Upvote because this set me in the right direction. I'm using curl to download packages, and found this page helpful: forums.opensuse.org/english/get-technical-help-here/… –  noahz Apr 10 '12 at 14:41
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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