yum and http proxy auth

Discussion in 'Installation/Configuration' started by pinguingilo, Dec 21, 2006.

  1. pinguingilo

    pinguingilo New Member

    Hi, how can i configure yum to authenticate with an http proxy that requests an
    user and password? �
    I've tried this:
    export http_proxy="http://user:p[email protected]:8080" but it doesn't work...
    any ideias on how to do this ? I use FC 5...here my yum.conf :
    Code:
    [main]
    cachedir=/var/cache/yum
    keepcache=0
    debuglevel=2
    logfile=/var/log/yum.log
    pkgpolicy=newest
    distroverpkg=redhat-release
    tolerant=1
    exactarch=1
    http_proxy=http://username:[email protected]:8080
    export http_proxy
    obsoletes=1
    gpgcheck=1
    plugins=1
    
     
  2. Ben

    Ben ISPConfig Developer ISPConfig Developer

    I just do this with a shellscript.
    I attached them.
    proxy_direct just sets http + ftp proxy (upper + lowercase, maybe that's the problem in your case). Just change USER, PASS + proxyurl + port

    the other one contains two scripts infotext_proxy + proxy.sh.
    It uses dialog to ask the user for proxy + pass, and sets the proxydata with that.
    In proxy.sh you have to change the porxy url + the path, where the script is located, because it has to remove the dialog generated files.

    hth

    remove .txt from all files...
     

    Attached Files:

Share This Page