You are not logged in.

#1 2009-01-09 12:37:15

VuLTuRe
Member
From: Turkey
Registered: 2005-12-16
Posts: 56
Website

407 Proxy Authentication Required

Hello everybody,
I use wget for pacman.
I need to use proxy for my connection.
I have configured "/etc/wgetrc" as;

http_proxy=http://myusername:mypassword@proxyip:proxyport/
use_proxy=on

But when i run "#pacman -Syu", it gives:
407 Proxy Authentication Required. Access to the Web Proxy filter is denied.

#ping www.google.com
PING www.google.com (209.85.135.147) 56(84) bytes of data

What I need to do?


TuX We TrusT

Offline

#2 2009-01-10 02:02:26

dschrute
Member
From: NJ, USA
Registered: 2007-04-09
Posts: 183

Re: 407 Proxy Authentication Required

Assuming you followed all the info in the wiki for proxy auth and it still doesn't work...

Some proxy servers require NTLM authentication and reject plain text passwords being sent to them.  If this is the case you can try using something like ntlmaps, which does the NTLM translation for you + sends the correct auth on to the proxy.

Basically :
wget via proxy with no auth --> ntlmaps on localhost configured with your username/password --> NTLM auth to external proxy

More info here :
http://ntlmaps.sourceforge.net/

It's available in AUR as a package, along with some others that also support NTLM.  I've only used ntlmaps, so i can't say anything about the others available.  Just search for ntlm in AUR.

Offline

#3 2009-01-12 12:45:59

VuLTuRe
Member
From: Turkey
Registered: 2005-12-16
Posts: 56
Website

Re: 407 Proxy Authentication Required

I have downloaded the tarball from aur, and installed the pkg. I have configured the configure file and started the /etc/rc.d/ntlmaps.
what should I do more? I'm trying to connect directly,like: #links www.google.com but i am not able to....


TuX We TrusT

Offline

#4 2009-01-12 23:04:30

dschrute
Member
From: NJ, USA
Registered: 2007-04-09
Posts: 183

Re: 407 Proxy Authentication Required

You need to point your app(s) at ntlmaps, which in turn points at the upstream proxy.  All it is supposed to do is remove the requirement for your app to send authentication to the proxy, but the app(s) still need to be configured for a proxy.

According to the docs, ntlmaps listens on port 5865.  So rather than configuring wget to use the upsteam proxy and with a username/password, you want to configure it to use port 5865 on localhost with no password.  Then make sure ntlmaps is configured with the correct username/pasword and is pointing at the upstream proxy.
You may or may not need to play with some of the other options in the cfg file.

So logically it should look something like :
wget/links/whatever --> localhost:5865 --> network-proxy

Offline

Board footer

Powered by FluxBB