Where to supply Authentication details to the Network Proxy (Central Proxy) on Fedora?

5

1

My system is running Fedora 16 and I live in a campus where we use LAN to connect to the Internet. And for this, we use an http proxy with authentication (username & password).

I tried putting the proxyaddress:port in the Network Proxy settings after going to the Network Settings window. However, it never asked for an authentication and the programs that use the internet are unable connect, except for Firefox because it asks for authentication.

Also, I could get Yum to work by manually editing yum.conf. I even tried using http://username:password@proxy:port like in the Yum configuration but it has not helped.

Is there any solution to this problem?

Vishnu

Posted 2012-03-07T11:16:07.990

Reputation: 151

Answers

2

Its a 2 step process.

When you run a yum command it goes directly to the internet UNLESS you have set a proxy in its configuration file. When yum tries to go through the proxy the proxy queries the computer for the authorization, by talking to the shell, if it gets correct details it then allows the yum process to proceed.

  • Tell yum where the proxy is in /etc/yum.conf

http_proxy=http://172.17.30.20:80/

  • Put your own authentication details in your system's /root/.bashrc

    myusername="whatever_it_is"
    mypassword="whatever_it_is"
    ourproxy="http://172.17.30.20:80/"   <--use your actual id
    export http_proxy=$myusername:$mypassword@$ourproxy
    

Bruce Gennette

Posted 2012-03-07T11:16:07.990

Reputation: 21

I submitted an edit for this answer, but the code blocks don't seem to want to be working. I submitted a bug report here.

– Qix - MONICA WAS MISTREATED – 2013-02-07T06:03:40.803

0

Network Proxy Settings dialog works only for Gnome applications. In order to use proxy in console (even if you're using Gnome terminal to run console commands) you will need to export http_proxy and https_proxy variables. Adding export http_proxy=http://username:password@proxy:port line into your /etc/environment should help.

blami

Posted 2012-03-07T11:16:07.990

Reputation: 21