LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-20-2008, 07:28 PM   #1
watcher69b
Member
 
Registered: Nov 2007
Location: /home/watcher69b
Distribution: RH, Fedora & CentOS
Posts: 552

Rep: Reputation: 41
YUM with proxy


I am running a few red hat servers and I cannot get yum to work via terminal with out 1st logging onto the server and putting my credentials into the Border Manger webpage.
Has any one been able to get this to work only using a command line?
I have no control over the Novell side of the house so i cannot allow my servers to bypass the proxy. Also the proxy has a home made ssl cert that is no longer valid. The Novell crew won’t regenerate it either.

I have tried
export http_proxy=usernameassword@https://192.168.x.x:9000
export http_proxy=https://usernameassword@192.168.x.x:9000
I am at a loss for what to do


Here is what i get...
[root@box1 ~]# yum update
Loading "rhnplugin" plugin
Loading "installonlyn" plugin
There was an error communicating with RHN.
RHN support will be disabled.
Error communicating with server. The message was:
Moved Temporarily
Setting up Update Process
Setting up repositories
No Repositories Available to Set Up
Reading repository metadata in from local files
No Packages marked for Update/Obsoletion
 
Old 04-21-2008, 07:03 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
http://www.fedoraforum.org/forum/sho...=&threadid=742
I take it you need to authenticate to the proxy? You put the username and password in the wrong place.
Code:
http_proxy=http://user:passwd@proxy.foo.com:portnumber
Better:

create the following files in /etc/profile.d, and then this will work in *any* shell for *any* user of the system
Code:
#proxy.sh
export http_proxy=http://host.com:port/
export ftp_proxy=http://host.com:port/
export no_proxy=.domain.com
export HTTP_PROXY=http://host.com:port/
export FTP_PROXY=http://host.com:port/

#proxy.csh
setenv http_proxy http://host.com:port/
setenv ftp_proxy http://host.com:port/
setenv no_proxy .domain.com
setenv HTTP_PROXY http://host.com:port/
setenv FTP_PROXY http://host.com:port/

Last edited by Simon Bridge; 04-21-2008 at 07:05 AM.
 
Old 04-21-2008, 01:31 PM   #3
watcher69b
Member
 
Registered: Nov 2007
Location: /home/watcher69b
Distribution: RH, Fedora & CentOS
Posts: 552

Original Poster
Rep: Reputation: 41
I created the 2 files and rebooted. Still no joy. Do i need to call the files before running yum?

i also had to replace http:// on all of them with https:// because http to the proxy is blocked...
 
Old 04-22-2008, 03:02 AM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Then you need to set https_proxy instead.
Code:
http_proxy=https://user:passwd@proxy.foo.com:portnumber
https_proxy=https://user:passwd@proxy.foo.com:portnumber
export http_proxy
export https_proxy
Always providing that the proxy requires an ssh encrypted http request. Usually, an https request is asking the proxy for connection to a secure web page. So check. Also check the authentication part.

There is a discussion about this here.
Quote:
Having a proxy configured to answer on a secure socket would add nothing to the security of the proxied connection.
 
Old 04-22-2008, 06:36 AM   #5
watcher69b
Member
 
Registered: Nov 2007
Location: /home/watcher69b
Distribution: RH, Fedora & CentOS
Posts: 552

Original Poster
Rep: Reputation: 41
I spoke to the Novell guys. the problem is that they need to add the servers IP addresses to the exception list on the proxy server.
Thank you for the help!
 
Old 04-22-2008, 07:08 AM   #6
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Ahah! So authentication was the issue
At least all this effort ruled out anything you were doing.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Centos 5 YUM/Proxy metallica1973 Red Hat 6 01-30-2009 11:53 AM
YUM with a Novell proxy watcher69b Linux - Networking 1 04-21-2008 07:12 AM
yum thru proxy a1ex_007 Fedora 7 06-29-2005 10:30 AM
yum & proxy koxnas Fedora 0 12-26-2004 02:30 PM
Proxy + Yum beatlelane Fedora 9 12-17-2003 08:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration