Is there a way to use an HTTP proxy (with a user/pass) with yum? Or at least a way to pass a user/pass through yum? I have a situation with a CentOS server behind a web filter appliance.
Thanks, Scott
Found what I was trying to find in yum.conf, but it's not working...
proxy=http://hostname.domain.com/ proxy_username=domain\myusername proxy_password=mypassword
# yum check-update Loading "installonlyn" plugin Setting up repositories Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=i386&repo=extras error was [Errno 14] HTTP Error 407: Proxy Authentication Required Error: Cannot find a valid baseurl for repo: extras
That's the legit user/pass syntax. I use it when surfing with Firefox.
Thanks, Scott
On 8/21/07, Scott Moseman scmoseman@gmail.com wrote:
Is there a way to use an HTTP proxy (with a user/pass) with yum? Or at least a way to pass a user/pass through yum? I have a situation with a CentOS server behind a web filter appliance.
Thanks, Scott
On 8/21/07, Scott Moseman scmoseman@gmail.com wrote:
proxy=http://hostname.domain.com/ proxy_username=domain\myusername proxy_password=mypassword
Oh, sure, the moment I sent the email, it started working... LOL
Thanks, Scott
On 8/21/07, Scott Moseman scmoseman@gmail.com wrote:
proxy=http://hostname.domain.com/ proxy_username=domain\myusername proxy_password=mypassword
Oh, sure, the moment I sent the email, it started working... LOL
And this morning it stopped working again. Either yum is flaky when it comes to proxy authentication -- or this web filter is not consistent.
Thanks, Scott
On 8/22/07, Scott Moseman scmoseman@gmail.com wrote:
proxy=http://hostname.domain.com/ proxy_username=domain\myusername proxy_password=mypassword
Oh, sure, the moment I sent the email, it started working... LOL
And this morning it stopped working again. Either yum is flaky when it comes to proxy authentication -- or this web filter is not consistent.
Ok, it is not actually working. I think I surfed via Firefox and authenticated the first time around when I thought it was working. With the above config, I get this message when trying to use yum...
# yum check-update Loading "installonlyn" plugin Setting up repositories Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=i386&repo=extras error was [Errno 14] HTTP Error 407: Proxy Authentication Required Error: Cannot find a valid baseurl for repo: extras
Perhaps the problem is that its a web -filter- and not really a -proxy-? Maybe I should try bypassing the corporate -filter- and use my -proxy- at home to see what happens.
Thanks, Scott
On 8/28/07, Scott Moseman scmoseman@gmail.com wrote:
proxy=http://hostname.domain.com/ proxy_username=domain\myusername proxy_password=mypassword
Perhaps the problem is that its a web -filter- and not really a -proxy-? Maybe I should try bypassing the corporate -filter- and use my -proxy- at home to see what happens.
For those interested, the cause of the problem is the corporate filter requires NTLM authentication -- and Yum does not support NTLM.
Our filter/proxy vendor suggested... http://ntlmaps.sourceforge.net/
Thanks, Scott
Is there a way to use an HTTP proxy (with a user/pass) with yum? Or at least a way to pass a user/pass through yum? I have a situation with a CentOS server behind a web filter appliance.
Add the following to /etc/wgetrc
http_proxy = http://username:password@proxy.example.com:8080/ ftp_proxy = http://username:password@proxy.example.com:8080/
... the web filter will need to be able to do http byte-range requests though. The proxy we have at work can't, yum should be able to deal without but can't so I have to rsync each of the repositories down locally and run yum from them.
Dan
Dogsbody wrote:
Is there a way to use an HTTP proxy (with a user/pass) with yum? Or at least a way to pass a user/pass through yum? I have a situation with a CentOS server behind a web filter appliance.
Add the following to /etc/wgetrc
http_proxy = http://username:password@proxy.example.com:8080/ ftp_proxy = http://username:password@proxy.example.com:8080/
... the web filter will need to be able to do http byte-range requests though.
Since when does yum read wgetrc?
Ralph
Is there a way to use an HTTP proxy (with a user/pass) with yum? Or at least a way to pass a user/pass through yum? I have a situation with a CentOS server behind a web filter appliance.
Add the following to /etc/wgetrc http_proxy = http://username:password@proxy.example.com:8080/ ftp_proxy = http://username:password@proxy.example.com:8080/
Since when does yum read wgetrc?
I believe yum uses wget (or libraries) and wget reads wgetrc, I picked this up from the yum mailing list and it works too! :-)
Dan
On Wed, 22 Aug 2007 11:17:37 +0100, Dogsbody wrote
Is there a way to use an HTTP proxy (with a user/pass) with yum? Or at least a way to pass a user/pass through yum? I have a situation with a CentOS server behind a web filter appliance.
Add the following to /etc/wgetrc http_proxy = http://username:password@proxy.example.com:8080/ ftp_proxy = http://username:password@proxy.example.com:8080/
Since when does yum read wgetrc?
I believe yum uses wget (or libraries) and wget reads wgetrc, I picked this up from the yum mailing list and it works too! :-)
Setting the local vars HTTP_PROXY and FTP_PROXY is also enough if you just want to use it in the current session.
Michel
-- Het.Grote.Net WebMail, powered by OpenWebMail --