Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 30th May 2012, 06:34 PM
Daniel Bittar Offline
Registered User
 
Join Date: May 2012
Location: Brasil
Posts: 3
windows_7chrome
Yum and proxy

Hi there people!

I've read several threads about this matter and also searched Google but the options presented did not work. The problem is that I need to use you through a proxy server. However, the proxy is authenticated and the username is an e-mail. For instance:

Proxy Server: 123 . 555 . 123 . 555
Proxy Port: 80
Username: me . again @ address . com
Password: 123a456b

Well, I tried setting the variable http_proxy like this:

Code:
export http_proxy=http : // me.again @a ddress.com : 123a456b @ 123 . 555 . 123 . 555 : 80
Obviously it didn't work as yum complained about not recognizing it since there is two @ in it. So, following some threads I altered it like this:

Code:
export http_proxy=http : // address.com \ me.again : 123a456b @ 123 . 555 . 123 . 555 : 80
* Spaces included as per forum rules.

Well, this didn't work either. However, setting the proxy by system settings in Gnome do work for the browser but not for yum. However in the browser I have to type my authentication details in a page requested by the proxy. But yum doesn't ask for authentication and the system settings doesn't have this option.

I have to mention, however, that this problem is not isolated to Fedora. I'm asking here mainly because I'm trying Fedora 17 and need your support. But the problem also happens in the recent versions of Ubuntu, but not int the latest openSUSE nor CentOS 6.2.

In openSUSE I just use Yast to set the proxy and it's authentication details and never again need to worry about it. It works for zypper, browser and so on. In CentOS 6.2 The in system settings where I can set the proxy there are fields for username and password and yum works with and so does the browser. I just set it and forget about it.

In Ubuntu there is another story. In previous version I couldn't set the password and username directly and apt_get would not work. However, using Gconftool-2 used to do the trick with the following settings.

Code:
gconftool-2 -t string -s /system/http_proxy/host 123.555.123.555
gconftool-2 -t int -s /system/http_proxy/port 80
gconftool-2 -t bool -s /system/http_proxy/use_http_proxy true
gconftool-2 -t bool -s /system/http_proxy/use_authentication true
gconftool-2 -t string -s /system/http_proxy/authentication_user me.again@address.com
gconftool-2 -t string -s /system/http_proxy/authentication_password 123a456b
gconftool-2 -t bool -s /system/http_proxy/use_same_proxy true
gconftool-2 -t string -s /system/proxy/mode manual
This, however, doesn't work anymore but at least I can use Synaptic and set the password directly in it. But I can't do anything similar in Fedora.

Does anyone have any suggestions as how to fix it? Remembering my username is an e-mail address?

Best regards,
Daniel Bittar
Reply With Quote
  #2  
Old 30th May 2012, 07:01 PM
PabloTwo's Avatar
PabloTwo Offline
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,128
linuxchrome
Re: Yum and proxy

You configure a proxy server for yum in the /etc/yum.conf file.
To see what entries to add to that file for a proxy server, read the manual:
Code:
man yum.conf
Reply With Quote
  #3  
Old 30th May 2012, 08:50 PM
Daniel Bittar Offline
Registered User
 
Join Date: May 2012
Location: Brasil
Posts: 3
windows_7chrome
Re: Yum and proxy

Well, I just forgot to mention that I did try to set yum.conf. But it also didn't work. It seems that setting separated proxy, proxy_username and proxy_password causes yum to try to access internet without authentication, which doesn't work since the proxy server return an HTML page asking for the password and this makes yum fail with an error.

It would be required to have a variable like require_authentication, which isn't available, that could make yum authenticate in the first attempt.

Any other suggestion?

Thanks a lot,
Daniel Bittar.
Reply With Quote
  #4  
Old 31st May 2012, 12:41 PM
george_toolan Offline
Registered User
 
Join Date: Dec 2006
Posts: 1,718
linuxfirefox
Re: Yum and proxy

Have you tried to escape that @ sign in your username like

Username: me . again \@ address . com

or

Username: "me . again @ address . com"

Maybe monitor the connection with wireshark to find out what exactly yum is sending to the server?
Reply With Quote
  #5  
Old 31st May 2012, 05:58 PM
Daniel Bittar Offline
Registered User
 
Join Date: May 2012
Location: Brasil
Posts: 3
windows_7chrome
Re: Yum and proxy

Well, thank you very much. I checked and figured out that somehow the repos were configured to use https instead of http. When I changed it it worked.

Thanks you very much!
Daniel Bittar.
Reply With Quote
Reply

Tags
proxy, yum

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Proxy - non-proxy settings in Gnome 3 - F16 boaojatista Servers & Networking 1 17th April 2012 01:19 PM
How to Authenticate for the Network Proxy ( for the Central Proxy / not for yum) mR.cOLd Servers & Networking 1 9th January 2012 05:51 AM
How to Authenticate to the Network Proxy ( to the Central Proxy / not for yum) mR.cOLd Using Fedora 0 31st October 2011 08:40 PM
CGI-based proxy problem (nph-proxy.cgi), Apache? xequtor Servers & Networking 5 11th September 2007 10:58 PM
How to use another proxy while sitting behing proxy majid Servers & Networking 3 19th June 2005 01:59 AM


Current GMT-time: 14:10 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat